summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/glslang/Test/spv.register.autoassign-2.frag
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/spv.register.autoassign-2.frag')
-rw-r--r--3rdparty/bgfx/3rdparty/glslang/Test/spv.register.autoassign-2.frag15
1 files changed, 15 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/spv.register.autoassign-2.frag b/3rdparty/bgfx/3rdparty/glslang/Test/spv.register.autoassign-2.frag
new file mode 100644
index 00000000000..05c49250ee8
--- /dev/null
+++ b/3rdparty/bgfx/3rdparty/glslang/Test/spv.register.autoassign-2.frag
@@ -0,0 +1,15 @@
+
+SamplerState g_tSamp : register(s0);
+
+Texture2D g_tScene[2] : register(t0);
+
+struct PS_OUTPUT
+{
+ float4 Color : SV_Target0;
+};
+
+void main(out PS_OUTPUT psout)
+{
+ psout.Color = g_tScene[0].Sample(g_tSamp, float2(0.3,0.4)) +
+ g_tScene[1].Sample(g_tSamp, float2(0.3,0.4));
+}