Pavel Asyutchenko
e46c1b725c
Keep vec1.x l-value in HLSL
...
Changes in hlsl.shapeConv.frag are just renumbering,
duplicated load (80) has disappeared for whatever reason.
2024-04-22 11:50:37 -04:00
Pavel Asyutchenko
2c4348f064
Fix HLSL built-in passthrough via inout
2024-02-26 19:04:23 -05:00
Arcady Goldmints-Orlov
606209e07d
Use [[fallthrough]] attribute instead of comments.
...
Now that we require C++17, the [[fallthrough]] attribute is available as
an alternative to load-bearing comments.
2024-02-20 19:12:06 -05:00
FrostyLeaves
153064f2c7
fix: Support SV_ViewID keywords for hlsl.
2023-11-22 17:04:38 -05:00
Try
4142fead74
fix crash in HLSL frontend
...
fix crash, when converting HLSL return of hull shader into spirv/glsl like arrayed output.
fix #2914
2023-04-13 09:49:00 -04:00
spencer-lunarg
9fe5223370
Improve error message of alignment offset
2023-04-10 16:21:15 -04:00
Arcady Goldmints-Orlov
fbabd37aca
Remove a redundant condition in an if statement
...
This was added erroneously in commit 12bc9aa9c .
2023-03-31 19:53:42 -06:00
Johannes Kauffmann
a7603c132d
Use nullptr where possible instead of NULL or 0
2022-11-30 09:33:28 -07:00
Jeremy Hayes
7a914ce926
Implement NonSemantic.Shader.DebugInfo.100
...
See https://github.com/KhronosGroup/SPIRV-Registry .
2022-08-26 16:17:54 -06:00
Gabriele Di Bari
e314891598
handleEntryPointAttributes add EatInstance case
2022-05-21 17:00:24 +02:00
Ryp
f906b895ec
Fix WavePrefixCountBits() being off by one.
...
It was counting bits up to the current lane included, whereas the
documentation says it should be excluded. This now matches dxc's behavior
as well.
Fix #2929
2022-04-22 20:59:10 +03:00
Greg Fischer
fbb39aa461
Fix --hlsl-dx-position-w to work for SV_Position embedded in struct
...
Fixes #2244
2021-12-07 15:34:52 -07:00
Greg Fischer
e9564feb55
Add --hlsl-dx-position-w option
...
This reciprocates the w component of SV_Position in HLSL fragment shaders
to provide DirectX compatibility for HLSL shaders in Vulkan.
Fixes #2244
2021-11-16 18:42:12 -07:00
Greg Fischer
10be28ac9b
Fix struct type sharing
...
Fixes #2812
2021-11-12 16:57:11 -07:00
Greg Fischer
8b87b84001
Fix SPIR-V for SampleBias
...
Fixes #2757
2021-09-17 17:22:39 -06:00
Peter Kasting
e8cffa5b7f
Fix some instances of -Wunused-but-set-variable.
...
Bug: chromium:1203071
2021-07-26 07:34:37 -07:00
Greg Fischer
7fbaca0d06
Fix SPIR-V for HLSL EvaluateAttribute* of interpolants in structs
...
Generate load of interpolant for first operand to GLSLstd450
InterpolateAt* SPIR-V ops. This allows the interpolants to
propagate from the input struct in the wrapper around main
into the shader during HLSL legalization. A new pass has been
added to legalization which will remove the load and replace
with the pointer of the load to create valid external
interpolate op.
Fixes #2584
2021-04-01 00:31:31 -06:00
greg-lunarg
b0f8a0c3ab
Merge pull request #2458 from ShchchowAMD/unique_id-fix
...
Fix issue for new unique id system.
2021-02-15 13:22:14 -07:00
Chow
93b400f267
Fix issue for new unique id system. Add level bits to help verifying symbols and split symbol tables.
...
For intermediates rebuilding, now need manually amending level bits for redeclaring built-ins.
2021-02-15 20:35:20 +08:00
Greg Fischer
efe4586fad
Fix cut and paste error
...
Fixes #2476
2020-12-17 22:57:50 -07:00
rdb
589aaff11c
Don't use roundEven() to implement round() in DX9 compatibility mode
2020-12-16 18:35:42 +01:00
Rex Xu
f6e0fe8600
HLSL: Add support for printf().
...
Translate printf() to what GL_EXT_debug_printf has done. HLSL could
define non-constant string variable and we don't have such features
in SPIR-V, so just support constant string variable.
2020-10-24 22:10:13 +08:00
Rémi Verschelde
69d0c1acc2
Remove executable bits from code/data files ( #2420 )
2020-10-12 10:08:47 -06:00
johnkslang
f8a5602c55
Fix #2385 : guard against constant_id on non-const.
2020-09-14 02:49:38 -06:00
John Kessenich
b112fac003
HLSL: Catch error cases earlier, preventing a later assert.
...
Related to https://github.com/KhronosGroup/SPIRV-Cross/issues/1414 .
The real problem is either using DX10 semantics for DX9 or missing
functionality in DX10 parsing.
2020-07-01 00:53:37 -06:00
Ben Clayton
f49820dd6b
Move hlsl/ source to glslang/HLSL/
...
Now that the HLSL source files are part of the `glslang` target (#2271 ), it makes sense for these to sit in the `glslang` directory.
Changed the case of the directory from `hlsl` to `HLSL` to better match the sibling directories.
2020-06-16 11:55:28 +01:00