summaryrefslogtreecommitdiff
path: root/tests/reflection/shared-modifier.hlsl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reflection/shared-modifier.hlsl')
-rw-r--r--tests/reflection/shared-modifier.hlsl12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/reflection/shared-modifier.hlsl b/tests/reflection/shared-modifier.hlsl
new file mode 100644
index 000000000..45a1dfac8
--- /dev/null
+++ b/tests/reflection/shared-modifier.hlsl
@@ -0,0 +1,12 @@
+// shared-modifier.hlsl
+//TEST:REFLECTION:-profile ps_5_0 -target hlsl
+
+// Confirm that we expose the `shared` modifier in reflection data.
+
+Texture2D t;
+shared SamplerState s;
+
+float4 main(float2 uv : UV) : SV_Target
+{
+ return t.Sample(s, uv);
+} \ No newline at end of file