summaryrefslogtreecommitdiffstats
path: root/tests/reflection/reflect-imported-code.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reflection/reflect-imported-code.slang')
-rw-r--r--tests/reflection/reflect-imported-code.slang14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/reflection/reflect-imported-code.slang b/tests/reflection/reflect-imported-code.slang
new file mode 100644
index 000000000..20beb94b8
--- /dev/null
+++ b/tests/reflection/reflect-imported-code.slang
@@ -0,0 +1,14 @@
+//TEST_IGNORE_FILE:
+
+// Imported code used by `reflect-imported-code.hlsl`
+
+float4 use(float4 val) { return val; };
+float4 use(Texture2D t, SamplerState s) { return t.Sample(s, 0.0); }
+
+Texture2D t_i;
+SamplerState s_i;
+
+cbuffer C_i
+{
+ float c_i;
+}