diff options
author | Hai Nguyen <chaoticbob@me.com> | 2017-10-09 22:03:59 -0700 |
---|---|---|
committer | Hai Nguyen <chaoticbob@me.com> | 2017-10-09 22:03:59 -0700 |
commit | 98c11902fd1a441476b70a5f8595b505cf20d2e2 (patch) | |
tree | 15c21b3e54e3a064e72d1467e61650472641b4b0 /tests/hlsl | |
parent | e3f011773fe584ac244acfca488dfad8564ef14c (diff) | |
download | SPIRV-Reflect-98c11902fd1a441476b70a5f8595b505cf20d2e2.tar.gz |
Added missing copy of array dims from tye to descriptor bindings
Diffstat (limited to 'tests/hlsl')
-rw-r--r-- | tests/hlsl/binding_array.hlsl | 9 | ||||
-rw-r--r-- | tests/hlsl/binding_array.spv | bin | 0 -> 1308 bytes | |||
-rw-r--r-- | tests/hlsl/binding_array.txt | 39 |
3 files changed, 48 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 diff --git a/tests/hlsl/binding_array.spv b/tests/hlsl/binding_array.spv Binary files differnew file mode 100644 index 0000000..5adb41f --- /dev/null +++ b/tests/hlsl/binding_array.spv diff --git a/tests/hlsl/binding_array.txt b/tests/hlsl/binding_array.txt new file mode 100644 index 0000000..a1b6ecd --- /dev/null +++ b/tests/hlsl/binding_array.txt @@ -0,0 +1,39 @@ +entry point : main +source lang : HLSL +source lang ver : 500 + + output variables: 1 + 0: + location : 0 + type : + qualifier : + + descriptor bindings: 2 + 0: + binding : 0 + set : 0 + type : VK_DESCRIPTOR_TYPE_SAMPLER + array : [4][3][2][1] + name : MySampler + 1: + binding : 1 + set : 0 + type : VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE + array : [2] + name : MyTexture + + descriptor sets: 1 + 0: + set : 0 + binding count : 2 + 0: + binding : 0 + type : VK_DESCRIPTOR_TYPE_SAMPLER + array : [4][3][2][1] + name : MySampler + 1: + binding : 1 + type : VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE + array : [2] + name : MyTexture + |