summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.array.multidim.frag
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/hlsl.array.multidim.frag')
-rw-r--r--3rdparty/bgfx/3rdparty/glslang/Test/hlsl.array.multidim.frag20
1 files changed, 20 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.array.multidim.frag b/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.array.multidim.frag
new file mode 100644
index 00000000000..524a8896e09
--- /dev/null
+++ b/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.array.multidim.frag
@@ -0,0 +1,20 @@
+
+float float_array[5][4][3];
+
+struct PS_OUTPUT
+{
+ float4 Color : SV_Target0;
+};
+
+PS_OUTPUT main()
+{
+ float4 float4_array_1[2][3];
+ float4 float4_array_2[5][3];
+
+ float4_array_1[1][2] = float_array[2][3][1];
+ float4_array_2[1] = float4_array_1[0];
+
+ PS_OUTPUT psout;
+ psout.Color = float4_array_1[1][2];
+ return psout;
+}