summaryrefslogtreecommitdiffstats
path: root/tests/reflection/reflect-imported-code.hlsl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reflection/reflect-imported-code.hlsl')
-rw-r--r--tests/reflection/reflect-imported-code.hlsl21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/reflection/reflect-imported-code.hlsl b/tests/reflection/reflect-imported-code.hlsl
new file mode 100644
index 000000000..b95493f7e
--- /dev/null
+++ b/tests/reflection/reflect-imported-code.hlsl
@@ -0,0 +1,21 @@
+//TEST:SIMPLE:-profile ps_4_0 -target reflection-json
+
+// Confirm that shader parameters in imported modules get reflected properly.
+
+__import reflect_imported_code;
+
+Texture2D t;
+SamplerState s;
+
+cbuffer C
+{
+ float c;
+}
+
+float4 main() : SV_Target
+{
+ return use(t,s_i)
+ + use(c)
+ + use(t_i, s)
+ + use(c_i);
+} \ No newline at end of file