summaryrefslogtreecommitdiff
path: root/tests/reflection/parameter-block.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reflection/parameter-block.slang')
-rw-r--r--tests/reflection/parameter-block.slang19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/reflection/parameter-block.slang b/tests/reflection/parameter-block.slang
new file mode 100644
index 000000000..c20337480
--- /dev/null
+++ b/tests/reflection/parameter-block.slang
@@ -0,0 +1,19 @@
+//TEST:REFLECTION:-profile glsl_fragment -target glsl
+
+// Confirm that we do parameter binding correctly
+// when we have both a parameter block *and* user-defined
+// resource parameters that both need automatic
+// binding allocation.
+
+struct Helper
+{
+ Texture2D t;
+ SamplerState s;
+};
+
+ParameterBlock<Helper> a;
+
+Texture2D b;
+
+float4 main() : SV_target
+{ return 0.0; }