summaryrefslogtreecommitdiff
path: root/tests/reflection/reflect-imported-code.slang
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-06-26 12:04:54 -0700
committerGitHub <noreply@github.com>2017-06-26 12:04:54 -0700
commit3f316dcbd9274efc74f817cf36f17a511ff2e21e (patch)
tree185210d30a7887df823bb0c6d817d3feb2ebe675 /tests/reflection/reflect-imported-code.slang
parentd506737b8b00bcc89adf937994ceb6df4509c98a (diff)
parent07f9b9ec7c9be6a0eff65ef327d2a0fee262aed7 (diff)
Merge pull request #42 from tfoleyNV/reflect-imported
Reflect imported code
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;
+}