diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2023-06-22 16:23:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-22 16:23:58 -0400 |
| commit | b3a883d2c873a39e1ece232de78ea6b43b493f0c (patch) | |
| tree | 638c98f2e1bbfe377687c19187d994a48278ebbf /tests | |
| parent | 769c7fdd19ea579770baac7b6d5e16d6406a8013 (diff) | |
Allow multiple attributes to not require separating comma (#2939)
* #include an absolute path didn't work - because paths were taken to always be relative.
* Small fixes and improvements around reflection tool.
* Make PrettyWriter printing a class.
* Allow attributes without comma separation.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bugs/multiple-attributes-without-comma.slang | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/bugs/multiple-attributes-without-comma.slang b/tests/bugs/multiple-attributes-without-comma.slang new file mode 100644 index 000000000..51683e4ef --- /dev/null +++ b/tests/bugs/multiple-attributes-without-comma.slang @@ -0,0 +1,25 @@ +// multiple-attributes-without-comma.slang + +// Test that `,` is not need between attributes + +//TEST:SIMPLE(filecheck=CHECK):-target glsl -entry main -stage fragment -line-directive-mode none + +//CHECK: layout(location = 0, index = 1) + +struct FragmentOutput +{ + [[vk::location(0)]] + float4 a : SV_Target0; + + [[vk::location(0) vk::index(1)]] + float4 b : SV_Target1; +} + +[shader("fragment")] +FragmentOutput main(float4 v : V) +{ + FragmentOutput f = {}; + f.a = v; + f.b = v; + return f; +} |
