summaryrefslogtreecommitdiff
path: root/tests/hlsl/binding_array.hlsl
diff options
context:
space:
mode:
authorHai Nguyen <chaoticbob@me.com>2017-10-09 22:03:59 -0700
committerHai Nguyen <chaoticbob@me.com>2017-10-09 22:03:59 -0700
commit98c11902fd1a441476b70a5f8595b505cf20d2e2 (patch)
tree15c21b3e54e3a064e72d1467e61650472641b4b0 /tests/hlsl/binding_array.hlsl
parente3f011773fe584ac244acfca488dfad8564ef14c (diff)
downloadSPIRV-Reflect-98c11902fd1a441476b70a5f8595b505cf20d2e2.tar.gz
Added missing copy of array dims from tye to descriptor bindings
Diffstat (limited to 'tests/hlsl/binding_array.hlsl')
-rw-r--r--tests/hlsl/binding_array.hlsl9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/hlsl/binding_array.hlsl b/tests/hlsl/binding_array.hlsl
new file mode 100644
index 0000000..16c4a69
--- /dev/null
+++ b/tests/hlsl/binding_array.hlsl
@@ -0,0 +1,9 @@
+
+SamplerState MySampler[4][3][2][1] : register(s0);
+
+Texture2D MyTexture[2] : register(t1);
+
+float4 main(float4 sv_pos : SV_POSITION) : SV_TARGET {
+ float4 ret = MyTexture[0].Sample(MySampler[0][0][0][0], float2(0, 0));
+ return ret;
+} \ No newline at end of file