diff options
Diffstat (limited to 'tests/reflection/cross-compile.slang')
| -rw-r--r-- | tests/reflection/cross-compile.slang | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/reflection/cross-compile.slang b/tests/reflection/cross-compile.slang new file mode 100644 index 000000000..12376c82a --- /dev/null +++ b/tests/reflection/cross-compile.slang @@ -0,0 +1,23 @@ +//TEST(smoke):SIMPLE:-profile glsl_fragment -target glsl -target reflection-json + +// Confirm that when targetting GLSL via cross compilation, +// we use the Vulkan layout rules instead of HLSL ones +// +// Specifically, we expect all of our top-level parameters +// to get distinct registers in the same descriptor set, +// rather than all getting register `0` because they +// occupy different names register spaces (as they would in D3D) + +Texture2D t; + +SamplerState s; + +cbuffer C +{ + float3 c; +} + +float4 main() : SV_Target +{ + return 0.0; +}
\ No newline at end of file |
