Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +3 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_0.glsl +32 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_0.spv +0 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_1.glsl +26 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_1.spv +0 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_2.glsl +30 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_2.spv.yaml +842 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_3.spv +0 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_3.spv.yaml +447 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_4.glsl +34 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_4.spv.yaml +351 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_5.spv +0 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_5.spv.yaml +244 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_6.spv +0 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_6.spv.yaml +296 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_7.spv.yaml +350 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_8.spv +0 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_8.spv.yaml +197 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_9.glsl +16 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_9.spv +0 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_9.spv.yaml +395 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_uvec2_pc.spv +0 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_uvec2_ssbo.glsl +16 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_uvec2_ssbo.spv +0 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_handle_uvec2_ssbo.spv.yaml +123 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_pointer.glsl +22 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_pointer.spv.yaml +294 -0
- third_party/SPIRV-Reflect/tests/glsl/buffer_pointer.txt +38 -0
- third_party/SPIRV-Reflect/tests/glsl/built_in_format.glsl +9 -0
- third_party/SPIRV-Reflect/tests/glsl/fn_struct_param.spv.yaml +194 -0
- third_party/SPIRV-Reflect/tests/glsl/frag_array_input.glsl +36 -0
- third_party/SPIRV-Reflect/tests/glsl/frag_array_input.spv +0 -0
- third_party/SPIRV-Reflect/tests/glsl/frag_array_input.spv.yaml +766 -0
- third_party/SPIRV-Reflect/tests/glsl/frag_barycentric.glsl +20 -0
- third_party/SPIRV-Reflect/tests/glsl/input_attachment.glsl +16 -0
- third_party/SPIRV-Reflect/tests/glsl/input_attachment.spv.yaml +194 -0
- third_party/SPIRV-Reflect/tests/glsl/io_vars_vs.glsl +13 -0
- third_party/SPIRV-Reflect/tests/glsl/io_vars_vs.spv +0 -0
- third_party/SPIRV-Reflect/tests/glsl/matrix_major_order_glsl.glsl +67 -0
- third_party/SPIRV-Reflect/tests/glsl/matrix_major_order_glsl.spv +0 -0
- third_party/SPIRV-Reflect/tests/glsl/matrix_major_order_glsl.spv.yaml +1088 -0
- third_party/SPIRV-Reflect/tests/glsl/non_writable_image.glsl +16 -0
- third_party/SPIRV-Reflect/tests/glsl/non_writable_image.spv.yaml +159 -0
- third_party/SPIRV-Reflect/tests/glsl/readonly_writeonly.glsl +21 -0
- third_party/SPIRV-Reflect/tests/glsl/readonly_writeonly.spv +0 -0
- third_party/SPIRV-Reflect/tests/glsl/readonly_writeonly.spv.yaml +229 -0
- third_party/SPIRV-Reflect/tests/glsl/runtime_array_of_array_of_struct.glsl +24 -0
- third_party/SPIRV-Reflect/tests/glsl/runtime_array_of_array_of_struct.spv +0 -0
- third_party/SPIRV-Reflect/tests/glsl/runtime_array_of_array_of_struct.spv.yaml +386 -0
- third_party/SPIRV-Reflect/tests/glsl/storage_buffer.glsl +19 -0
.gitattributes
CHANGED
|
@@ -149,3 +149,6 @@ third_party/harmonizer/assets/cr_gt_000289.png filter=lfs diff=lfs merge=lfs -te
|
|
| 149 |
third_party/harmonizer/examples/1.png filter=lfs diff=lfs merge=lfs -text
|
| 150 |
third_party/harmonizer/examples/0.png filter=lfs diff=lfs merge=lfs -text
|
| 151 |
third_party/tracy/doc/profiler2.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 149 |
third_party/harmonizer/examples/1.png filter=lfs diff=lfs merge=lfs -text
|
| 150 |
third_party/harmonizer/examples/0.png filter=lfs diff=lfs merge=lfs -text
|
| 151 |
third_party/tracy/doc/profiler2.png filter=lfs diff=lfs merge=lfs -text
|
| 152 |
+
third_party/tracy/doc/profiler.png filter=lfs diff=lfs merge=lfs -text
|
| 153 |
+
third_party/harmonizer/assets/demo.gif filter=lfs diff=lfs merge=lfs -text
|
| 154 |
+
third_party/tracy/doc/profiler3.png filter=lfs diff=lfs merge=lfs -text
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_0.glsl
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#version 450
|
| 2 |
+
#extension GL_EXT_buffer_reference : enable
|
| 3 |
+
|
| 4 |
+
layout(buffer_reference) buffer t1;
|
| 5 |
+
layout(buffer_reference) buffer t2;
|
| 6 |
+
layout(buffer_reference) buffer t3;
|
| 7 |
+
layout(buffer_reference) buffer t4;
|
| 8 |
+
|
| 9 |
+
layout(buffer_reference, std430) buffer t1 {
|
| 10 |
+
t4 i_1;
|
| 11 |
+
};
|
| 12 |
+
|
| 13 |
+
layout(buffer_reference, std430) buffer t2 {
|
| 14 |
+
t4 i_2;
|
| 15 |
+
};
|
| 16 |
+
|
| 17 |
+
layout(buffer_reference, std430) buffer t3 {
|
| 18 |
+
t2 i_3;
|
| 19 |
+
};
|
| 20 |
+
|
| 21 |
+
layout(set = 1, binding = 2, buffer_reference, std430) buffer t4 {
|
| 22 |
+
layout(offset = 0) int j;
|
| 23 |
+
t1 k_1;
|
| 24 |
+
t2 k_2;
|
| 25 |
+
t3 k_3;
|
| 26 |
+
} x;
|
| 27 |
+
|
| 28 |
+
layout(set = 0, binding = 0, std430) buffer t5 {
|
| 29 |
+
t4 m;
|
| 30 |
+
} s5;
|
| 31 |
+
|
| 32 |
+
void main() {}
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_0.spv
ADDED
|
Binary file (1.25 kB). View file
|
|
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_1.glsl
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#version 450
|
| 2 |
+
// Taken from glslang/Test/spv.bufferhandle4.frag
|
| 3 |
+
#extension GL_EXT_buffer_reference : enable
|
| 4 |
+
|
| 5 |
+
layout(buffer_reference) buffer t4;
|
| 6 |
+
|
| 7 |
+
layout(buffer_reference, std430) buffer t3 {
|
| 8 |
+
int h;
|
| 9 |
+
t4 i;
|
| 10 |
+
};
|
| 11 |
+
|
| 12 |
+
layout(set = 1, binding = 2, buffer_reference, std430) buffer t4 {
|
| 13 |
+
layout(offset = 0) int j;
|
| 14 |
+
t3 k;
|
| 15 |
+
} x;
|
| 16 |
+
|
| 17 |
+
layout(set = 0, binding = 0, std430) buffer t5 {
|
| 18 |
+
t4 m;
|
| 19 |
+
} s5;
|
| 20 |
+
|
| 21 |
+
void main() {
|
| 22 |
+
x.k.h = s5.m.k.i.k.i.k.h;
|
| 23 |
+
|
| 24 |
+
bool b = true;
|
| 25 |
+
s5.m = b ? s5.m : s5.m.k.i;
|
| 26 |
+
}
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_1.spv
ADDED
|
Binary file (1.85 kB). View file
|
|
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_2.glsl
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#version 450 core
|
| 2 |
+
// Taken from glslang/Test/spv.bufferhandle6.frag
|
| 3 |
+
#extension GL_EXT_buffer_reference : enable
|
| 4 |
+
layout (push_constant, std430) uniform Block { int identity[32]; } pc;
|
| 5 |
+
layout(r32ui, set = 3, binding = 0) uniform uimage2D image0_0;
|
| 6 |
+
layout(buffer_reference) buffer T1;
|
| 7 |
+
layout(set = 3, binding = 1, buffer_reference) buffer T1 {
|
| 8 |
+
layout(offset = 0) int a[2]; // stride = 4 for std430, 16 for std140
|
| 9 |
+
layout(offset = 32) int b;
|
| 10 |
+
layout(offset = 48) T1 c[2]; // stride = 8 for std430, 16 for std140
|
| 11 |
+
layout(offset = 80) T1 d;
|
| 12 |
+
} x;
|
| 13 |
+
void main()
|
| 14 |
+
{
|
| 15 |
+
int accum = 0, temp;
|
| 16 |
+
accum |= x.a[0] - 0;
|
| 17 |
+
accum |= x.a[pc.identity[1]] - 1;
|
| 18 |
+
accum |= x.b - 2;
|
| 19 |
+
accum |= x.c[0].a[0] - 3;
|
| 20 |
+
accum |= x.c[0].a[pc.identity[1]] - 4;
|
| 21 |
+
accum |= x.c[0].b - 5;
|
| 22 |
+
accum |= x.c[pc.identity[1]].a[0] - 6;
|
| 23 |
+
accum |= x.c[pc.identity[1]].a[pc.identity[1]] - 7;
|
| 24 |
+
accum |= x.c[pc.identity[1]].b - 8;
|
| 25 |
+
accum |= x.d.a[0] - 9;
|
| 26 |
+
accum |= x.d.a[pc.identity[1]] - 10;
|
| 27 |
+
accum |= x.d.b - 11;
|
| 28 |
+
uvec4 color = (accum != 0) ? uvec4(0,0,0,0) : uvec4(1,0,0,1);
|
| 29 |
+
imageStore(image0_0, ivec2(gl_FragCoord.x, gl_FragCoord.y), color);
|
| 30 |
+
}
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_2.spv.yaml
ADDED
|
@@ -0,0 +1,842 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
%YAML 1.1
|
| 2 |
+
---
|
| 3 |
+
all_type_descriptions:
|
| 4 |
+
- &td0
|
| 5 |
+
id: 147
|
| 6 |
+
op: 25
|
| 7 |
+
type_name:
|
| 8 |
+
struct_member_name:
|
| 9 |
+
storage_class: -1 # NOT APPLICABLE
|
| 10 |
+
type_flags: 0x00010004 # EXTERNAL_IMAGE INT
|
| 11 |
+
decoration_flags: 0x00000000 # NONE
|
| 12 |
+
traits:
|
| 13 |
+
numeric:
|
| 14 |
+
scalar: { width: 32, signedness: 0 }
|
| 15 |
+
vector: { component_count: 0 }
|
| 16 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 17 |
+
image: { dim: 1, depth: 0, arrayed: 0, ms: 0, sampled: 2, image_format: 33 } # dim=2D image_format=R32ui
|
| 18 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 19 |
+
member_count: 0
|
| 20 |
+
members:
|
| 21 |
+
- &td1
|
| 22 |
+
id: 12
|
| 23 |
+
op: 28
|
| 24 |
+
type_name:
|
| 25 |
+
struct_member_name: "a"
|
| 26 |
+
storage_class: 0 # UniformConstant
|
| 27 |
+
type_flags: 0x20000004 # ARRAY INT
|
| 28 |
+
decoration_flags: 0x00000000 # NONE
|
| 29 |
+
traits:
|
| 30 |
+
numeric:
|
| 31 |
+
scalar: { width: 32, signedness: 1 }
|
| 32 |
+
vector: { component_count: 0 }
|
| 33 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 34 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 35 |
+
array: { dims_count: 1, dims: [2,], stride: 4 }
|
| 36 |
+
member_count: 0
|
| 37 |
+
members:
|
| 38 |
+
- &td2
|
| 39 |
+
id: 6
|
| 40 |
+
op: 21
|
| 41 |
+
type_name:
|
| 42 |
+
struct_member_name: "b"
|
| 43 |
+
storage_class: 0 # UniformConstant
|
| 44 |
+
type_flags: 0x00000004 # INT
|
| 45 |
+
decoration_flags: 0x00000000 # NONE
|
| 46 |
+
traits:
|
| 47 |
+
numeric:
|
| 48 |
+
scalar: { width: 32, signedness: 1 }
|
| 49 |
+
vector: { component_count: 0 }
|
| 50 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 51 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 52 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 53 |
+
member_count: 0
|
| 54 |
+
members:
|
| 55 |
+
- &td3
|
| 56 |
+
id: 16
|
| 57 |
+
op: 28
|
| 58 |
+
type_name:
|
| 59 |
+
struct_member_name: "a"
|
| 60 |
+
storage_class: 0 # UniformConstant
|
| 61 |
+
type_flags: 0x20000004 # ARRAY INT
|
| 62 |
+
decoration_flags: 0x00000000 # NONE
|
| 63 |
+
traits:
|
| 64 |
+
numeric:
|
| 65 |
+
scalar: { width: 32, signedness: 1 }
|
| 66 |
+
vector: { component_count: 0 }
|
| 67 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 68 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 69 |
+
array: { dims_count: 1, dims: [2,], stride: 4 }
|
| 70 |
+
member_count: 0
|
| 71 |
+
members:
|
| 72 |
+
- &td4
|
| 73 |
+
id: 6
|
| 74 |
+
op: 21
|
| 75 |
+
type_name:
|
| 76 |
+
struct_member_name: "b"
|
| 77 |
+
storage_class: 0 # UniformConstant
|
| 78 |
+
type_flags: 0x00000004 # INT
|
| 79 |
+
decoration_flags: 0x00000000 # NONE
|
| 80 |
+
traits:
|
| 81 |
+
numeric:
|
| 82 |
+
scalar: { width: 32, signedness: 1 }
|
| 83 |
+
vector: { component_count: 0 }
|
| 84 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 85 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 86 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 87 |
+
member_count: 0
|
| 88 |
+
members:
|
| 89 |
+
- &td5
|
| 90 |
+
id: 16
|
| 91 |
+
op: 28
|
| 92 |
+
type_name:
|
| 93 |
+
struct_member_name: "a"
|
| 94 |
+
storage_class: 0 # UniformConstant
|
| 95 |
+
type_flags: 0x20000004 # ARRAY INT
|
| 96 |
+
decoration_flags: 0x00000000 # NONE
|
| 97 |
+
traits:
|
| 98 |
+
numeric:
|
| 99 |
+
scalar: { width: 32, signedness: 1 }
|
| 100 |
+
vector: { component_count: 0 }
|
| 101 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 102 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 103 |
+
array: { dims_count: 1, dims: [2,], stride: 4 }
|
| 104 |
+
member_count: 0
|
| 105 |
+
members:
|
| 106 |
+
- &td6
|
| 107 |
+
id: 6
|
| 108 |
+
op: 21
|
| 109 |
+
type_name:
|
| 110 |
+
struct_member_name: "b"
|
| 111 |
+
storage_class: 0 # UniformConstant
|
| 112 |
+
type_flags: 0x00000004 # INT
|
| 113 |
+
decoration_flags: 0x00000000 # NONE
|
| 114 |
+
traits:
|
| 115 |
+
numeric:
|
| 116 |
+
scalar: { width: 32, signedness: 1 }
|
| 117 |
+
vector: { component_count: 0 }
|
| 118 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 119 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 120 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 121 |
+
member_count: 0
|
| 122 |
+
members:
|
| 123 |
+
- &td7
|
| 124 |
+
id: 17
|
| 125 |
+
op: 28
|
| 126 |
+
type_name:
|
| 127 |
+
struct_member_name: "c"
|
| 128 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 129 |
+
type_flags: 0x70080000 # ARRAY STRUCT REF EXTERNAL_BLOCK
|
| 130 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 131 |
+
traits:
|
| 132 |
+
numeric:
|
| 133 |
+
scalar: { width: 0, signedness: 0 }
|
| 134 |
+
vector: { component_count: 0 }
|
| 135 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 136 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 137 |
+
array: { dims_count: 1, dims: [2,], stride: 8 }
|
| 138 |
+
member_count: 4
|
| 139 |
+
members:
|
| 140 |
+
- [forward pointer]
|
| 141 |
+
- &td8
|
| 142 |
+
id: 16
|
| 143 |
+
op: 28
|
| 144 |
+
type_name:
|
| 145 |
+
struct_member_name: "a"
|
| 146 |
+
storage_class: 0 # UniformConstant
|
| 147 |
+
type_flags: 0x20000004 # ARRAY INT
|
| 148 |
+
decoration_flags: 0x00000000 # NONE
|
| 149 |
+
traits:
|
| 150 |
+
numeric:
|
| 151 |
+
scalar: { width: 32, signedness: 1 }
|
| 152 |
+
vector: { component_count: 0 }
|
| 153 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 154 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 155 |
+
array: { dims_count: 1, dims: [2,], stride: 4 }
|
| 156 |
+
member_count: 0
|
| 157 |
+
members:
|
| 158 |
+
- &td9
|
| 159 |
+
id: 6
|
| 160 |
+
op: 21
|
| 161 |
+
type_name:
|
| 162 |
+
struct_member_name: "b"
|
| 163 |
+
storage_class: 0 # UniformConstant
|
| 164 |
+
type_flags: 0x00000004 # INT
|
| 165 |
+
decoration_flags: 0x00000000 # NONE
|
| 166 |
+
traits:
|
| 167 |
+
numeric:
|
| 168 |
+
scalar: { width: 32, signedness: 1 }
|
| 169 |
+
vector: { component_count: 0 }
|
| 170 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 171 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 172 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 173 |
+
member_count: 0
|
| 174 |
+
members:
|
| 175 |
+
- &td10
|
| 176 |
+
id: 17
|
| 177 |
+
op: 28
|
| 178 |
+
type_name:
|
| 179 |
+
struct_member_name: "c"
|
| 180 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 181 |
+
type_flags: 0x70080000 # ARRAY STRUCT REF EXTERNAL_BLOCK
|
| 182 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 183 |
+
traits:
|
| 184 |
+
numeric:
|
| 185 |
+
scalar: { width: 0, signedness: 0 }
|
| 186 |
+
vector: { component_count: 0 }
|
| 187 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 188 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 189 |
+
array: { dims_count: 1, dims: [2,], stride: 8 }
|
| 190 |
+
member_count: 4
|
| 191 |
+
members:
|
| 192 |
+
- [forward pointer]
|
| 193 |
+
- &td11
|
| 194 |
+
id: 13
|
| 195 |
+
op: 32
|
| 196 |
+
type_name:
|
| 197 |
+
struct_member_name: "d"
|
| 198 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 199 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 200 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 201 |
+
traits:
|
| 202 |
+
numeric:
|
| 203 |
+
scalar: { width: 0, signedness: 0 }
|
| 204 |
+
vector: { component_count: 0 }
|
| 205 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 206 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 207 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 208 |
+
member_count: 4
|
| 209 |
+
members:
|
| 210 |
+
- [forward pointer]
|
| 211 |
+
- &td12
|
| 212 |
+
id: 13
|
| 213 |
+
op: 32
|
| 214 |
+
type_name: "T1"
|
| 215 |
+
struct_member_name: "d"
|
| 216 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 217 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 218 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 219 |
+
traits:
|
| 220 |
+
numeric:
|
| 221 |
+
scalar: { width: 0, signedness: 0 }
|
| 222 |
+
vector: { component_count: 0 }
|
| 223 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 224 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 225 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 226 |
+
member_count: 4
|
| 227 |
+
members:
|
| 228 |
+
- *td8
|
| 229 |
+
- *td9
|
| 230 |
+
- *td10
|
| 231 |
+
- *td11
|
| 232 |
+
- &td13
|
| 233 |
+
id: 17
|
| 234 |
+
op: 28
|
| 235 |
+
type_name: "T1"
|
| 236 |
+
struct_member_name: "c"
|
| 237 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 238 |
+
type_flags: 0x70080000 # ARRAY STRUCT REF EXTERNAL_BLOCK
|
| 239 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 240 |
+
traits:
|
| 241 |
+
numeric:
|
| 242 |
+
scalar: { width: 0, signedness: 0 }
|
| 243 |
+
vector: { component_count: 0 }
|
| 244 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 245 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 246 |
+
array: { dims_count: 1, dims: [2,], stride: 8 }
|
| 247 |
+
member_count: 4
|
| 248 |
+
members:
|
| 249 |
+
- *td5
|
| 250 |
+
- *td6
|
| 251 |
+
- *td7
|
| 252 |
+
- *td12
|
| 253 |
+
- &td14
|
| 254 |
+
id: 13
|
| 255 |
+
op: 32
|
| 256 |
+
type_name: "T1"
|
| 257 |
+
struct_member_name: "d"
|
| 258 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 259 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 260 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 261 |
+
traits:
|
| 262 |
+
numeric:
|
| 263 |
+
scalar: { width: 0, signedness: 0 }
|
| 264 |
+
vector: { component_count: 0 }
|
| 265 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 266 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 267 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 268 |
+
member_count: 4
|
| 269 |
+
members:
|
| 270 |
+
- [forward pointer]
|
| 271 |
+
- &td15
|
| 272 |
+
id: 14
|
| 273 |
+
op: 28
|
| 274 |
+
type_name: "T1"
|
| 275 |
+
struct_member_name: "c"
|
| 276 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 277 |
+
type_flags: 0x70080000 # ARRAY STRUCT REF EXTERNAL_BLOCK
|
| 278 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 279 |
+
traits:
|
| 280 |
+
numeric:
|
| 281 |
+
scalar: { width: 0, signedness: 0 }
|
| 282 |
+
vector: { component_count: 0 }
|
| 283 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 284 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 285 |
+
array: { dims_count: 1, dims: [2,], stride: 8 }
|
| 286 |
+
member_count: 4
|
| 287 |
+
members:
|
| 288 |
+
- *td3
|
| 289 |
+
- *td4
|
| 290 |
+
- *td13
|
| 291 |
+
- *td14
|
| 292 |
+
- &td16
|
| 293 |
+
id: 13
|
| 294 |
+
op: 32
|
| 295 |
+
type_name: "T1"
|
| 296 |
+
struct_member_name: "d"
|
| 297 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 298 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 299 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 300 |
+
traits:
|
| 301 |
+
numeric:
|
| 302 |
+
scalar: { width: 0, signedness: 0 }
|
| 303 |
+
vector: { component_count: 0 }
|
| 304 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 305 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 306 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 307 |
+
member_count: 4
|
| 308 |
+
members:
|
| 309 |
+
- [forward pointer]
|
| 310 |
+
- &td17
|
| 311 |
+
id: 15
|
| 312 |
+
op: 30
|
| 313 |
+
type_name: "T1"
|
| 314 |
+
struct_member_name:
|
| 315 |
+
storage_class: -1 # NOT APPLICABLE
|
| 316 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 317 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 318 |
+
traits:
|
| 319 |
+
numeric:
|
| 320 |
+
scalar: { width: 0, signedness: 0 }
|
| 321 |
+
vector: { component_count: 0 }
|
| 322 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 323 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 324 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 325 |
+
member_count: 4
|
| 326 |
+
members:
|
| 327 |
+
- *td1
|
| 328 |
+
- *td2
|
| 329 |
+
- *td15
|
| 330 |
+
- *td16
|
| 331 |
+
- &td18
|
| 332 |
+
id: 16
|
| 333 |
+
op: 28
|
| 334 |
+
type_name:
|
| 335 |
+
struct_member_name: "a"
|
| 336 |
+
storage_class: 0 # UniformConstant
|
| 337 |
+
type_flags: 0x20000004 # ARRAY INT
|
| 338 |
+
decoration_flags: 0x00000000 # NONE
|
| 339 |
+
traits:
|
| 340 |
+
numeric:
|
| 341 |
+
scalar: { width: 32, signedness: 1 }
|
| 342 |
+
vector: { component_count: 0 }
|
| 343 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 344 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 345 |
+
array: { dims_count: 1, dims: [2,], stride: 4 }
|
| 346 |
+
member_count: 0
|
| 347 |
+
members:
|
| 348 |
+
- &td19
|
| 349 |
+
id: 6
|
| 350 |
+
op: 21
|
| 351 |
+
type_name:
|
| 352 |
+
struct_member_name: "b"
|
| 353 |
+
storage_class: 0 # UniformConstant
|
| 354 |
+
type_flags: 0x00000004 # INT
|
| 355 |
+
decoration_flags: 0x00000000 # NONE
|
| 356 |
+
traits:
|
| 357 |
+
numeric:
|
| 358 |
+
scalar: { width: 32, signedness: 1 }
|
| 359 |
+
vector: { component_count: 0 }
|
| 360 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 361 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 362 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 363 |
+
member_count: 0
|
| 364 |
+
members:
|
| 365 |
+
- &td20
|
| 366 |
+
id: 16
|
| 367 |
+
op: 28
|
| 368 |
+
type_name:
|
| 369 |
+
struct_member_name: "a"
|
| 370 |
+
storage_class: 0 # UniformConstant
|
| 371 |
+
type_flags: 0x20000004 # ARRAY INT
|
| 372 |
+
decoration_flags: 0x00000000 # NONE
|
| 373 |
+
traits:
|
| 374 |
+
numeric:
|
| 375 |
+
scalar: { width: 32, signedness: 1 }
|
| 376 |
+
vector: { component_count: 0 }
|
| 377 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 378 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 379 |
+
array: { dims_count: 1, dims: [2,], stride: 4 }
|
| 380 |
+
member_count: 0
|
| 381 |
+
members:
|
| 382 |
+
- &td21
|
| 383 |
+
id: 6
|
| 384 |
+
op: 21
|
| 385 |
+
type_name:
|
| 386 |
+
struct_member_name: "b"
|
| 387 |
+
storage_class: 0 # UniformConstant
|
| 388 |
+
type_flags: 0x00000004 # INT
|
| 389 |
+
decoration_flags: 0x00000000 # NONE
|
| 390 |
+
traits:
|
| 391 |
+
numeric:
|
| 392 |
+
scalar: { width: 32, signedness: 1 }
|
| 393 |
+
vector: { component_count: 0 }
|
| 394 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 395 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 396 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 397 |
+
member_count: 0
|
| 398 |
+
members:
|
| 399 |
+
- &td22
|
| 400 |
+
id: 17
|
| 401 |
+
op: 28
|
| 402 |
+
type_name:
|
| 403 |
+
struct_member_name: "c"
|
| 404 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 405 |
+
type_flags: 0x70080000 # ARRAY STRUCT REF EXTERNAL_BLOCK
|
| 406 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 407 |
+
traits:
|
| 408 |
+
numeric:
|
| 409 |
+
scalar: { width: 0, signedness: 0 }
|
| 410 |
+
vector: { component_count: 0 }
|
| 411 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 412 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 413 |
+
array: { dims_count: 1, dims: [2,], stride: 8 }
|
| 414 |
+
member_count: 4
|
| 415 |
+
members:
|
| 416 |
+
- [forward pointer]
|
| 417 |
+
- &td23
|
| 418 |
+
id: 16
|
| 419 |
+
op: 28
|
| 420 |
+
type_name:
|
| 421 |
+
struct_member_name: "a"
|
| 422 |
+
storage_class: 0 # UniformConstant
|
| 423 |
+
type_flags: 0x20000004 # ARRAY INT
|
| 424 |
+
decoration_flags: 0x00000000 # NONE
|
| 425 |
+
traits:
|
| 426 |
+
numeric:
|
| 427 |
+
scalar: { width: 32, signedness: 1 }
|
| 428 |
+
vector: { component_count: 0 }
|
| 429 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 430 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 431 |
+
array: { dims_count: 1, dims: [2,], stride: 4 }
|
| 432 |
+
member_count: 0
|
| 433 |
+
members:
|
| 434 |
+
- &td24
|
| 435 |
+
id: 6
|
| 436 |
+
op: 21
|
| 437 |
+
type_name:
|
| 438 |
+
struct_member_name: "b"
|
| 439 |
+
storage_class: 0 # UniformConstant
|
| 440 |
+
type_flags: 0x00000004 # INT
|
| 441 |
+
decoration_flags: 0x00000000 # NONE
|
| 442 |
+
traits:
|
| 443 |
+
numeric:
|
| 444 |
+
scalar: { width: 32, signedness: 1 }
|
| 445 |
+
vector: { component_count: 0 }
|
| 446 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 447 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 448 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 449 |
+
member_count: 0
|
| 450 |
+
members:
|
| 451 |
+
- &td25
|
| 452 |
+
id: 17
|
| 453 |
+
op: 28
|
| 454 |
+
type_name:
|
| 455 |
+
struct_member_name: "c"
|
| 456 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 457 |
+
type_flags: 0x70080000 # ARRAY STRUCT REF EXTERNAL_BLOCK
|
| 458 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 459 |
+
traits:
|
| 460 |
+
numeric:
|
| 461 |
+
scalar: { width: 0, signedness: 0 }
|
| 462 |
+
vector: { component_count: 0 }
|
| 463 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 464 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 465 |
+
array: { dims_count: 1, dims: [2,], stride: 8 }
|
| 466 |
+
member_count: 4
|
| 467 |
+
members:
|
| 468 |
+
- [forward pointer]
|
| 469 |
+
- &td26
|
| 470 |
+
id: 13
|
| 471 |
+
op: 32
|
| 472 |
+
type_name:
|
| 473 |
+
struct_member_name: "d"
|
| 474 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 475 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 476 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 477 |
+
traits:
|
| 478 |
+
numeric:
|
| 479 |
+
scalar: { width: 0, signedness: 0 }
|
| 480 |
+
vector: { component_count: 0 }
|
| 481 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 482 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 483 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 484 |
+
member_count: 4
|
| 485 |
+
members:
|
| 486 |
+
- [forward pointer]
|
| 487 |
+
- &td27
|
| 488 |
+
id: 13
|
| 489 |
+
op: 32
|
| 490 |
+
type_name: "T1"
|
| 491 |
+
struct_member_name: "d"
|
| 492 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 493 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 494 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 495 |
+
traits:
|
| 496 |
+
numeric:
|
| 497 |
+
scalar: { width: 0, signedness: 0 }
|
| 498 |
+
vector: { component_count: 0 }
|
| 499 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 500 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 501 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 502 |
+
member_count: 4
|
| 503 |
+
members:
|
| 504 |
+
- *td23
|
| 505 |
+
- *td24
|
| 506 |
+
- *td25
|
| 507 |
+
- *td26
|
| 508 |
+
- &td28
|
| 509 |
+
id: 17
|
| 510 |
+
op: 28
|
| 511 |
+
type_name: "T1"
|
| 512 |
+
struct_member_name: "c"
|
| 513 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 514 |
+
type_flags: 0x70080000 # ARRAY STRUCT REF EXTERNAL_BLOCK
|
| 515 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 516 |
+
traits:
|
| 517 |
+
numeric:
|
| 518 |
+
scalar: { width: 0, signedness: 0 }
|
| 519 |
+
vector: { component_count: 0 }
|
| 520 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 521 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 522 |
+
array: { dims_count: 1, dims: [2,], stride: 8 }
|
| 523 |
+
member_count: 4
|
| 524 |
+
members:
|
| 525 |
+
- *td20
|
| 526 |
+
- *td21
|
| 527 |
+
- *td22
|
| 528 |
+
- *td27
|
| 529 |
+
- &td29
|
| 530 |
+
id: 13
|
| 531 |
+
op: 32
|
| 532 |
+
type_name: "T1"
|
| 533 |
+
struct_member_name: "d"
|
| 534 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 535 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 536 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 537 |
+
traits:
|
| 538 |
+
numeric:
|
| 539 |
+
scalar: { width: 0, signedness: 0 }
|
| 540 |
+
vector: { component_count: 0 }
|
| 541 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 542 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 543 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 544 |
+
member_count: 4
|
| 545 |
+
members:
|
| 546 |
+
- [forward pointer]
|
| 547 |
+
- &td30
|
| 548 |
+
id: 29
|
| 549 |
+
op: 28
|
| 550 |
+
type_name:
|
| 551 |
+
struct_member_name: "identity"
|
| 552 |
+
storage_class: 0 # UniformConstant
|
| 553 |
+
type_flags: 0x20000004 # ARRAY INT
|
| 554 |
+
decoration_flags: 0x00000000 # NONE
|
| 555 |
+
traits:
|
| 556 |
+
numeric:
|
| 557 |
+
scalar: { width: 32, signedness: 1 }
|
| 558 |
+
vector: { component_count: 0 }
|
| 559 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 560 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 561 |
+
array: { dims_count: 1, dims: [32,], stride: 4 }
|
| 562 |
+
member_count: 0
|
| 563 |
+
members:
|
| 564 |
+
- &td31
|
| 565 |
+
id: 30
|
| 566 |
+
op: 30
|
| 567 |
+
type_name: "Block"
|
| 568 |
+
struct_member_name:
|
| 569 |
+
storage_class: -1 # NOT APPLICABLE
|
| 570 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 571 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 572 |
+
traits:
|
| 573 |
+
numeric:
|
| 574 |
+
scalar: { width: 0, signedness: 0 }
|
| 575 |
+
vector: { component_count: 0 }
|
| 576 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 577 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 578 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 579 |
+
member_count: 1
|
| 580 |
+
members:
|
| 581 |
+
- *td30
|
| 582 |
+
- &td32
|
| 583 |
+
id: 152
|
| 584 |
+
op: 23
|
| 585 |
+
type_name:
|
| 586 |
+
struct_member_name:
|
| 587 |
+
storage_class: -1 # NOT APPLICABLE
|
| 588 |
+
type_flags: 0x00000108 # VECTOR FLOAT
|
| 589 |
+
decoration_flags: 0x00000000 # NONE
|
| 590 |
+
traits:
|
| 591 |
+
numeric:
|
| 592 |
+
scalar: { width: 32, signedness: 0 }
|
| 593 |
+
vector: { component_count: 4 }
|
| 594 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 595 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 596 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 597 |
+
member_count: 0
|
| 598 |
+
members:
|
| 599 |
+
all_block_variables:
|
| 600 |
+
- &bv0
|
| 601 |
+
name:
|
| 602 |
+
offset: 0
|
| 603 |
+
absolute_offset: 0
|
| 604 |
+
size: 0
|
| 605 |
+
padded_size: 0
|
| 606 |
+
decorations: 0x00000000 # NONE
|
| 607 |
+
numeric:
|
| 608 |
+
scalar: { width: 0, signedness: 0 }
|
| 609 |
+
vector: { component_count: 0 }
|
| 610 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 611 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 612 |
+
flags: 0x00000000 # NONE
|
| 613 |
+
member_count: 0
|
| 614 |
+
members:
|
| 615 |
+
type_description:
|
| 616 |
+
- &bv1
|
| 617 |
+
name: "a"
|
| 618 |
+
offset: 0
|
| 619 |
+
absolute_offset: 0
|
| 620 |
+
size: 8
|
| 621 |
+
padded_size: 8
|
| 622 |
+
decorations: 0x00000000 # NONE
|
| 623 |
+
numeric:
|
| 624 |
+
scalar: { width: 32, signedness: 1 }
|
| 625 |
+
vector: { component_count: 0 }
|
| 626 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 627 |
+
array: { dims_count: 1, dims: [2,], stride: 4 }
|
| 628 |
+
flags: 0x00000000 # NONE
|
| 629 |
+
member_count: 0
|
| 630 |
+
members:
|
| 631 |
+
type_description: *td1
|
| 632 |
+
- &bv2
|
| 633 |
+
name: "b"
|
| 634 |
+
offset: 32
|
| 635 |
+
absolute_offset: 32
|
| 636 |
+
size: 4
|
| 637 |
+
padded_size: 4
|
| 638 |
+
decorations: 0x00000000 # NONE
|
| 639 |
+
numeric:
|
| 640 |
+
scalar: { width: 32, signedness: 1 }
|
| 641 |
+
vector: { component_count: 0 }
|
| 642 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 643 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 644 |
+
flags: 0x00000000 # NONE
|
| 645 |
+
member_count: 0
|
| 646 |
+
members:
|
| 647 |
+
type_description: *td2
|
| 648 |
+
- &bv3
|
| 649 |
+
name: "a"
|
| 650 |
+
offset: 0
|
| 651 |
+
absolute_offset: 0
|
| 652 |
+
size: 8
|
| 653 |
+
padded_size: 8
|
| 654 |
+
decorations: 0x00000000 # NONE
|
| 655 |
+
numeric:
|
| 656 |
+
scalar: { width: 32, signedness: 1 }
|
| 657 |
+
vector: { component_count: 0 }
|
| 658 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 659 |
+
array: { dims_count: 1, dims: [2,], stride: 4 }
|
| 660 |
+
flags: 0x00000001 # UNUSED
|
| 661 |
+
member_count: 0
|
| 662 |
+
members:
|
| 663 |
+
type_description: *td18
|
| 664 |
+
- &bv4
|
| 665 |
+
name: "b"
|
| 666 |
+
offset: 32
|
| 667 |
+
absolute_offset: 0
|
| 668 |
+
size: 4
|
| 669 |
+
padded_size: 4
|
| 670 |
+
decorations: 0x00000000 # NONE
|
| 671 |
+
numeric:
|
| 672 |
+
scalar: { width: 32, signedness: 1 }
|
| 673 |
+
vector: { component_count: 0 }
|
| 674 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 675 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 676 |
+
flags: 0x00000001 # UNUSED
|
| 677 |
+
member_count: 0
|
| 678 |
+
members:
|
| 679 |
+
type_description: *td19
|
| 680 |
+
- &bv5
|
| 681 |
+
name: "c"
|
| 682 |
+
offset: 48
|
| 683 |
+
absolute_offset: 48
|
| 684 |
+
size: 0
|
| 685 |
+
padded_size: 0
|
| 686 |
+
decorations: 0x00000000 # NONE
|
| 687 |
+
numeric:
|
| 688 |
+
scalar: { width: 0, signedness: 0 }
|
| 689 |
+
vector: { component_count: 0 }
|
| 690 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 691 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 692 |
+
flags: 0x00000000 # NONE
|
| 693 |
+
member_count: 4
|
| 694 |
+
members:
|
| 695 |
+
- *bv3
|
| 696 |
+
- *bv4
|
| 697 |
+
- [recursive]
|
| 698 |
+
- [recursive]
|
| 699 |
+
type_description: *td15
|
| 700 |
+
- &bv6
|
| 701 |
+
name: "x"
|
| 702 |
+
offset: 0
|
| 703 |
+
absolute_offset: 0
|
| 704 |
+
size: 0
|
| 705 |
+
padded_size: 0
|
| 706 |
+
decorations: 0x00000000 # NONE
|
| 707 |
+
numeric:
|
| 708 |
+
scalar: { width: 0, signedness: 0 }
|
| 709 |
+
vector: { component_count: 0 }
|
| 710 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 711 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 712 |
+
flags: 0x00000000 # NONE
|
| 713 |
+
member_count: 4
|
| 714 |
+
members:
|
| 715 |
+
- *bv1
|
| 716 |
+
- *bv2
|
| 717 |
+
- *bv5
|
| 718 |
+
- [recursive]
|
| 719 |
+
type_description: *td17
|
| 720 |
+
- &bv7
|
| 721 |
+
name: "identity"
|
| 722 |
+
offset: 0
|
| 723 |
+
absolute_offset: 0
|
| 724 |
+
size: 128
|
| 725 |
+
padded_size: 128
|
| 726 |
+
decorations: 0x00000000 # NONE
|
| 727 |
+
numeric:
|
| 728 |
+
scalar: { width: 32, signedness: 1 }
|
| 729 |
+
vector: { component_count: 0 }
|
| 730 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 731 |
+
array: { dims_count: 1, dims: [32,], stride: 4 }
|
| 732 |
+
flags: 0x00000000 # NONE
|
| 733 |
+
member_count: 0
|
| 734 |
+
members:
|
| 735 |
+
type_description: *td30
|
| 736 |
+
- &bv8
|
| 737 |
+
name: "pc"
|
| 738 |
+
offset: 0
|
| 739 |
+
absolute_offset: 0
|
| 740 |
+
size: 128
|
| 741 |
+
padded_size: 128
|
| 742 |
+
decorations: 0x00000000 # NONE
|
| 743 |
+
numeric:
|
| 744 |
+
scalar: { width: 0, signedness: 0 }
|
| 745 |
+
vector: { component_count: 0 }
|
| 746 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 747 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 748 |
+
flags: 0x00000000 # NONE
|
| 749 |
+
member_count: 1
|
| 750 |
+
members:
|
| 751 |
+
- *bv7
|
| 752 |
+
type_description: *td31
|
| 753 |
+
all_descriptor_bindings:
|
| 754 |
+
- &db0
|
| 755 |
+
spirv_id: 149
|
| 756 |
+
name: "image0_0"
|
| 757 |
+
binding: 0
|
| 758 |
+
input_attachment_index: 0
|
| 759 |
+
set: 3
|
| 760 |
+
decoration_flags: 0x00000000 # NONE
|
| 761 |
+
descriptor_type: 3 # VK_DESCRIPTOR_TYPE_STORAGE_IMAGE
|
| 762 |
+
resource_type: 8 # UAV
|
| 763 |
+
image: { dim: 1, depth: 0, arrayed: 0, ms: 0, sampled: 2, image_format: 33 } # dim=2D image_format=R32ui
|
| 764 |
+
block: *bv0 #
|
| 765 |
+
array: { dims_count: 0, dims: [] }
|
| 766 |
+
accessed: 1
|
| 767 |
+
uav_counter_id: 4294967295
|
| 768 |
+
uav_counter_binding:
|
| 769 |
+
type_description: *td0
|
| 770 |
+
word_offset: { binding: 227, set: 223 }
|
| 771 |
+
- &db1
|
| 772 |
+
spirv_id: 21
|
| 773 |
+
name: "x"
|
| 774 |
+
binding: 1
|
| 775 |
+
input_attachment_index: 0
|
| 776 |
+
set: 3
|
| 777 |
+
decoration_flags: 0x00000000 # NONE
|
| 778 |
+
descriptor_type: 7 # VK_DESCRIPTOR_TYPE_STORAGE_BUFFER
|
| 779 |
+
resource_type: 8 # UAV
|
| 780 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 781 |
+
block: *bv6 # "x"
|
| 782 |
+
array: { dims_count: 0, dims: [] }
|
| 783 |
+
accessed: 1
|
| 784 |
+
uav_counter_id: 4294967295
|
| 785 |
+
uav_counter_binding:
|
| 786 |
+
type_description: *td17
|
| 787 |
+
word_offset: { binding: 207, set: 203 }
|
| 788 |
+
all_interface_variables:
|
| 789 |
+
- &iv0
|
| 790 |
+
spirv_id: 154
|
| 791 |
+
name: "gl_FragCoord"
|
| 792 |
+
location: 4294967295
|
| 793 |
+
storage_class: 1 # Input
|
| 794 |
+
semantic:
|
| 795 |
+
decoration_flags: 0x00000010 # BUILT_IN
|
| 796 |
+
built_in: 15 # FragCoord
|
| 797 |
+
numeric:
|
| 798 |
+
scalar: { width: 32, signedness: 0 }
|
| 799 |
+
vector: { component_count: 4 }
|
| 800 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 801 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 802 |
+
member_count: 0
|
| 803 |
+
members:
|
| 804 |
+
format: 109 # VK_FORMAT_R32G32B32A32_SFLOAT
|
| 805 |
+
type_description: *td32
|
| 806 |
+
word_offset: { location: 0 }
|
| 807 |
+
module:
|
| 808 |
+
generator: 8 # Khronos Glslang Reference Front End
|
| 809 |
+
entry_point_name: "main"
|
| 810 |
+
entry_point_id: 4
|
| 811 |
+
source_language: 2 # GLSL
|
| 812 |
+
source_language_version: 450
|
| 813 |
+
spirv_execution_model: 4 # Fragment
|
| 814 |
+
shader_stage: 0x00000010 # PS
|
| 815 |
+
descriptor_binding_count: 2
|
| 816 |
+
descriptor_bindings:
|
| 817 |
+
- *db0 # "image0_0"
|
| 818 |
+
- *db1 # "x"
|
| 819 |
+
descriptor_set_count: 1
|
| 820 |
+
descriptor_sets:
|
| 821 |
+
- set: 3
|
| 822 |
+
binding_count: 2
|
| 823 |
+
bindings:
|
| 824 |
+
- *db0 # "image0_0"
|
| 825 |
+
- *db1 # "x"
|
| 826 |
+
input_variable_count: 1,
|
| 827 |
+
input_variables:
|
| 828 |
+
- *iv0 # "gl_FragCoord"
|
| 829 |
+
output_variable_count: 0,
|
| 830 |
+
output_variables:
|
| 831 |
+
push_constant_count: 1,
|
| 832 |
+
push_constants:
|
| 833 |
+
- *bv8 # "pc"
|
| 834 |
+
specialization_constant_count: 0,
|
| 835 |
+
specialization_constants:
|
| 836 |
+
entry_point_heap_accesses:
|
| 837 |
+
- entry: "main"
|
| 838 |
+
resource_heap_access_count: 0
|
| 839 |
+
resource_heap_accesses:
|
| 840 |
+
sampler_heap_access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|
+
traits:
|
| 13 |
+
numeric:
|
| 14 |
+
scalar: { width: 32, signedness: 1 }
|
| 15 |
+
vector: { component_count: 0 }
|
| 16 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 17 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 18 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 19 |
+
member_count: 0
|
| 20 |
+
members:
|
| 21 |
+
- &td1
|
| 22 |
+
id: 7
|
| 23 |
+
op: 32
|
| 24 |
+
type_name:
|
| 25 |
+
struct_member_name: "i"
|
| 26 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 27 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 28 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 29 |
+
traits:
|
| 30 |
+
numeric:
|
| 31 |
+
scalar: { width: 0, signedness: 0 }
|
| 32 |
+
vector: { component_count: 0 }
|
| 33 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 34 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 35 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 36 |
+
member_count: 1
|
| 37 |
+
members:
|
| 38 |
+
- [forward pointer]
|
| 39 |
+
- &td2
|
| 40 |
+
id: 7
|
| 41 |
+
op: 32
|
| 42 |
+
type_name: "t1"
|
| 43 |
+
struct_member_name: "k"
|
| 44 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 45 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 46 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 47 |
+
traits:
|
| 48 |
+
numeric:
|
| 49 |
+
scalar: { width: 0, signedness: 0 }
|
| 50 |
+
vector: { component_count: 0 }
|
| 51 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 52 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 53 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 54 |
+
member_count: 1
|
| 55 |
+
members:
|
| 56 |
+
- *td1
|
| 57 |
+
- &td3
|
| 58 |
+
id: 12
|
| 59 |
+
op: 32
|
| 60 |
+
type_name: "t4"
|
| 61 |
+
struct_member_name: "m"
|
| 62 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 63 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 64 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 65 |
+
traits:
|
| 66 |
+
numeric:
|
| 67 |
+
scalar: { width: 0, signedness: 0 }
|
| 68 |
+
vector: { component_count: 0 }
|
| 69 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 70 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 71 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 72 |
+
member_count: 2
|
| 73 |
+
members:
|
| 74 |
+
- *td0
|
| 75 |
+
- *td2
|
| 76 |
+
- &td4
|
| 77 |
+
id: 13
|
| 78 |
+
op: 30
|
| 79 |
+
type_name: "t5"
|
| 80 |
+
struct_member_name:
|
| 81 |
+
storage_class: -1 # NOT APPLICABLE
|
| 82 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 83 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 84 |
+
traits:
|
| 85 |
+
numeric:
|
| 86 |
+
scalar: { width: 0, signedness: 0 }
|
| 87 |
+
vector: { component_count: 0 }
|
| 88 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 89 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 90 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 91 |
+
member_count: 1
|
| 92 |
+
members:
|
| 93 |
+
- *td3
|
| 94 |
+
- &td5
|
| 95 |
+
id: 6
|
| 96 |
+
op: 21
|
| 97 |
+
type_name:
|
| 98 |
+
struct_member_name: "j"
|
| 99 |
+
storage_class: 0 # UniformConstant
|
| 100 |
+
type_flags: 0x00000004 # INT
|
| 101 |
+
decoration_flags: 0x00000000 # NONE
|
| 102 |
+
traits:
|
| 103 |
+
numeric:
|
| 104 |
+
scalar: { width: 32, signedness: 1 }
|
| 105 |
+
vector: { component_count: 0 }
|
| 106 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 107 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 108 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 109 |
+
member_count: 0
|
| 110 |
+
members:
|
| 111 |
+
- &td6
|
| 112 |
+
id: 7
|
| 113 |
+
op: 32
|
| 114 |
+
type_name:
|
| 115 |
+
struct_member_name: "i"
|
| 116 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 117 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 118 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 119 |
+
traits:
|
| 120 |
+
numeric:
|
| 121 |
+
scalar: { width: 0, signedness: 0 }
|
| 122 |
+
vector: { component_count: 0 }
|
| 123 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 124 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 125 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 126 |
+
member_count: 1
|
| 127 |
+
members:
|
| 128 |
+
- [forward pointer]
|
| 129 |
+
- &td7
|
| 130 |
+
id: 7
|
| 131 |
+
op: 32
|
| 132 |
+
type_name: "t1"
|
| 133 |
+
struct_member_name: "k"
|
| 134 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 135 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 136 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 137 |
+
traits:
|
| 138 |
+
numeric:
|
| 139 |
+
scalar: { width: 0, signedness: 0 }
|
| 140 |
+
vector: { component_count: 0 }
|
| 141 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 142 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 143 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 144 |
+
member_count: 1
|
| 145 |
+
members:
|
| 146 |
+
- *td6
|
| 147 |
+
- &td8
|
| 148 |
+
id: 7
|
| 149 |
+
op: 32
|
| 150 |
+
type_name:
|
| 151 |
+
struct_member_name: "i"
|
| 152 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 153 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 154 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 155 |
+
traits:
|
| 156 |
+
numeric:
|
| 157 |
+
scalar: { width: 0, signedness: 0 }
|
| 158 |
+
vector: { component_count: 0 }
|
| 159 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 160 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 161 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 162 |
+
member_count: 1
|
| 163 |
+
members:
|
| 164 |
+
- [forward pointer]
|
| 165 |
+
- &td9
|
| 166 |
+
id: 7
|
| 167 |
+
op: 32
|
| 168 |
+
type_name: "t1"
|
| 169 |
+
struct_member_name: "i"
|
| 170 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 171 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 172 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 173 |
+
traits:
|
| 174 |
+
numeric:
|
| 175 |
+
scalar: { width: 0, signedness: 0 }
|
| 176 |
+
vector: { component_count: 0 }
|
| 177 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 178 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 179 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 180 |
+
member_count: 1
|
| 181 |
+
members:
|
| 182 |
+
- *td8
|
| 183 |
+
- &td10
|
| 184 |
+
id: 6
|
| 185 |
+
op: 21
|
| 186 |
+
type_name:
|
| 187 |
+
struct_member_name: "j"
|
| 188 |
+
storage_class: 0 # UniformConstant
|
| 189 |
+
type_flags: 0x00000004 # INT
|
| 190 |
+
decoration_flags: 0x00000000 # NONE
|
| 191 |
+
traits:
|
| 192 |
+
numeric:
|
| 193 |
+
scalar: { width: 32, signedness: 1 }
|
| 194 |
+
vector: { component_count: 0 }
|
| 195 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 196 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 197 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 198 |
+
member_count: 0
|
| 199 |
+
members:
|
| 200 |
+
- &td11
|
| 201 |
+
id: 7
|
| 202 |
+
op: 32
|
| 203 |
+
type_name:
|
| 204 |
+
struct_member_name: "i"
|
| 205 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 206 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 207 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 208 |
+
traits:
|
| 209 |
+
numeric:
|
| 210 |
+
scalar: { width: 0, signedness: 0 }
|
| 211 |
+
vector: { component_count: 0 }
|
| 212 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 213 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 214 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 215 |
+
member_count: 1
|
| 216 |
+
members:
|
| 217 |
+
- [forward pointer]
|
| 218 |
+
- &td12
|
| 219 |
+
id: 7
|
| 220 |
+
op: 32
|
| 221 |
+
type_name: "t1"
|
| 222 |
+
struct_member_name: "k"
|
| 223 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 224 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 225 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 226 |
+
traits:
|
| 227 |
+
numeric:
|
| 228 |
+
scalar: { width: 0, signedness: 0 }
|
| 229 |
+
vector: { component_count: 0 }
|
| 230 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 231 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 232 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 233 |
+
member_count: 1
|
| 234 |
+
members:
|
| 235 |
+
- *td11
|
| 236 |
+
- &td13
|
| 237 |
+
id: 8
|
| 238 |
+
op: 30
|
| 239 |
+
type_name: "t4"
|
| 240 |
+
struct_member_name:
|
| 241 |
+
storage_class: -1 # NOT APPLICABLE
|
| 242 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 243 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 244 |
+
traits:
|
| 245 |
+
numeric:
|
| 246 |
+
scalar: { width: 0, signedness: 0 }
|
| 247 |
+
vector: { component_count: 0 }
|
| 248 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 249 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 250 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 251 |
+
member_count: 2
|
| 252 |
+
members:
|
| 253 |
+
- *td10
|
| 254 |
+
- *td12
|
| 255 |
+
all_block_variables:
|
| 256 |
+
- &bv0
|
| 257 |
+
name: "j"
|
| 258 |
+
offset: 0
|
| 259 |
+
absolute_offset: 0
|
| 260 |
+
size: 4
|
| 261 |
+
padded_size: 4
|
| 262 |
+
decorations: 0x00000000 # NONE
|
| 263 |
+
numeric:
|
| 264 |
+
scalar: { width: 32, signedness: 1 }
|
| 265 |
+
vector: { component_count: 0 }
|
| 266 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 267 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 268 |
+
flags: 0x00000001 # UNUSED
|
| 269 |
+
member_count: 0
|
| 270 |
+
members:
|
| 271 |
+
type_description: *td5
|
| 272 |
+
- &bv1
|
| 273 |
+
name: "k"
|
| 274 |
+
offset: 8
|
| 275 |
+
absolute_offset: 8
|
| 276 |
+
size: 8
|
| 277 |
+
padded_size: 8
|
| 278 |
+
decorations: 0x00000000 # NONE
|
| 279 |
+
numeric:
|
| 280 |
+
scalar: { width: 0, signedness: 0 }
|
| 281 |
+
vector: { component_count: 0 }
|
| 282 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 283 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 284 |
+
flags: 0x00000001 # UNUSED
|
| 285 |
+
member_count: 1
|
| 286 |
+
members:
|
| 287 |
+
- [recursive]
|
| 288 |
+
type_description: *td7
|
| 289 |
+
- &bv2
|
| 290 |
+
name: "m"
|
| 291 |
+
offset: 0
|
| 292 |
+
absolute_offset: 0
|
| 293 |
+
size: 8
|
| 294 |
+
padded_size: 8
|
| 295 |
+
decorations: 0x00000000 # NONE
|
| 296 |
+
numeric:
|
| 297 |
+
scalar: { width: 0, signedness: 0 }
|
| 298 |
+
vector: { component_count: 0 }
|
| 299 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 300 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 301 |
+
flags: 0x00000001 # UNUSED
|
| 302 |
+
member_count: 2
|
| 303 |
+
members:
|
| 304 |
+
- *bv0
|
| 305 |
+
- *bv1
|
| 306 |
+
type_description: *td3
|
| 307 |
+
- &bv3
|
| 308 |
+
name: "s5"
|
| 309 |
+
offset: 0
|
| 310 |
+
absolute_offset: 0
|
| 311 |
+
size: 0
|
| 312 |
+
padded_size: 0
|
| 313 |
+
decorations: 0x00000000 # NONE
|
| 314 |
+
numeric:
|
| 315 |
+
scalar: { width: 0, signedness: 0 }
|
| 316 |
+
vector: { component_count: 0 }
|
| 317 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 318 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 319 |
+
flags: 0x00000001 # UNUSED
|
| 320 |
+
member_count: 1
|
| 321 |
+
members:
|
| 322 |
+
- *bv2
|
| 323 |
+
type_description: *td4
|
| 324 |
+
- &bv4
|
| 325 |
+
name: "j"
|
| 326 |
+
offset: 0
|
| 327 |
+
absolute_offset: 0
|
| 328 |
+
size: 4
|
| 329 |
+
padded_size: 4
|
| 330 |
+
decorations: 0x00000000 # NONE
|
| 331 |
+
numeric:
|
| 332 |
+
scalar: { width: 32, signedness: 1 }
|
| 333 |
+
vector: { component_count: 0 }
|
| 334 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 335 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 336 |
+
flags: 0x00000001 # UNUSED
|
| 337 |
+
member_count: 0
|
| 338 |
+
members:
|
| 339 |
+
type_description: *td10
|
| 340 |
+
- &bv5
|
| 341 |
+
name: "k"
|
| 342 |
+
offset: 8
|
| 343 |
+
absolute_offset: 8
|
| 344 |
+
size: 8
|
| 345 |
+
padded_size: 8
|
| 346 |
+
decorations: 0x00000000 # NONE
|
| 347 |
+
numeric:
|
| 348 |
+
scalar: { width: 0, signedness: 0 }
|
| 349 |
+
vector: { component_count: 0 }
|
| 350 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 351 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 352 |
+
flags: 0x00000001 # UNUSED
|
| 353 |
+
member_count: 1
|
| 354 |
+
members:
|
| 355 |
+
- [recursive]
|
| 356 |
+
type_description: *td12
|
| 357 |
+
- &bv6
|
| 358 |
+
name: "x"
|
| 359 |
+
offset: 0
|
| 360 |
+
absolute_offset: 0
|
| 361 |
+
size: 0
|
| 362 |
+
padded_size: 0
|
| 363 |
+
decorations: 0x00000000 # NONE
|
| 364 |
+
numeric:
|
| 365 |
+
scalar: { width: 0, signedness: 0 }
|
| 366 |
+
vector: { component_count: 0 }
|
| 367 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 368 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 369 |
+
flags: 0x00000001 # UNUSED
|
| 370 |
+
member_count: 2
|
| 371 |
+
members:
|
| 372 |
+
- *bv4
|
| 373 |
+
- *bv5
|
| 374 |
+
type_description: *td13
|
| 375 |
+
all_descriptor_bindings:
|
| 376 |
+
- &db0
|
| 377 |
+
spirv_id: 16
|
| 378 |
+
name: "s5"
|
| 379 |
+
binding: 0
|
| 380 |
+
input_attachment_index: 0
|
| 381 |
+
set: 0
|
| 382 |
+
decoration_flags: 0x00000000 # NONE
|
| 383 |
+
descriptor_type: 7 # VK_DESCRIPTOR_TYPE_STORAGE_BUFFER
|
| 384 |
+
resource_type: 8 # UAV
|
| 385 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 386 |
+
block: *bv3 # "s5"
|
| 387 |
+
array: { dims_count: 0, dims: [] }
|
| 388 |
+
accessed: 0
|
| 389 |
+
uav_counter_id: 4294967295
|
| 390 |
+
uav_counter_binding:
|
| 391 |
+
type_description: *td4
|
| 392 |
+
word_offset: { binding: 159, set: 155 }
|
| 393 |
+
- &db1
|
| 394 |
+
spirv_id: 11
|
| 395 |
+
name: "x"
|
| 396 |
+
binding: 2
|
| 397 |
+
input_attachment_index: 0
|
| 398 |
+
set: 1
|
| 399 |
+
decoration_flags: 0x00000000 # NONE
|
| 400 |
+
descriptor_type: 7 # VK_DESCRIPTOR_TYPE_STORAGE_BUFFER
|
| 401 |
+
resource_type: 8 # UAV
|
| 402 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 403 |
+
block: *bv6 # "x"
|
| 404 |
+
array: { dims_count: 0, dims: [] }
|
| 405 |
+
accessed: 0
|
| 406 |
+
uav_counter_id: 4294967295
|
| 407 |
+
uav_counter_binding:
|
| 408 |
+
type_description: *td13
|
| 409 |
+
word_offset: { binding: 130, set: 126 }
|
| 410 |
+
all_interface_variables:
|
| 411 |
+
module:
|
| 412 |
+
generator: 8 # Khronos Glslang Reference Front End
|
| 413 |
+
entry_point_name: "main"
|
| 414 |
+
entry_point_id: 4
|
| 415 |
+
source_language: 2 # GLSL
|
| 416 |
+
source_language_version: 450
|
| 417 |
+
spirv_execution_model: 4 # Fragment
|
| 418 |
+
shader_stage: 0x00000010 # PS
|
| 419 |
+
descriptor_binding_count: 2
|
| 420 |
+
descriptor_bindings:
|
| 421 |
+
- *db0 # "s5"
|
| 422 |
+
- *db1 # "x"
|
| 423 |
+
descriptor_set_count: 2
|
| 424 |
+
descriptor_sets:
|
| 425 |
+
- set: 0
|
| 426 |
+
binding_count: 1
|
| 427 |
+
bindings:
|
| 428 |
+
- *db0 # "s5"
|
| 429 |
+
- set: 1
|
| 430 |
+
binding_count: 1
|
| 431 |
+
bindings:
|
| 432 |
+
- *db1 # "x"
|
| 433 |
+
input_variable_count: 0,
|
| 434 |
+
input_variables:
|
| 435 |
+
output_variable_count: 0,
|
| 436 |
+
output_variables:
|
| 437 |
+
push_constant_count: 0,
|
| 438 |
+
push_constants:
|
| 439 |
+
specialization_constant_count: 0,
|
| 440 |
+
specialization_constants:
|
| 441 |
+
entry_point_heap_accesses:
|
| 442 |
+
- entry: "main"
|
| 443 |
+
resource_heap_access_count: 0
|
| 444 |
+
resource_heap_accesses:
|
| 445 |
+
sampler_heap_access_count: 0
|
| 446 |
+
sampler_heap_accesses:
|
| 447 |
+
...
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_4.glsl
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#version 460 core
|
| 2 |
+
#extension GL_EXT_buffer_reference : require
|
| 3 |
+
#extension GL_EXT_shader_explicit_arithmetic_types_float32 : require
|
| 4 |
+
#extension GL_EXT_shader_explicit_arithmetic_types_int64 : require
|
| 5 |
+
#extension GL_EXT_shader_explicit_arithmetic_types_int32 : require
|
| 6 |
+
|
| 7 |
+
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
| 8 |
+
|
| 9 |
+
layout(buffer_reference, buffer_reference_align = 4) readonly buffer ReadVecf
|
| 10 |
+
{
|
| 11 |
+
float32_t values[];
|
| 12 |
+
};
|
| 13 |
+
|
| 14 |
+
layout(buffer_reference, buffer_reference_align = 4) writeonly buffer WriteVecf
|
| 15 |
+
{
|
| 16 |
+
float32_t values[];
|
| 17 |
+
};
|
| 18 |
+
|
| 19 |
+
layout(push_constant, std430) uniform Parameters
|
| 20 |
+
{
|
| 21 |
+
ReadVecf a;
|
| 22 |
+
ReadVecf b;
|
| 23 |
+
WriteVecf c;
|
| 24 |
+
uint64_t n;
|
| 25 |
+
} params;
|
| 26 |
+
|
| 27 |
+
void main()
|
| 28 |
+
{
|
| 29 |
+
uint32_t idx = gl_GlobalInvocationID.x;
|
| 30 |
+
uint32_t stride = gl_NumWorkGroups.x * gl_WorkGroupSize.x;
|
| 31 |
+
for (; idx < params.n; idx += st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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
%YAML 1.1
|
| 2 |
+
---
|
| 3 |
+
all_type_descriptions:
|
| 4 |
+
- &td0
|
| 5 |
+
id: 34
|
| 6 |
+
op: 29
|
| 7 |
+
type_name:
|
| 8 |
+
struct_member_name: "values"
|
| 9 |
+
storage_class: 0 # UniformConstant
|
| 10 |
+
type_flags: 0x20000008 # ARRAY FLOAT
|
| 11 |
+
decoration_flags: 0x00000000 # NONE
|
| 12 |
+
traits:
|
| 13 |
+
numeric:
|
| 14 |
+
scalar: { width: 32, signedness: 0 }
|
| 15 |
+
vector: { component_count: 0 }
|
| 16 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 17 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 18 |
+
array: { dims_count: 1, dims: [0,], stride: 4 }
|
| 19 |
+
member_count: 0
|
| 20 |
+
members:
|
| 21 |
+
- &td1
|
| 22 |
+
id: 30
|
| 23 |
+
op: 32
|
| 24 |
+
type_name: "ReadVecf"
|
| 25 |
+
struct_member_name: "a"
|
| 26 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 27 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 28 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 29 |
+
traits:
|
| 30 |
+
numeric:
|
| 31 |
+
scalar: { width: 0, signedness: 0 }
|
| 32 |
+
vector: { component_count: 0 }
|
| 33 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 34 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 35 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 36 |
+
member_count: 1
|
| 37 |
+
members:
|
| 38 |
+
- *td0
|
| 39 |
+
- &td2
|
| 40 |
+
id: 30
|
| 41 |
+
op: 32
|
| 42 |
+
type_name: "ReadVecf"
|
| 43 |
+
struct_member_name: "b"
|
| 44 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 45 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 46 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 47 |
+
traits:
|
| 48 |
+
numeric:
|
| 49 |
+
scalar: { width: 0, signedness: 0 }
|
| 50 |
+
vector: { component_count: 0 }
|
| 51 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 52 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 53 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 54 |
+
member_count: 1
|
| 55 |
+
members:
|
| 56 |
+
- [forward pointer]
|
| 57 |
+
- &td3
|
| 58 |
+
id: 36
|
| 59 |
+
op: 29
|
| 60 |
+
type_name:
|
| 61 |
+
struct_member_name: "values"
|
| 62 |
+
storage_class: 0 # UniformConstant
|
| 63 |
+
type_flags: 0x20000008 # ARRAY FLOAT
|
| 64 |
+
decoration_flags: 0x00000000 # NONE
|
| 65 |
+
traits:
|
| 66 |
+
numeric:
|
| 67 |
+
scalar: { width: 32, signedness: 0 }
|
| 68 |
+
vector: { component_count: 0 }
|
| 69 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 70 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 71 |
+
array: { dims_count: 1, dims: [0,], stride: 4 }
|
| 72 |
+
member_count: 0
|
| 73 |
+
members:
|
| 74 |
+
- &td4
|
| 75 |
+
id: 31
|
| 76 |
+
op: 32
|
| 77 |
+
type_name: "WriteVecf"
|
| 78 |
+
struct_member_name: "c"
|
| 79 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 80 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 81 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 82 |
+
traits:
|
| 83 |
+
numeric:
|
| 84 |
+
scalar: { width: 0, signedness: 0 }
|
| 85 |
+
vector: { component_count: 0 }
|
| 86 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 87 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 88 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 89 |
+
member_count: 1
|
| 90 |
+
members:
|
| 91 |
+
- *td3
|
| 92 |
+
- &td5
|
| 93 |
+
id: 28
|
| 94 |
+
op: 21
|
| 95 |
+
type_name:
|
| 96 |
+
struct_member_name: "n"
|
| 97 |
+
storage_class: 0 # UniformConstant
|
| 98 |
+
type_flags: 0x00000004 # INT
|
| 99 |
+
decoration_flags: 0x00000000 # NONE
|
| 100 |
+
traits:
|
| 101 |
+
numeric:
|
| 102 |
+
scalar: { width: 64, signedness: 0 }
|
| 103 |
+
vector: { component_count: 0 }
|
| 104 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 105 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 106 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 107 |
+
member_count: 0
|
| 108 |
+
members:
|
| 109 |
+
- &td6
|
| 110 |
+
id: 32
|
| 111 |
+
op: 30
|
| 112 |
+
type_name: "Parameters"
|
| 113 |
+
struct_member_name:
|
| 114 |
+
storage_class: -1 # NOT APPLICABLE
|
| 115 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 116 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 117 |
+
traits:
|
| 118 |
+
numeric:
|
| 119 |
+
scalar: { width: 0, signedness: 0 }
|
| 120 |
+
vector: { component_count: 0 }
|
| 121 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 122 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 123 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 124 |
+
member_count: 4
|
| 125 |
+
members:
|
| 126 |
+
- *td1
|
| 127 |
+
- *td2
|
| 128 |
+
- *td4
|
| 129 |
+
- *td5
|
| 130 |
+
- &td7
|
| 131 |
+
id: 34
|
| 132 |
+
op: 29
|
| 133 |
+
type_name:
|
| 134 |
+
struct_member_name: "values"
|
| 135 |
+
storage_class: 0 # UniformConstant
|
| 136 |
+
type_flags: 0x20000008 # ARRAY FLOAT
|
| 137 |
+
decoration_flags: 0x00000000 # NONE
|
| 138 |
+
traits:
|
| 139 |
+
numeric:
|
| 140 |
+
scalar: { width: 32, signedness: 0 }
|
| 141 |
+
vector: { component_count: 0 }
|
| 142 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 143 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 144 |
+
array: { dims_count: 1, dims: [0,], stride: 4 }
|
| 145 |
+
member_count: 0
|
| 146 |
+
members:
|
| 147 |
+
- &td8
|
| 148 |
+
id: 36
|
| 149 |
+
op: 29
|
| 150 |
+
type_name:
|
| 151 |
+
struct_member_name: "values"
|
| 152 |
+
storage_class: 0 # UniformConstant
|
| 153 |
+
type_flags: 0x20000008 # ARRAY FLOAT
|
| 154 |
+
decoration_flags: 0x00000000 # NONE
|
| 155 |
+
traits:
|
| 156 |
+
numeric:
|
| 157 |
+
scalar: { width: 32, signedness: 0 }
|
| 158 |
+
vector: { component_count: 0 }
|
| 159 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 160 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 161 |
+
array: { dims_count: 1, dims: [0,], stride: 4 }
|
| 162 |
+
member_count: 0
|
| 163 |
+
members:
|
| 164 |
+
- &td9
|
| 165 |
+
id: 9
|
| 166 |
+
op: 23
|
| 167 |
+
type_name:
|
| 168 |
+
struct_member_name:
|
| 169 |
+
storage_class: -1 # NOT APPLICABLE
|
| 170 |
+
type_flags: 0x00000104 # VECTOR INT
|
| 171 |
+
decoration_flags: 0x00000000 # NONE
|
| 172 |
+
traits:
|
| 173 |
+
numeric:
|
| 174 |
+
scalar: { width: 32, signedness: 0 }
|
| 175 |
+
vector: { component_count: 3 }
|
| 176 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 177 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 178 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 179 |
+
member_count: 0
|
| 180 |
+
members:
|
| 181 |
+
all_block_variables:
|
| 182 |
+
- &bv0
|
| 183 |
+
name: "values"
|
| 184 |
+
offset: 0
|
| 185 |
+
absolute_offset: 0
|
| 186 |
+
size: 0
|
| 187 |
+
padded_size: 0
|
| 188 |
+
decorations: 0x00000080 # NON_WRITABLE
|
| 189 |
+
numeric:
|
| 190 |
+
scalar: { width: 32, signedness: 0 }
|
| 191 |
+
vector: { component_count: 0 }
|
| 192 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 193 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 194 |
+
flags: 0x00000000 # NONE
|
| 195 |
+
member_count: 0
|
| 196 |
+
members:
|
| 197 |
+
type_description: *td7
|
| 198 |
+
- &bv1
|
| 199 |
+
name: "a"
|
| 200 |
+
offset: 0
|
| 201 |
+
absolute_offset: 0
|
| 202 |
+
size: 8
|
| 203 |
+
padded_size: 8
|
| 204 |
+
decorations: 0x00000000 # NONE
|
| 205 |
+
numeric:
|
| 206 |
+
scalar: { width: 0, signedness: 0 }
|
| 207 |
+
vector: { component_count: 0 }
|
| 208 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 209 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 210 |
+
flags: 0x00000000 # NONE
|
| 211 |
+
member_count: 1
|
| 212 |
+
members:
|
| 213 |
+
- *bv0
|
| 214 |
+
type_description: *td1
|
| 215 |
+
- &bv2
|
| 216 |
+
name: "values"
|
| 217 |
+
offset: 0
|
| 218 |
+
absolute_offset: 0
|
| 219 |
+
size: 0
|
| 220 |
+
padded_size: 0
|
| 221 |
+
decorations: 0x00000200 # NON_READABLE
|
| 222 |
+
numeric:
|
| 223 |
+
scalar: { width: 32, signedness: 0 }
|
| 224 |
+
vector: { component_count: 0 }
|
| 225 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 226 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 227 |
+
flags: 0x00000000 # NONE
|
| 228 |
+
member_count: 0
|
| 229 |
+
members:
|
| 230 |
+
type_description: *td8
|
| 231 |
+
- &bv3
|
| 232 |
+
name: "c"
|
| 233 |
+
offset: 16
|
| 234 |
+
absolute_offset: 16
|
| 235 |
+
size: 8
|
| 236 |
+
padded_size: 8
|
| 237 |
+
decorations: 0x00000000 # NONE
|
| 238 |
+
numeric:
|
| 239 |
+
scalar: { width: 0, signedness: 0 }
|
| 240 |
+
vector: { component_count: 0 }
|
| 241 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 242 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 243 |
+
flags: 0x00000000 # NONE
|
| 244 |
+
member_count: 1
|
| 245 |
+
members:
|
| 246 |
+
- *bv2
|
| 247 |
+
type_description: *td4
|
| 248 |
+
- &bv4
|
| 249 |
+
name: "n"
|
| 250 |
+
offset: 24
|
| 251 |
+
absolute_offset: 24
|
| 252 |
+
size: 8
|
| 253 |
+
padded_size: 8
|
| 254 |
+
decorations: 0x00000000 # NONE
|
| 255 |
+
numeric:
|
| 256 |
+
scalar: { width: 64, signedness: 0 }
|
| 257 |
+
vector: { component_count: 0 }
|
| 258 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 259 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 260 |
+
flags: 0x00000000 # NONE
|
| 261 |
+
member_count: 0
|
| 262 |
+
members:
|
| 263 |
+
type_description: *td5
|
| 264 |
+
- &bv5
|
| 265 |
+
name: "params"
|
| 266 |
+
offset: 0
|
| 267 |
+
absolute_offset: 0
|
| 268 |
+
size: 32
|
| 269 |
+
padded_size: 32
|
| 270 |
+
decorations: 0x00000000 # NONE
|
| 271 |
+
numeric:
|
| 272 |
+
scalar: { width: 0, signedness: 0 }
|
| 273 |
+
vector: { component_count: 0 }
|
| 274 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 275 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 276 |
+
flags: 0x00000000 # NONE
|
| 277 |
+
member_count: 4
|
| 278 |
+
members:
|
| 279 |
+
- *bv1
|
| 280 |
+
- [recursive]
|
| 281 |
+
- *bv3
|
| 282 |
+
- *bv4
|
| 283 |
+
type_description: *td6
|
| 284 |
+
all_descriptor_bindings:
|
| 285 |
+
all_interface_variables:
|
| 286 |
+
- &iv0
|
| 287 |
+
spirv_id: 11
|
| 288 |
+
name: "gl_GlobalInvocationID"
|
| 289 |
+
location: 4294967295
|
| 290 |
+
storage_class: 1 # Input
|
| 291 |
+
semantic:
|
| 292 |
+
decoration_flags: 0x00000010 # BUILT_IN
|
| 293 |
+
built_in: 28 # GlobalInvocationId
|
| 294 |
+
numeric:
|
| 295 |
+
scalar: { width: 32, signedness: 0 }
|
| 296 |
+
vector: { component_count: 3 }
|
| 297 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 298 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 299 |
+
member_count: 0
|
| 300 |
+
members:
|
| 301 |
+
format: 104 # VK_FORMAT_R32G32B32_UINT
|
| 302 |
+
type_description: *td9
|
| 303 |
+
word_offset: { location: 0 }
|
| 304 |
+
- &iv1
|
| 305 |
+
spirv_id: 17
|
| 306 |
+
name: "gl_NumWorkGroups"
|
| 307 |
+
location: 4294967295
|
| 308 |
+
storage_class: 1 # Input
|
| 309 |
+
semantic:
|
| 310 |
+
decoration_flags: 0x00000010 # BUILT_IN
|
| 311 |
+
built_in: 24 # NumWorkgroups
|
| 312 |
+
numeric:
|
| 313 |
+
scalar: { width: 32, signedness: 0 }
|
| 314 |
+
vector: { component_count: 3 }
|
| 315 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 316 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 317 |
+
member_count: 0
|
| 318 |
+
members:
|
| 319 |
+
format: 104 # VK_FORMAT_R32G32B32_UINT
|
| 320 |
+
type_description: *td9
|
| 321 |
+
word_offset: { location: 0 }
|
| 322 |
+
module:
|
| 323 |
+
generator: 8 # Khronos Glslang Reference Front End
|
| 324 |
+
entry_point_name: "main"
|
| 325 |
+
entry_point_id: 4
|
| 326 |
+
source_language: 2 # GLSL
|
| 327 |
+
source_language_version: 460
|
| 328 |
+
spirv_execution_model: 5 # GLCompute
|
| 329 |
+
shader_stage: 0x00000020 # CS
|
| 330 |
+
descriptor_binding_count: 0
|
| 331 |
+
descriptor_bindings:
|
| 332 |
+
descriptor_set_count: 0
|
| 333 |
+
descriptor_sets:
|
| 334 |
+
input_variable_count: 2,
|
| 335 |
+
input_variables:
|
| 336 |
+
- *iv0 # "gl_GlobalInvocationID"
|
| 337 |
+
- *iv1 # "gl_NumWorkGroups"
|
| 338 |
+
output_variable_count: 0,
|
| 339 |
+
output_variables:
|
| 340 |
+
push_constant_count: 1,
|
| 341 |
+
push_constants:
|
| 342 |
+
- *bv5 # "params"
|
| 343 |
+
specialization_constant_count: 0,
|
| 344 |
+
specialization_constants:
|
| 345 |
+
entry_point_heap_accesses:
|
| 346 |
+
- entry: "main"
|
| 347 |
+
resource_heap_access_count: 0
|
| 348 |
+
resource_heap_accesses:
|
| 349 |
+
sampler_heap_access_count: 0
|
| 350 |
+
sampler_heap_accesses:
|
| 351 |
+
...
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_5.spv
ADDED
|
Binary file (1.04 kB). View file
|
|
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_5.spv.yaml
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
%YAML 1.1
|
| 2 |
+
---
|
| 3 |
+
all_type_descriptions:
|
| 4 |
+
- &td0
|
| 5 |
+
id: 11
|
| 6 |
+
op: 29
|
| 7 |
+
type_name:
|
| 8 |
+
struct_member_name: "values"
|
| 9 |
+
storage_class: 0 # UniformConstant
|
| 10 |
+
type_flags: 0x20000004 # ARRAY INT
|
| 11 |
+
decoration_flags: 0x00000000 # NONE
|
| 12 |
+
traits:
|
| 13 |
+
numeric:
|
| 14 |
+
scalar: { width: 32, signedness: 1 }
|
| 15 |
+
vector: { component_count: 0 }
|
| 16 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 17 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 18 |
+
array: { dims_count: 1, dims: [0,], stride: 4 }
|
| 19 |
+
member_count: 0
|
| 20 |
+
members:
|
| 21 |
+
- &td1
|
| 22 |
+
id: 7
|
| 23 |
+
op: 32
|
| 24 |
+
type_name: "t2"
|
| 25 |
+
struct_member_name: "c"
|
| 26 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 27 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 28 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 29 |
+
traits:
|
| 30 |
+
numeric:
|
| 31 |
+
scalar: { width: 0, signedness: 0 }
|
| 32 |
+
vector: { component_count: 0 }
|
| 33 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 34 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 35 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 36 |
+
member_count: 1
|
| 37 |
+
members:
|
| 38 |
+
- *td0
|
| 39 |
+
- &td2
|
| 40 |
+
id: 6
|
| 41 |
+
op: 32
|
| 42 |
+
type_name: "t1"
|
| 43 |
+
struct_member_name: "a"
|
| 44 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 45 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 46 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 47 |
+
traits:
|
| 48 |
+
numeric:
|
| 49 |
+
scalar: { width: 0, signedness: 0 }
|
| 50 |
+
vector: { component_count: 0 }
|
| 51 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 52 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 53 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 54 |
+
member_count: 1
|
| 55 |
+
members:
|
| 56 |
+
- *td1
|
| 57 |
+
- &td3
|
| 58 |
+
id: 7
|
| 59 |
+
op: 32
|
| 60 |
+
type_name: "t2"
|
| 61 |
+
struct_member_name: "b"
|
| 62 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 63 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 64 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 65 |
+
traits:
|
| 66 |
+
numeric:
|
| 67 |
+
scalar: { width: 0, signedness: 0 }
|
| 68 |
+
vector: { component_count: 0 }
|
| 69 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 70 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 71 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 72 |
+
member_count: 1
|
| 73 |
+
members:
|
| 74 |
+
- [forward pointer]
|
| 75 |
+
- &td4
|
| 76 |
+
id: 8
|
| 77 |
+
op: 30
|
| 78 |
+
type_name: "Parameters"
|
| 79 |
+
struct_member_name:
|
| 80 |
+
storage_class: -1 # NOT APPLICABLE
|
| 81 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 82 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 83 |
+
traits:
|
| 84 |
+
numeric:
|
| 85 |
+
scalar: { width: 0, signedness: 0 }
|
| 86 |
+
vector: { component_count: 0 }
|
| 87 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 88 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 89 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 90 |
+
member_count: 2
|
| 91 |
+
members:
|
| 92 |
+
- *td2
|
| 93 |
+
- *td3
|
| 94 |
+
- &td5
|
| 95 |
+
id: 11
|
| 96 |
+
op: 29
|
| 97 |
+
type_name:
|
| 98 |
+
struct_member_name: "values"
|
| 99 |
+
storage_class: 0 # UniformConstant
|
| 100 |
+
type_flags: 0x20000004 # ARRAY INT
|
| 101 |
+
decoration_flags: 0x00000000 # NONE
|
| 102 |
+
traits:
|
| 103 |
+
numeric:
|
| 104 |
+
scalar: { width: 32, signedness: 1 }
|
| 105 |
+
vector: { component_count: 0 }
|
| 106 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 107 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 108 |
+
array: { dims_count: 1, dims: [0,], stride: 4 }
|
| 109 |
+
member_count: 0
|
| 110 |
+
members:
|
| 111 |
+
- &td6
|
| 112 |
+
id: 7
|
| 113 |
+
op: 32
|
| 114 |
+
type_name: "t2"
|
| 115 |
+
struct_member_name: "c"
|
| 116 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 117 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 118 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 119 |
+
traits:
|
| 120 |
+
numeric:
|
| 121 |
+
scalar: { width: 0, signedness: 0 }
|
| 122 |
+
vector: { component_count: 0 }
|
| 123 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 124 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 125 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 126 |
+
member_count: 1
|
| 127 |
+
members:
|
| 128 |
+
- *td5
|
| 129 |
+
- &td7
|
| 130 |
+
id: 11
|
| 131 |
+
op: 29
|
| 132 |
+
type_name:
|
| 133 |
+
struct_member_name: "values"
|
| 134 |
+
storage_class: 0 # UniformConstant
|
| 135 |
+
type_flags: 0x20000004 # ARRAY INT
|
| 136 |
+
decoration_flags: 0x00000000 # NONE
|
| 137 |
+
traits:
|
| 138 |
+
numeric:
|
| 139 |
+
scalar: { width: 32, signedness: 1 }
|
| 140 |
+
vector: { component_count: 0 }
|
| 141 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 142 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 143 |
+
array: { dims_count: 1, dims: [0,], stride: 4 }
|
| 144 |
+
member_count: 0
|
| 145 |
+
members:
|
| 146 |
+
all_block_variables:
|
| 147 |
+
- &bv0
|
| 148 |
+
name: "values"
|
| 149 |
+
offset: 0
|
| 150 |
+
absolute_offset: 0
|
| 151 |
+
size: 0
|
| 152 |
+
padded_size: 0
|
| 153 |
+
decorations: 0x00000080 # NON_WRITABLE
|
| 154 |
+
numeric:
|
| 155 |
+
scalar: { width: 32, signedness: 1 }
|
| 156 |
+
vector: { component_count: 0 }
|
| 157 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 158 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 159 |
+
flags: 0x00000000 # NONE
|
| 160 |
+
member_count: 0
|
| 161 |
+
members:
|
| 162 |
+
type_description: *td7
|
| 163 |
+
- &bv1
|
| 164 |
+
name: "c"
|
| 165 |
+
offset: 0
|
| 166 |
+
absolute_offset: 0
|
| 167 |
+
size: 8
|
| 168 |
+
padded_size: 8
|
| 169 |
+
decorations: 0x00000080 # NON_WRITABLE
|
| 170 |
+
numeric:
|
| 171 |
+
scalar: { width: 0, signedness: 0 }
|
| 172 |
+
vector: { component_count: 0 }
|
| 173 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 174 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 175 |
+
flags: 0x00000000 # NONE
|
| 176 |
+
member_count: 1
|
| 177 |
+
members:
|
| 178 |
+
- *bv0
|
| 179 |
+
type_description: *td6
|
| 180 |
+
- &bv2
|
| 181 |
+
name: "a"
|
| 182 |
+
offset: 0
|
| 183 |
+
absolute_offset: 0
|
| 184 |
+
size: 8
|
| 185 |
+
padded_size: 8
|
| 186 |
+
decorations: 0x00000000 # NONE
|
| 187 |
+
numeric:
|
| 188 |
+
scalar: { width: 0, signedness: 0 }
|
| 189 |
+
vector: { component_count: 0 }
|
| 190 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 191 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 192 |
+
flags: 0x00000000 # NONE
|
| 193 |
+
member_count: 1
|
| 194 |
+
members:
|
| 195 |
+
- *bv1
|
| 196 |
+
type_description: *td2
|
| 197 |
+
- &bv3
|
| 198 |
+
name: "params"
|
| 199 |
+
offset: 0
|
| 200 |
+
absolute_offset: 0
|
| 201 |
+
size: 16
|
| 202 |
+
padded_size: 16
|
| 203 |
+
decorations: 0x00000000 # NONE
|
| 204 |
+
numeric:
|
| 205 |
+
scalar: { width: 0, signedness: 0 }
|
| 206 |
+
vector: { component_count: 0 }
|
| 207 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 208 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 209 |
+
flags: 0x00000000 # NONE
|
| 210 |
+
member_count: 2
|
| 211 |
+
members:
|
| 212 |
+
- *bv2
|
| 213 |
+
- [recursive]
|
| 214 |
+
type_description: *td4
|
| 215 |
+
all_descriptor_bindings:
|
| 216 |
+
all_interface_variables:
|
| 217 |
+
module:
|
| 218 |
+
generator: 8 # Khronos Glslang Reference Front End
|
| 219 |
+
entry_point_name: "main"
|
| 220 |
+
entry_point_id: 4
|
| 221 |
+
source_language: 2 # GLSL
|
| 222 |
+
source_language_version: 460
|
| 223 |
+
spirv_execution_model: 5 # GLCompute
|
| 224 |
+
shader_stage: 0x00000020 # CS
|
| 225 |
+
descriptor_binding_count: 0
|
| 226 |
+
descriptor_bindings:
|
| 227 |
+
descriptor_set_count: 0
|
| 228 |
+
descriptor_sets:
|
| 229 |
+
input_variable_count: 0,
|
| 230 |
+
input_variables:
|
| 231 |
+
output_variable_count: 0,
|
| 232 |
+
output_variables:
|
| 233 |
+
push_constant_count: 1,
|
| 234 |
+
push_constants:
|
| 235 |
+
- *bv3 # "params"
|
| 236 |
+
specialization_constant_count: 0,
|
| 237 |
+
specialization_constants:
|
| 238 |
+
entry_point_heap_accesses:
|
| 239 |
+
- entry: "main"
|
| 240 |
+
resource_heap_access_count: 0
|
| 241 |
+
resource_heap_accesses:
|
| 242 |
+
sampler_heap_access_count: 0
|
| 243 |
+
sampler_heap_accesses:
|
| 244 |
+
...
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_6.spv
ADDED
|
Binary file (1.18 kB). View file
|
|
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_6.spv.yaml
ADDED
|
@@ -0,0 +1,296 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
%YAML 1.1
|
| 2 |
+
---
|
| 3 |
+
all_type_descriptions:
|
| 4 |
+
- &td0
|
| 5 |
+
id: 7
|
| 6 |
+
op: 23
|
| 7 |
+
type_name:
|
| 8 |
+
struct_member_name: "g_vTest"
|
| 9 |
+
storage_class: 0 # UniformConstant
|
| 10 |
+
type_flags: 0x00000108 # VECTOR FLOAT
|
| 11 |
+
decoration_flags: 0x00000000 # NONE
|
| 12 |
+
traits:
|
| 13 |
+
numeric:
|
| 14 |
+
scalar: { width: 32, signedness: 0 }
|
| 15 |
+
vector: { component_count: 4 }
|
| 16 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 17 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 18 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 19 |
+
member_count: 0
|
| 20 |
+
members:
|
| 21 |
+
- &td1
|
| 22 |
+
id: 7
|
| 23 |
+
op: 23
|
| 24 |
+
type_name:
|
| 25 |
+
struct_member_name: "g_vTest2"
|
| 26 |
+
storage_class: 0 # UniformConstant
|
| 27 |
+
type_flags: 0x00000108 # VECTOR FLOAT
|
| 28 |
+
decoration_flags: 0x00000000 # NONE
|
| 29 |
+
traits:
|
| 30 |
+
numeric:
|
| 31 |
+
scalar: { width: 32, signedness: 0 }
|
| 32 |
+
vector: { component_count: 4 }
|
| 33 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 34 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 35 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 36 |
+
member_count: 0
|
| 37 |
+
members:
|
| 38 |
+
- &td2
|
| 39 |
+
id: 15
|
| 40 |
+
op: 30
|
| 41 |
+
type_name: "BDAGlobals_t_0"
|
| 42 |
+
struct_member_name: "_data"
|
| 43 |
+
storage_class: 0 # UniformConstant
|
| 44 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 45 |
+
decoration_flags: 0x00000000 # NONE
|
| 46 |
+
traits:
|
| 47 |
+
numeric:
|
| 48 |
+
scalar: { width: 0, signedness: 0 }
|
| 49 |
+
vector: { component_count: 0 }
|
| 50 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 51 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 52 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 53 |
+
member_count: 2
|
| 54 |
+
members:
|
| 55 |
+
- *td0
|
| 56 |
+
- *td1
|
| 57 |
+
- &td3
|
| 58 |
+
id: 13
|
| 59 |
+
op: 28
|
| 60 |
+
type_name: "BufferPointer_BDAGlobals_t_0_1"
|
| 61 |
+
struct_member_name: "g_GlobalsBDAPerStage_0"
|
| 62 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 63 |
+
type_flags: 0x70080000 # ARRAY STRUCT REF EXTERNAL_BLOCK
|
| 64 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 65 |
+
traits:
|
| 66 |
+
numeric:
|
| 67 |
+
scalar: { width: 0, signedness: 0 }
|
| 68 |
+
vector: { component_count: 0 }
|
| 69 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 70 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 71 |
+
array: { dims_count: 1, dims: [6,], stride: 16 }
|
| 72 |
+
member_count: 1
|
| 73 |
+
members:
|
| 74 |
+
- *td2
|
| 75 |
+
- &td4
|
| 76 |
+
id: 14
|
| 77 |
+
op: 30
|
| 78 |
+
type_name: "_S2"
|
| 79 |
+
struct_member_name:
|
| 80 |
+
storage_class: -1 # NOT APPLICABLE
|
| 81 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 82 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 83 |
+
traits:
|
| 84 |
+
numeric:
|
| 85 |
+
scalar: { width: 0, signedness: 0 }
|
| 86 |
+
vector: { component_count: 0 }
|
| 87 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 88 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 89 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 90 |
+
member_count: 1
|
| 91 |
+
members:
|
| 92 |
+
- *td3
|
| 93 |
+
- &td5
|
| 94 |
+
id: 7
|
| 95 |
+
op: 23
|
| 96 |
+
type_name:
|
| 97 |
+
struct_member_name: "g_vTest"
|
| 98 |
+
storage_class: 0 # UniformConstant
|
| 99 |
+
type_flags: 0x00000108 # VECTOR FLOAT
|
| 100 |
+
decoration_flags: 0x00000000 # NONE
|
| 101 |
+
traits:
|
| 102 |
+
numeric:
|
| 103 |
+
scalar: { width: 32, signedness: 0 }
|
| 104 |
+
vector: { component_count: 4 }
|
| 105 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 106 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 107 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 108 |
+
member_count: 0
|
| 109 |
+
members:
|
| 110 |
+
- &td6
|
| 111 |
+
id: 7
|
| 112 |
+
op: 23
|
| 113 |
+
type_name:
|
| 114 |
+
struct_member_name: "g_vTest2"
|
| 115 |
+
storage_class: 0 # UniformConstant
|
| 116 |
+
type_flags: 0x00000108 # VECTOR FLOAT
|
| 117 |
+
decoration_flags: 0x00000000 # NONE
|
| 118 |
+
traits:
|
| 119 |
+
numeric:
|
| 120 |
+
scalar: { width: 32, signedness: 0 }
|
| 121 |
+
vector: { component_count: 4 }
|
| 122 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 123 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 124 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 125 |
+
member_count: 0
|
| 126 |
+
members:
|
| 127 |
+
- &td7
|
| 128 |
+
id: 15
|
| 129 |
+
op: 30
|
| 130 |
+
type_name: "BDAGlobals_t_0"
|
| 131 |
+
struct_member_name: "_data"
|
| 132 |
+
storage_class: 0 # UniformConstant
|
| 133 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 134 |
+
decoration_flags: 0x00000000 # NONE
|
| 135 |
+
traits:
|
| 136 |
+
numeric:
|
| 137 |
+
scalar: { width: 0, signedness: 0 }
|
| 138 |
+
vector: { component_count: 0 }
|
| 139 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 140 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 141 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 142 |
+
member_count: 2
|
| 143 |
+
members:
|
| 144 |
+
- *td5
|
| 145 |
+
- *td6
|
| 146 |
+
- &td8
|
| 147 |
+
id: 7
|
| 148 |
+
op: 23
|
| 149 |
+
type_name:
|
| 150 |
+
struct_member_name:
|
| 151 |
+
storage_class: -1 # NOT APPLICABLE
|
| 152 |
+
type_flags: 0x00000108 # VECTOR FLOAT
|
| 153 |
+
decoration_flags: 0x00000000 # NONE
|
| 154 |
+
traits:
|
| 155 |
+
numeric:
|
| 156 |
+
scalar: { width: 32, signedness: 0 }
|
| 157 |
+
vector: { component_count: 4 }
|
| 158 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 159 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 160 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 161 |
+
member_count: 0
|
| 162 |
+
members:
|
| 163 |
+
all_block_variables:
|
| 164 |
+
- &bv0
|
| 165 |
+
name: "g_vTest"
|
| 166 |
+
offset: 0
|
| 167 |
+
absolute_offset: 0
|
| 168 |
+
size: 16
|
| 169 |
+
padded_size: 16
|
| 170 |
+
decorations: 0x00000000 # NONE
|
| 171 |
+
numeric:
|
| 172 |
+
scalar: { width: 32, signedness: 0 }
|
| 173 |
+
vector: { component_count: 4 }
|
| 174 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 175 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 176 |
+
flags: 0x00000001 # UNUSED
|
| 177 |
+
member_count: 0
|
| 178 |
+
members:
|
| 179 |
+
type_description: *td5
|
| 180 |
+
- &bv1
|
| 181 |
+
name: "g_vTest2"
|
| 182 |
+
offset: 16
|
| 183 |
+
absolute_offset: 0
|
| 184 |
+
size: 16
|
| 185 |
+
padded_size: 16
|
| 186 |
+
decorations: 0x00000000 # NONE
|
| 187 |
+
numeric:
|
| 188 |
+
scalar: { width: 32, signedness: 0 }
|
| 189 |
+
vector: { component_count: 4 }
|
| 190 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 191 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 192 |
+
flags: 0x00000001 # UNUSED
|
| 193 |
+
member_count: 0
|
| 194 |
+
members:
|
| 195 |
+
type_description: *td6
|
| 196 |
+
- &bv2
|
| 197 |
+
name: "_data"
|
| 198 |
+
offset: 0
|
| 199 |
+
absolute_offset: 0
|
| 200 |
+
size: 32
|
| 201 |
+
padded_size: 32
|
| 202 |
+
decorations: 0x00000080 # NON_WRITABLE
|
| 203 |
+
numeric:
|
| 204 |
+
scalar: { width: 0, signedness: 0 }
|
| 205 |
+
vector: { component_count: 0 }
|
| 206 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 207 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 208 |
+
flags: 0x00000001 # UNUSED
|
| 209 |
+
member_count: 2
|
| 210 |
+
members:
|
| 211 |
+
- *bv0
|
| 212 |
+
- *bv1
|
| 213 |
+
type_description: *td7
|
| 214 |
+
- &bv3
|
| 215 |
+
name: "g_GlobalsBDAPerStage_0"
|
| 216 |
+
offset: 0
|
| 217 |
+
absolute_offset: 0
|
| 218 |
+
size: 0
|
| 219 |
+
padded_size: 0
|
| 220 |
+
decorations: 0x00000000 # NONE
|
| 221 |
+
numeric:
|
| 222 |
+
scalar: { width: 0, signedness: 0 }
|
| 223 |
+
vector: { component_count: 0 }
|
| 224 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 225 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 226 |
+
flags: 0x00000000 # NONE
|
| 227 |
+
member_count: 1
|
| 228 |
+
members:
|
| 229 |
+
- *bv2
|
| 230 |
+
type_description: *td3
|
| 231 |
+
- &bv4
|
| 232 |
+
name: "g_GlobalsBDAPushConstant_0"
|
| 233 |
+
offset: 0
|
| 234 |
+
absolute_offset: 0
|
| 235 |
+
size: 0
|
| 236 |
+
padded_size: 0
|
| 237 |
+
decorations: 0x00000000 # NONE
|
| 238 |
+
numeric:
|
| 239 |
+
scalar: { width: 0, signedness: 0 }
|
| 240 |
+
vector: { component_count: 0 }
|
| 241 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 242 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 243 |
+
flags: 0x00000000 # NONE
|
| 244 |
+
member_count: 1
|
| 245 |
+
members:
|
| 246 |
+
- *bv3
|
| 247 |
+
type_description: *td4
|
| 248 |
+
all_descriptor_bindings:
|
| 249 |
+
all_interface_variables:
|
| 250 |
+
- &iv0
|
| 251 |
+
spirv_id: 9
|
| 252 |
+
name: "_S149"
|
| 253 |
+
location: 0
|
| 254 |
+
storage_class: 3 # Output
|
| 255 |
+
semantic:
|
| 256 |
+
decoration_flags: 0x00000000 # NONE
|
| 257 |
+
built_in: -1 # ??? (-1)
|
| 258 |
+
numeric:
|
| 259 |
+
scalar: { width: 32, signedness: 0 }
|
| 260 |
+
vector: { component_count: 4 }
|
| 261 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 262 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 263 |
+
member_count: 0
|
| 264 |
+
members:
|
| 265 |
+
format: 109 # VK_FORMAT_R32G32B32A32_SFLOAT
|
| 266 |
+
type_description: *td8
|
| 267 |
+
word_offset: { location: 144 }
|
| 268 |
+
module:
|
| 269 |
+
generator: 8 # Khronos Glslang Reference Front End
|
| 270 |
+
entry_point_name: "main"
|
| 271 |
+
entry_point_id: 4
|
| 272 |
+
source_language: 2 # GLSL
|
| 273 |
+
source_language_version: 450
|
| 274 |
+
spirv_execution_model: 4 # Fragment
|
| 275 |
+
shader_stage: 0x00000010 # PS
|
| 276 |
+
descriptor_binding_count: 0
|
| 277 |
+
descriptor_bindings:
|
| 278 |
+
descriptor_set_count: 0
|
| 279 |
+
descriptor_sets:
|
| 280 |
+
input_variable_count: 0,
|
| 281 |
+
input_variables:
|
| 282 |
+
output_variable_count: 1,
|
| 283 |
+
output_variables:
|
| 284 |
+
- *iv0 # "_S149"
|
| 285 |
+
push_constant_count: 1,
|
| 286 |
+
push_constants:
|
| 287 |
+
- *bv4 # "g_GlobalsBDAPushConstant_0"
|
| 288 |
+
specialization_constant_count: 0,
|
| 289 |
+
specialization_constants:
|
| 290 |
+
entry_point_heap_accesses:
|
| 291 |
+
- entry: "main"
|
| 292 |
+
resource_heap_access_count: 0
|
| 293 |
+
resource_heap_accesses:
|
| 294 |
+
sampler_heap_access_count: 0
|
| 295 |
+
sampler_heap_accesses:
|
| 296 |
+
...
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_7.spv.yaml
ADDED
|
@@ -0,0 +1,350 @@
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
%YAML 1.1
|
| 2 |
+
---
|
| 3 |
+
all_type_descriptions:
|
| 4 |
+
- &td0
|
| 5 |
+
id: 13
|
| 6 |
+
op: 29
|
| 7 |
+
type_name:
|
| 8 |
+
struct_member_name: "values"
|
| 9 |
+
storage_class: 0 # UniformConstant
|
| 10 |
+
type_flags: 0x20000004 # ARRAY INT
|
| 11 |
+
decoration_flags: 0x00000000 # NONE
|
| 12 |
+
traits:
|
| 13 |
+
numeric:
|
| 14 |
+
scalar: { width: 32, signedness: 1 }
|
| 15 |
+
vector: { component_count: 0 }
|
| 16 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 17 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 18 |
+
array: { dims_count: 1, dims: [0,], stride: 4 }
|
| 19 |
+
member_count: 0
|
| 20 |
+
members:
|
| 21 |
+
- &td1
|
| 22 |
+
id: 9
|
| 23 |
+
op: 32
|
| 24 |
+
type_name: "t2"
|
| 25 |
+
struct_member_name: "c"
|
| 26 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 27 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 28 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 29 |
+
traits:
|
| 30 |
+
numeric:
|
| 31 |
+
scalar: { width: 0, signedness: 0 }
|
| 32 |
+
vector: { component_count: 0 }
|
| 33 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 34 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 35 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 36 |
+
member_count: 1
|
| 37 |
+
members:
|
| 38 |
+
- *td0
|
| 39 |
+
- &td2
|
| 40 |
+
id: 8
|
| 41 |
+
op: 32
|
| 42 |
+
type_name: "t1"
|
| 43 |
+
struct_member_name: "a"
|
| 44 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 45 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 46 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 47 |
+
traits:
|
| 48 |
+
numeric:
|
| 49 |
+
scalar: { width: 0, signedness: 0 }
|
| 50 |
+
vector: { component_count: 0 }
|
| 51 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 52 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 53 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 54 |
+
member_count: 1
|
| 55 |
+
members:
|
| 56 |
+
- *td1
|
| 57 |
+
- &td3
|
| 58 |
+
id: 9
|
| 59 |
+
op: 32
|
| 60 |
+
type_name: "t2"
|
| 61 |
+
struct_member_name: "b"
|
| 62 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 63 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 64 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 65 |
+
traits:
|
| 66 |
+
numeric:
|
| 67 |
+
scalar: { width: 0, signedness: 0 }
|
| 68 |
+
vector: { component_count: 0 }
|
| 69 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 70 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 71 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 72 |
+
member_count: 1
|
| 73 |
+
members:
|
| 74 |
+
- [forward pointer]
|
| 75 |
+
- &td4
|
| 76 |
+
id: 6
|
| 77 |
+
op: 32
|
| 78 |
+
type_name: "t0"
|
| 79 |
+
struct_member_name: "x"
|
| 80 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 81 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 82 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 83 |
+
traits:
|
| 84 |
+
numeric:
|
| 85 |
+
scalar: { width: 0, signedness: 0 }
|
| 86 |
+
vector: { component_count: 0 }
|
| 87 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 88 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 89 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 90 |
+
member_count: 2
|
| 91 |
+
members:
|
| 92 |
+
- *td2
|
| 93 |
+
- *td3
|
| 94 |
+
- &td5
|
| 95 |
+
id: 7
|
| 96 |
+
op: 30
|
| 97 |
+
type_name: "Parameters"
|
| 98 |
+
struct_member_name:
|
| 99 |
+
storage_class: -1 # NOT APPLICABLE
|
| 100 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 101 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 102 |
+
traits:
|
| 103 |
+
numeric:
|
| 104 |
+
scalar: { width: 0, signedness: 0 }
|
| 105 |
+
vector: { component_count: 0 }
|
| 106 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 107 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 108 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 109 |
+
member_count: 1
|
| 110 |
+
members:
|
| 111 |
+
- *td4
|
| 112 |
+
- &td6
|
| 113 |
+
id: 13
|
| 114 |
+
op: 29
|
| 115 |
+
type_name:
|
| 116 |
+
struct_member_name: "values"
|
| 117 |
+
storage_class: 0 # UniformConstant
|
| 118 |
+
type_flags: 0x20000004 # ARRAY INT
|
| 119 |
+
decoration_flags: 0x00000000 # NONE
|
| 120 |
+
traits:
|
| 121 |
+
numeric:
|
| 122 |
+
scalar: { width: 32, signedness: 1 }
|
| 123 |
+
vector: { component_count: 0 }
|
| 124 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 125 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 126 |
+
array: { dims_count: 1, dims: [0,], stride: 4 }
|
| 127 |
+
member_count: 0
|
| 128 |
+
members:
|
| 129 |
+
- &td7
|
| 130 |
+
id: 9
|
| 131 |
+
op: 32
|
| 132 |
+
type_name: "t2"
|
| 133 |
+
struct_member_name: "c"
|
| 134 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 135 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 136 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 137 |
+
traits:
|
| 138 |
+
numeric:
|
| 139 |
+
scalar: { width: 0, signedness: 0 }
|
| 140 |
+
vector: { component_count: 0 }
|
| 141 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 142 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 143 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 144 |
+
member_count: 1
|
| 145 |
+
members:
|
| 146 |
+
- *td6
|
| 147 |
+
- &td8
|
| 148 |
+
id: 8
|
| 149 |
+
op: 32
|
| 150 |
+
type_name: "t1"
|
| 151 |
+
struct_member_name: "a"
|
| 152 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 153 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 154 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 155 |
+
traits:
|
| 156 |
+
numeric:
|
| 157 |
+
scalar: { width: 0, signedness: 0 }
|
| 158 |
+
vector: { component_count: 0 }
|
| 159 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 160 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 161 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 162 |
+
member_count: 1
|
| 163 |
+
members:
|
| 164 |
+
- *td7
|
| 165 |
+
- &td9
|
| 166 |
+
id: 13
|
| 167 |
+
op: 29
|
| 168 |
+
type_name:
|
| 169 |
+
struct_member_name: "values"
|
| 170 |
+
storage_class: 0 # UniformConstant
|
| 171 |
+
type_flags: 0x20000004 # ARRAY INT
|
| 172 |
+
decoration_flags: 0x00000000 # NONE
|
| 173 |
+
traits:
|
| 174 |
+
numeric:
|
| 175 |
+
scalar: { width: 32, signedness: 1 }
|
| 176 |
+
vector: { component_count: 0 }
|
| 177 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 178 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 179 |
+
array: { dims_count: 1, dims: [0,], stride: 4 }
|
| 180 |
+
member_count: 0
|
| 181 |
+
members:
|
| 182 |
+
- &td10
|
| 183 |
+
id: 9
|
| 184 |
+
op: 32
|
| 185 |
+
type_name: "t2"
|
| 186 |
+
struct_member_name: "c"
|
| 187 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 188 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 189 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 190 |
+
traits:
|
| 191 |
+
numeric:
|
| 192 |
+
scalar: { width: 0, signedness: 0 }
|
| 193 |
+
vector: { component_count: 0 }
|
| 194 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 195 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 196 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 197 |
+
member_count: 1
|
| 198 |
+
members:
|
| 199 |
+
- *td9
|
| 200 |
+
- &td11
|
| 201 |
+
id: 13
|
| 202 |
+
op: 29
|
| 203 |
+
type_name:
|
| 204 |
+
struct_member_name: "values"
|
| 205 |
+
storage_class: 0 # UniformConstant
|
| 206 |
+
type_flags: 0x20000004 # ARRAY INT
|
| 207 |
+
decoration_flags: 0x00000000 # NONE
|
| 208 |
+
traits:
|
| 209 |
+
numeric:
|
| 210 |
+
scalar: { width: 32, signedness: 1 }
|
| 211 |
+
vector: { component_count: 0 }
|
| 212 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 213 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 214 |
+
array: { dims_count: 1, dims: [0,], stride: 4 }
|
| 215 |
+
member_count: 0
|
| 216 |
+
members:
|
| 217 |
+
- &td12
|
| 218 |
+
id: 9
|
| 219 |
+
op: 32
|
| 220 |
+
type_name: "t2"
|
| 221 |
+
struct_member_name: "b"
|
| 222 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 223 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 224 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 225 |
+
traits:
|
| 226 |
+
numeric:
|
| 227 |
+
scalar: { width: 0, signedness: 0 }
|
| 228 |
+
vector: { component_count: 0 }
|
| 229 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 230 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 231 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 232 |
+
member_count: 1
|
| 233 |
+
members:
|
| 234 |
+
- [forward pointer]
|
| 235 |
+
all_block_variables:
|
| 236 |
+
- &bv0
|
| 237 |
+
name: "values"
|
| 238 |
+
offset: 0
|
| 239 |
+
absolute_offset: 0
|
| 240 |
+
size: 0
|
| 241 |
+
padded_size: 0
|
| 242 |
+
decorations: 0x00000080 # NON_WRITABLE
|
| 243 |
+
numeric:
|
| 244 |
+
scalar: { width: 32, signedness: 1 }
|
| 245 |
+
vector: { component_count: 0 }
|
| 246 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 247 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 248 |
+
flags: 0x00000000 # NONE
|
| 249 |
+
member_count: 0
|
| 250 |
+
members:
|
| 251 |
+
type_description: *td11
|
| 252 |
+
- &bv1
|
| 253 |
+
name: "c"
|
| 254 |
+
offset: 0
|
| 255 |
+
absolute_offset: 0
|
| 256 |
+
size: 8
|
| 257 |
+
padded_size: 8
|
| 258 |
+
decorations: 0x00000080 # NON_WRITABLE
|
| 259 |
+
numeric:
|
| 260 |
+
scalar: { width: 0, signedness: 0 }
|
| 261 |
+
vector: { component_count: 0 }
|
| 262 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 263 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 264 |
+
flags: 0x00000000 # NONE
|
| 265 |
+
member_count: 1
|
| 266 |
+
members:
|
| 267 |
+
- *bv0
|
| 268 |
+
type_description: *td10
|
| 269 |
+
- &bv2
|
| 270 |
+
name: "a"
|
| 271 |
+
offset: 0
|
| 272 |
+
absolute_offset: 0
|
| 273 |
+
size: 8
|
| 274 |
+
padded_size: 8
|
| 275 |
+
decorations: 0x00000080 # NON_WRITABLE
|
| 276 |
+
numeric:
|
| 277 |
+
scalar: { width: 0, signedness: 0 }
|
| 278 |
+
vector: { component_count: 0 }
|
| 279 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 280 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 281 |
+
flags: 0x00000000 # NONE
|
| 282 |
+
member_count: 1
|
| 283 |
+
members:
|
| 284 |
+
- *bv1
|
| 285 |
+
type_description: *td8
|
| 286 |
+
- &bv3
|
| 287 |
+
name: "x"
|
| 288 |
+
offset: 0
|
| 289 |
+
absolute_offset: 0
|
| 290 |
+
size: 8
|
| 291 |
+
padded_size: 8
|
| 292 |
+
decorations: 0x00000000 # NONE
|
| 293 |
+
numeric:
|
| 294 |
+
scalar: { width: 0, signedness: 0 }
|
| 295 |
+
vector: { component_count: 0 }
|
| 296 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 297 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 298 |
+
flags: 0x00000000 # NONE
|
| 299 |
+
member_count: 2
|
| 300 |
+
members:
|
| 301 |
+
- *bv2
|
| 302 |
+
- [recursive]
|
| 303 |
+
type_description: *td4
|
| 304 |
+
- &bv4
|
| 305 |
+
name: "params"
|
| 306 |
+
offset: 0
|
| 307 |
+
absolute_offset: 0
|
| 308 |
+
size: 8
|
| 309 |
+
padded_size: 8
|
| 310 |
+
decorations: 0x00000000 # NONE
|
| 311 |
+
numeric:
|
| 312 |
+
scalar: { width: 0, signedness: 0 }
|
| 313 |
+
vector: { component_count: 0 }
|
| 314 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 315 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 316 |
+
flags: 0x00000000 # NONE
|
| 317 |
+
member_count: 1
|
| 318 |
+
members:
|
| 319 |
+
- *bv3
|
| 320 |
+
type_description: *td5
|
| 321 |
+
all_descriptor_bindings:
|
| 322 |
+
all_interface_variables:
|
| 323 |
+
module:
|
| 324 |
+
generator: 8 # Khronos Glslang Reference Front End
|
| 325 |
+
entry_point_name: "main"
|
| 326 |
+
entry_point_id: 4
|
| 327 |
+
source_language: 2 # GLSL
|
| 328 |
+
source_language_version: 460
|
| 329 |
+
spirv_execution_model: 5 # GLCompute
|
| 330 |
+
shader_stage: 0x00000020 # CS
|
| 331 |
+
descriptor_binding_count: 0
|
| 332 |
+
descriptor_bindings:
|
| 333 |
+
descriptor_set_count: 0
|
| 334 |
+
descriptor_sets:
|
| 335 |
+
input_variable_count: 0,
|
| 336 |
+
input_variables:
|
| 337 |
+
output_variable_count: 0,
|
| 338 |
+
output_variables:
|
| 339 |
+
push_constant_count: 1,
|
| 340 |
+
push_constants:
|
| 341 |
+
- *bv4 # "params"
|
| 342 |
+
specialization_constant_count: 0,
|
| 343 |
+
specialization_constants:
|
| 344 |
+
entry_point_heap_accesses:
|
| 345 |
+
- entry: "main"
|
| 346 |
+
resource_heap_access_count: 0
|
| 347 |
+
resource_heap_accesses:
|
| 348 |
+
sampler_heap_access_count: 0
|
| 349 |
+
sampler_heap_accesses:
|
| 350 |
+
...
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_8.spv
ADDED
|
Binary file (684 Bytes). View file
|
|
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_8.spv.yaml
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
%YAML 1.1
|
| 2 |
+
---
|
| 3 |
+
all_type_descriptions:
|
| 4 |
+
- &td0
|
| 5 |
+
id: 11
|
| 6 |
+
op: 28
|
| 7 |
+
type_name:
|
| 8 |
+
struct_member_name: "c"
|
| 9 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 10 |
+
type_flags: 0x70080000 # ARRAY STRUCT REF EXTERNAL_BLOCK
|
| 11 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 12 |
+
traits:
|
| 13 |
+
numeric:
|
| 14 |
+
scalar: { width: 0, signedness: 0 }
|
| 15 |
+
vector: { component_count: 0 }
|
| 16 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 17 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 18 |
+
array: { dims_count: 1, dims: [2,], stride: 8 }
|
| 19 |
+
member_count: 1
|
| 20 |
+
members:
|
| 21 |
+
- [forward pointer]
|
| 22 |
+
- &td1
|
| 23 |
+
id: 11
|
| 24 |
+
op: 28
|
| 25 |
+
type_name: "T1"
|
| 26 |
+
struct_member_name: "c"
|
| 27 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 28 |
+
type_flags: 0x70080000 # ARRAY STRUCT REF EXTERNAL_BLOCK
|
| 29 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 30 |
+
traits:
|
| 31 |
+
numeric:
|
| 32 |
+
scalar: { width: 0, signedness: 0 }
|
| 33 |
+
vector: { component_count: 0 }
|
| 34 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 35 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 36 |
+
array: { dims_count: 1, dims: [2,], stride: 8 }
|
| 37 |
+
member_count: 1
|
| 38 |
+
members:
|
| 39 |
+
- *td0
|
| 40 |
+
- &td2
|
| 41 |
+
id: 9
|
| 42 |
+
op: 28
|
| 43 |
+
type_name: "T1"
|
| 44 |
+
struct_member_name: "c"
|
| 45 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 46 |
+
type_flags: 0x70080000 # ARRAY STRUCT REF EXTERNAL_BLOCK
|
| 47 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 48 |
+
traits:
|
| 49 |
+
numeric:
|
| 50 |
+
scalar: { width: 0, signedness: 0 }
|
| 51 |
+
vector: { component_count: 0 }
|
| 52 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 53 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 54 |
+
array: { dims_count: 1, dims: [2,], stride: 8 }
|
| 55 |
+
member_count: 1
|
| 56 |
+
members:
|
| 57 |
+
- *td1
|
| 58 |
+
- &td3
|
| 59 |
+
id: 10
|
| 60 |
+
op: 30
|
| 61 |
+
type_name: "T1"
|
| 62 |
+
struct_member_name:
|
| 63 |
+
storage_class: -1 # NOT APPLICABLE
|
| 64 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 65 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 66 |
+
traits:
|
| 67 |
+
numeric:
|
| 68 |
+
scalar: { width: 0, signedness: 0 }
|
| 69 |
+
vector: { component_count: 0 }
|
| 70 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 71 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 72 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 73 |
+
member_count: 1
|
| 74 |
+
members:
|
| 75 |
+
- *td2
|
| 76 |
+
- &td4
|
| 77 |
+
id: 11
|
| 78 |
+
op: 28
|
| 79 |
+
type_name:
|
| 80 |
+
struct_member_name: "c"
|
| 81 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 82 |
+
type_flags: 0x70080000 # ARRAY STRUCT REF EXTERNAL_BLOCK
|
| 83 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 84 |
+
traits:
|
| 85 |
+
numeric:
|
| 86 |
+
scalar: { width: 0, signedness: 0 }
|
| 87 |
+
vector: { component_count: 0 }
|
| 88 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 89 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 90 |
+
array: { dims_count: 1, dims: [2,], stride: 8 }
|
| 91 |
+
member_count: 1
|
| 92 |
+
members:
|
| 93 |
+
- [forward pointer]
|
| 94 |
+
- &td5
|
| 95 |
+
id: 11
|
| 96 |
+
op: 28
|
| 97 |
+
type_name: "T1"
|
| 98 |
+
struct_member_name: "c"
|
| 99 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 100 |
+
type_flags: 0x70080000 # ARRAY STRUCT REF EXTERNAL_BLOCK
|
| 101 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 102 |
+
traits:
|
| 103 |
+
numeric:
|
| 104 |
+
scalar: { width: 0, signedness: 0 }
|
| 105 |
+
vector: { component_count: 0 }
|
| 106 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 107 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 108 |
+
array: { dims_count: 1, dims: [2,], stride: 8 }
|
| 109 |
+
member_count: 1
|
| 110 |
+
members:
|
| 111 |
+
- *td4
|
| 112 |
+
all_block_variables:
|
| 113 |
+
- &bv0
|
| 114 |
+
name: "c"
|
| 115 |
+
offset: 48
|
| 116 |
+
absolute_offset: 48
|
| 117 |
+
size: 0
|
| 118 |
+
padded_size: 0
|
| 119 |
+
decorations: 0x00000000 # NONE
|
| 120 |
+
numeric:
|
| 121 |
+
scalar: { width: 0, signedness: 0 }
|
| 122 |
+
vector: { component_count: 0 }
|
| 123 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 124 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 125 |
+
flags: 0x00000001 # UNUSED
|
| 126 |
+
member_count: 1
|
| 127 |
+
members:
|
| 128 |
+
- [recursive]
|
| 129 |
+
type_description: *td2
|
| 130 |
+
- &bv1
|
| 131 |
+
name: "x"
|
| 132 |
+
offset: 0
|
| 133 |
+
absolute_offset: 0
|
| 134 |
+
size: 0
|
| 135 |
+
padded_size: 0
|
| 136 |
+
decorations: 0x00000000 # NONE
|
| 137 |
+
numeric:
|
| 138 |
+
scalar: { width: 0, signedness: 0 }
|
| 139 |
+
vector: { component_count: 0 }
|
| 140 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 141 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 142 |
+
flags: 0x00000001 # UNUSED
|
| 143 |
+
member_count: 1
|
| 144 |
+
members:
|
| 145 |
+
- *bv0
|
| 146 |
+
type_description: *td3
|
| 147 |
+
all_descriptor_bindings:
|
| 148 |
+
- &db0
|
| 149 |
+
spirv_id: 15
|
| 150 |
+
name: "x"
|
| 151 |
+
binding: 1
|
| 152 |
+
input_attachment_index: 0
|
| 153 |
+
set: 3
|
| 154 |
+
decoration_flags: 0x00000000 # NONE
|
| 155 |
+
descriptor_type: 7 # VK_DESCRIPTOR_TYPE_STORAGE_BUFFER
|
| 156 |
+
resource_type: 8 # UAV
|
| 157 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 158 |
+
block: *bv1 # "x"
|
| 159 |
+
array: { dims_count: 0, dims: [] }
|
| 160 |
+
accessed: 0
|
| 161 |
+
uav_counter_id: 4294967295
|
| 162 |
+
uav_counter_binding:
|
| 163 |
+
type_description: *td3
|
| 164 |
+
word_offset: { binding: 115, set: 111 }
|
| 165 |
+
all_interface_variables:
|
| 166 |
+
module:
|
| 167 |
+
generator: 8 # Khronos Glslang Reference Front End
|
| 168 |
+
entry_point_name: "main"
|
| 169 |
+
entry_point_id: 4
|
| 170 |
+
source_language: 2 # GLSL
|
| 171 |
+
source_language_version: 450
|
| 172 |
+
spirv_execution_model: 5 # GLCompute
|
| 173 |
+
shader_stage: 0x00000020 # CS
|
| 174 |
+
descriptor_binding_count: 1
|
| 175 |
+
descriptor_bindings:
|
| 176 |
+
- *db0 # "x"
|
| 177 |
+
descriptor_set_count: 1
|
| 178 |
+
descriptor_sets:
|
| 179 |
+
- set: 3
|
| 180 |
+
binding_count: 1
|
| 181 |
+
bindings:
|
| 182 |
+
- *db0 # "x"
|
| 183 |
+
input_variable_count: 0,
|
| 184 |
+
input_variables:
|
| 185 |
+
output_variable_count: 0,
|
| 186 |
+
output_variables:
|
| 187 |
+
push_constant_count: 0,
|
| 188 |
+
push_constants:
|
| 189 |
+
specialization_constant_count: 0,
|
| 190 |
+
specialization_constants:
|
| 191 |
+
entry_point_heap_accesses:
|
| 192 |
+
- entry: "main"
|
| 193 |
+
resource_heap_access_count: 0
|
| 194 |
+
resource_heap_accesses:
|
| 195 |
+
sampler_heap_access_count: 0
|
| 196 |
+
sampler_heap_accesses:
|
| 197 |
+
...
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_9.glsl
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#version 460
|
| 2 |
+
#extension GL_EXT_buffer_reference2: require
|
| 3 |
+
#extension GL_EXT_scalar_block_layout : enable
|
| 4 |
+
|
| 5 |
+
layout(buffer_reference, scalar) readonly buffer VertexBufferPtr {
|
| 6 |
+
vec4 v[];
|
| 7 |
+
};
|
| 8 |
+
|
| 9 |
+
// Has a OpTypeRuntimeArray
|
| 10 |
+
layout(binding = 1, set = 0, scalar) readonly buffer Vertices {
|
| 11 |
+
VertexBufferPtr vertex_buffers[];
|
| 12 |
+
};
|
| 13 |
+
|
| 14 |
+
void main() {
|
| 15 |
+
gl_Position = vertex_buffers[gl_VertexIndex].v[gl_VertexIndex];
|
| 16 |
+
}
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_9.spv
ADDED
|
Binary file (1.36 kB). View file
|
|
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_9.spv.yaml
ADDED
|
@@ -0,0 +1,395 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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|
| 2 |
+
---
|
| 3 |
+
all_type_descriptions:
|
| 4 |
+
- &td0
|
| 5 |
+
id: 19
|
| 6 |
+
op: 29
|
| 7 |
+
type_name:
|
| 8 |
+
struct_member_name: "v"
|
| 9 |
+
storage_class: 0 # UniformConstant
|
| 10 |
+
type_flags: 0x20000108 # ARRAY VECTOR FLOAT
|
| 11 |
+
decoration_flags: 0x00000000 # NONE
|
| 12 |
+
traits:
|
| 13 |
+
numeric:
|
| 14 |
+
scalar: { width: 32, signedness: 0 }
|
| 15 |
+
vector: { component_count: 4 }
|
| 16 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 17 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 18 |
+
array: { dims_count: 1, dims: [0,], stride: 16 }
|
| 19 |
+
member_count: 0
|
| 20 |
+
members:
|
| 21 |
+
- &td1
|
| 22 |
+
id: 17
|
| 23 |
+
op: 29
|
| 24 |
+
type_name: "VertexBufferPtr"
|
| 25 |
+
struct_member_name: "vertex_buffers"
|
| 26 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 27 |
+
type_flags: 0x70080000 # ARRAY STRUCT REF EXTERNAL_BLOCK
|
| 28 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 29 |
+
traits:
|
| 30 |
+
numeric:
|
| 31 |
+
scalar: { width: 0, signedness: 0 }
|
| 32 |
+
vector: { component_count: 0 }
|
| 33 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 34 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 35 |
+
array: { dims_count: 1, dims: [0,], stride: 8 }
|
| 36 |
+
member_count: 1
|
| 37 |
+
members:
|
| 38 |
+
- *td0
|
| 39 |
+
- &td2
|
| 40 |
+
id: 18
|
| 41 |
+
op: 30
|
| 42 |
+
type_name: "Vertices"
|
| 43 |
+
struct_member_name:
|
| 44 |
+
storage_class: -1 # NOT APPLICABLE
|
| 45 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 46 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 47 |
+
traits:
|
| 48 |
+
numeric:
|
| 49 |
+
scalar: { width: 0, signedness: 0 }
|
| 50 |
+
vector: { component_count: 0 }
|
| 51 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 52 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 53 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 54 |
+
member_count: 1
|
| 55 |
+
members:
|
| 56 |
+
- *td1
|
| 57 |
+
- &td3
|
| 58 |
+
id: 19
|
| 59 |
+
op: 29
|
| 60 |
+
type_name:
|
| 61 |
+
struct_member_name: "v"
|
| 62 |
+
storage_class: 0 # UniformConstant
|
| 63 |
+
type_flags: 0x20000108 # ARRAY VECTOR FLOAT
|
| 64 |
+
decoration_flags: 0x00000000 # NONE
|
| 65 |
+
traits:
|
| 66 |
+
numeric:
|
| 67 |
+
scalar: { width: 32, signedness: 0 }
|
| 68 |
+
vector: { component_count: 4 }
|
| 69 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 70 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 71 |
+
array: { dims_count: 1, dims: [0,], stride: 16 }
|
| 72 |
+
member_count: 0
|
| 73 |
+
members:
|
| 74 |
+
- &td4
|
| 75 |
+
id: 14
|
| 76 |
+
op: 21
|
| 77 |
+
type_name:
|
| 78 |
+
struct_member_name:
|
| 79 |
+
storage_class: -1 # NOT APPLICABLE
|
| 80 |
+
type_flags: 0x00000004 # INT
|
| 81 |
+
decoration_flags: 0x00000000 # NONE
|
| 82 |
+
traits:
|
| 83 |
+
numeric:
|
| 84 |
+
scalar: { width: 32, signedness: 1 }
|
| 85 |
+
vector: { component_count: 0 }
|
| 86 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 87 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 88 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 89 |
+
member_count: 0
|
| 90 |
+
members:
|
| 91 |
+
- &td5
|
| 92 |
+
id: 7
|
| 93 |
+
op: 23
|
| 94 |
+
type_name:
|
| 95 |
+
struct_member_name: "gl_Position"
|
| 96 |
+
storage_class: 0 # UniformConstant
|
| 97 |
+
type_flags: 0x00000108 # VECTOR FLOAT
|
| 98 |
+
decoration_flags: 0x00000000 # NONE
|
| 99 |
+
traits:
|
| 100 |
+
numeric:
|
| 101 |
+
scalar: { width: 32, signedness: 0 }
|
| 102 |
+
vector: { component_count: 4 }
|
| 103 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 104 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 105 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 106 |
+
member_count: 0
|
| 107 |
+
members:
|
| 108 |
+
- &td6
|
| 109 |
+
id: 6
|
| 110 |
+
op: 22
|
| 111 |
+
type_name:
|
| 112 |
+
struct_member_name: "gl_PointSize"
|
| 113 |
+
storage_class: 0 # UniformConstant
|
| 114 |
+
type_flags: 0x00000008 # FLOAT
|
| 115 |
+
decoration_flags: 0x00000000 # NONE
|
| 116 |
+
traits:
|
| 117 |
+
numeric:
|
| 118 |
+
scalar: { width: 32, signedness: 0 }
|
| 119 |
+
vector: { component_count: 0 }
|
| 120 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 121 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 122 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 123 |
+
member_count: 0
|
| 124 |
+
members:
|
| 125 |
+
- &td7
|
| 126 |
+
id: 10
|
| 127 |
+
op: 28
|
| 128 |
+
type_name:
|
| 129 |
+
struct_member_name: "gl_ClipDistance"
|
| 130 |
+
storage_class: 0 # UniformConstant
|
| 131 |
+
type_flags: 0x20000008 # ARRAY FLOAT
|
| 132 |
+
decoration_flags: 0x00000000 # NONE
|
| 133 |
+
traits:
|
| 134 |
+
numeric:
|
| 135 |
+
scalar: { width: 32, signedness: 0 }
|
| 136 |
+
vector: { component_count: 0 }
|
| 137 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 138 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 139 |
+
array: { dims_count: 1, dims: [1,], stride: 0 }
|
| 140 |
+
member_count: 0
|
| 141 |
+
members:
|
| 142 |
+
- &td8
|
| 143 |
+
id: 10
|
| 144 |
+
op: 28
|
| 145 |
+
type_name:
|
| 146 |
+
struct_member_name: "gl_CullDistance"
|
| 147 |
+
storage_class: 0 # UniformConstant
|
| 148 |
+
type_flags: 0x20000008 # ARRAY FLOAT
|
| 149 |
+
decoration_flags: 0x00000000 # NONE
|
| 150 |
+
traits:
|
| 151 |
+
numeric:
|
| 152 |
+
scalar: { width: 32, signedness: 0 }
|
| 153 |
+
vector: { component_count: 0 }
|
| 154 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 155 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 156 |
+
array: { dims_count: 1, dims: [1,], stride: 0 }
|
| 157 |
+
member_count: 0
|
| 158 |
+
members:
|
| 159 |
+
- &td9
|
| 160 |
+
id: 11
|
| 161 |
+
op: 30
|
| 162 |
+
type_name: "gl_PerVertex"
|
| 163 |
+
struct_member_name:
|
| 164 |
+
storage_class: -1 # NOT APPLICABLE
|
| 165 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 166 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 167 |
+
traits:
|
| 168 |
+
numeric:
|
| 169 |
+
scalar: { width: 0, signedness: 0 }
|
| 170 |
+
vector: { component_count: 0 }
|
| 171 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 172 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 173 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 174 |
+
member_count: 4
|
| 175 |
+
members:
|
| 176 |
+
- *td5
|
| 177 |
+
- *td6
|
| 178 |
+
- *td7
|
| 179 |
+
- *td8
|
| 180 |
+
all_block_variables:
|
| 181 |
+
- &bv0
|
| 182 |
+
name: "v"
|
| 183 |
+
offset: 0
|
| 184 |
+
absolute_offset: 0
|
| 185 |
+
size: 0
|
| 186 |
+
padded_size: 0
|
| 187 |
+
decorations: 0x00000080 # NON_WRITABLE
|
| 188 |
+
numeric:
|
| 189 |
+
scalar: { width: 32, signedness: 0 }
|
| 190 |
+
vector: { component_count: 4 }
|
| 191 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 192 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 193 |
+
flags: 0x00000001 # UNUSED
|
| 194 |
+
member_count: 0
|
| 195 |
+
members:
|
| 196 |
+
type_description: *td3
|
| 197 |
+
- &bv1
|
| 198 |
+
name: "vertex_buffers"
|
| 199 |
+
offset: 0
|
| 200 |
+
absolute_offset: 0
|
| 201 |
+
size: 0
|
| 202 |
+
padded_size: 0
|
| 203 |
+
decorations: 0x00000080 # NON_WRITABLE
|
| 204 |
+
numeric:
|
| 205 |
+
scalar: { width: 0, signedness: 0 }
|
| 206 |
+
vector: { component_count: 0 }
|
| 207 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 208 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 209 |
+
flags: 0x00000000 # NONE
|
| 210 |
+
member_count: 1
|
| 211 |
+
members:
|
| 212 |
+
- *bv0
|
| 213 |
+
type_description: *td1
|
| 214 |
+
- &bv2
|
| 215 |
+
name: ""
|
| 216 |
+
offset: 0
|
| 217 |
+
absolute_offset: 0
|
| 218 |
+
size: 0
|
| 219 |
+
padded_size: 0
|
| 220 |
+
decorations: 0x00000080 # NON_WRITABLE
|
| 221 |
+
numeric:
|
| 222 |
+
scalar: { width: 0, signedness: 0 }
|
| 223 |
+
vector: { component_count: 0 }
|
| 224 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 225 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 226 |
+
flags: 0x00000000 # NONE
|
| 227 |
+
member_count: 1
|
| 228 |
+
members:
|
| 229 |
+
- *bv1
|
| 230 |
+
type_description: *td2
|
| 231 |
+
all_descriptor_bindings:
|
| 232 |
+
- &db0
|
| 233 |
+
spirv_id: 23
|
| 234 |
+
name: ""
|
| 235 |
+
binding: 1
|
| 236 |
+
input_attachment_index: 0
|
| 237 |
+
set: 0
|
| 238 |
+
decoration_flags: 0x00000080 # NON_WRITABLE
|
| 239 |
+
descriptor_type: 7 # VK_DESCRIPTOR_TYPE_STORAGE_BUFFER
|
| 240 |
+
resource_type: 4 # SRV
|
| 241 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 242 |
+
block: *bv2 # ""
|
| 243 |
+
array: { dims_count: 0, dims: [] }
|
| 244 |
+
accessed: 1
|
| 245 |
+
uav_counter_id: 4294967295
|
| 246 |
+
uav_counter_binding:
|
| 247 |
+
type_description: *td2
|
| 248 |
+
word_offset: { binding: 191, set: 187 }
|
| 249 |
+
all_interface_variables:
|
| 250 |
+
- &iv0
|
| 251 |
+
spirv_id: 25
|
| 252 |
+
name: "gl_VertexIndex"
|
| 253 |
+
location: 4294967295
|
| 254 |
+
storage_class: 1 # Input
|
| 255 |
+
semantic:
|
| 256 |
+
decoration_flags: 0x00000010 # BUILT_IN
|
| 257 |
+
built_in: 42 # VertexIndex
|
| 258 |
+
numeric:
|
| 259 |
+
scalar: { width: 32, signedness: 1 }
|
| 260 |
+
vector: { component_count: 0 }
|
| 261 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 262 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 263 |
+
member_count: 0
|
| 264 |
+
members:
|
| 265 |
+
format: 99 # VK_FORMAT_R32_SINT
|
| 266 |
+
type_description: *td4
|
| 267 |
+
word_offset: { location: 0 }
|
| 268 |
+
- &iv1
|
| 269 |
+
spirv_id: 0
|
| 270 |
+
name:
|
| 271 |
+
location: 0
|
| 272 |
+
storage_class: 3 # Output
|
| 273 |
+
semantic:
|
| 274 |
+
decoration_flags: 0x00000010 # BUILT_IN
|
| 275 |
+
built_in: 0 # Position
|
| 276 |
+
numeric:
|
| 277 |
+
scalar: { width: 32, signedness: 0 }
|
| 278 |
+
vector: { component_count: 4 }
|
| 279 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 280 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 281 |
+
member_count: 0
|
| 282 |
+
members:
|
| 283 |
+
format: 109 # VK_FORMAT_R32G32B32A32_SFLOAT
|
| 284 |
+
type_description: *td5
|
| 285 |
+
word_offset: { location: 0 }
|
| 286 |
+
- &iv2
|
| 287 |
+
spirv_id: 0
|
| 288 |
+
name:
|
| 289 |
+
location: 0
|
| 290 |
+
storage_class: 3 # Output
|
| 291 |
+
semantic:
|
| 292 |
+
decoration_flags: 0x00000010 # BUILT_IN
|
| 293 |
+
built_in: 1 # PointSize
|
| 294 |
+
numeric:
|
| 295 |
+
scalar: { width: 32, signedness: 0 }
|
| 296 |
+
vector: { component_count: 0 }
|
| 297 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 298 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 299 |
+
member_count: 0
|
| 300 |
+
members:
|
| 301 |
+
format: 100 # VK_FORMAT_R32_SFLOAT
|
| 302 |
+
type_description: *td6
|
| 303 |
+
word_offset: { location: 0 }
|
| 304 |
+
- &iv3
|
| 305 |
+
spirv_id: 0
|
| 306 |
+
name:
|
| 307 |
+
location: 0
|
| 308 |
+
storage_class: 3 # Output
|
| 309 |
+
semantic:
|
| 310 |
+
decoration_flags: 0x00000010 # BUILT_IN
|
| 311 |
+
built_in: 3 # ClipDistance
|
| 312 |
+
numeric:
|
| 313 |
+
scalar: { width: 32, signedness: 0 }
|
| 314 |
+
vector: { component_count: 0 }
|
| 315 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 316 |
+
array: { dims_count: 1, dims: [1,], stride: 0 }
|
| 317 |
+
member_count: 0
|
| 318 |
+
members:
|
| 319 |
+
format: 100 # VK_FORMAT_R32_SFLOAT
|
| 320 |
+
type_description: *td7
|
| 321 |
+
word_offset: { location: 0 }
|
| 322 |
+
- &iv4
|
| 323 |
+
spirv_id: 0
|
| 324 |
+
name:
|
| 325 |
+
location: 0
|
| 326 |
+
storage_class: 3 # Output
|
| 327 |
+
semantic:
|
| 328 |
+
decoration_flags: 0x00000010 # BUILT_IN
|
| 329 |
+
built_in: 4 # CullDistance
|
| 330 |
+
numeric:
|
| 331 |
+
scalar: { width: 32, signedness: 0 }
|
| 332 |
+
vector: { component_count: 0 }
|
| 333 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 334 |
+
array: { dims_count: 1, dims: [1,], stride: 0 }
|
| 335 |
+
member_count: 0
|
| 336 |
+
members:
|
| 337 |
+
format: 100 # VK_FORMAT_R32_SFLOAT
|
| 338 |
+
type_description: *td8
|
| 339 |
+
word_offset: { location: 0 }
|
| 340 |
+
- &iv5
|
| 341 |
+
spirv_id: 13
|
| 342 |
+
name: ""
|
| 343 |
+
location: 4294967295
|
| 344 |
+
storage_class: 3 # Output
|
| 345 |
+
semantic:
|
| 346 |
+
decoration_flags: 0x00000011 # BUILT_IN BLOCK
|
| 347 |
+
built_in: 0, 1, 3, 4 # [Position, PointSize, ClipDistance, CullDistance]
|
| 348 |
+
numeric:
|
| 349 |
+
scalar: { width: 0, signedness: 0 }
|
| 350 |
+
vector: { component_count: 0 }
|
| 351 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 352 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 353 |
+
member_count: 4
|
| 354 |
+
members:
|
| 355 |
+
- *iv1 #
|
| 356 |
+
- *iv2 #
|
| 357 |
+
- *iv3 #
|
| 358 |
+
- *iv4 #
|
| 359 |
+
format: 0 # VK_FORMAT_UNDEFINED
|
| 360 |
+
type_description: *td9
|
| 361 |
+
word_offset: { location: 0 }
|
| 362 |
+
module:
|
| 363 |
+
generator: 8 # Khronos Glslang Reference Front End
|
| 364 |
+
entry_point_name: "main"
|
| 365 |
+
entry_point_id: 4
|
| 366 |
+
source_language: 2 # GLSL
|
| 367 |
+
source_language_version: 460
|
| 368 |
+
spirv_execution_model: 0 # Vertex
|
| 369 |
+
shader_stage: 0x00000001 # VS
|
| 370 |
+
descriptor_binding_count: 1
|
| 371 |
+
descriptor_bindings:
|
| 372 |
+
- *db0 # ""
|
| 373 |
+
descriptor_set_count: 1
|
| 374 |
+
descriptor_sets:
|
| 375 |
+
- set: 0
|
| 376 |
+
binding_count: 1
|
| 377 |
+
bindings:
|
| 378 |
+
- *db0 # ""
|
| 379 |
+
input_variable_count: 1,
|
| 380 |
+
input_variables:
|
| 381 |
+
- *iv0 # "gl_VertexIndex"
|
| 382 |
+
output_variable_count: 1,
|
| 383 |
+
output_variables:
|
| 384 |
+
- *iv5 # ""
|
| 385 |
+
push_constant_count: 0,
|
| 386 |
+
push_constants:
|
| 387 |
+
specialization_constant_count: 0,
|
| 388 |
+
specialization_constants:
|
| 389 |
+
entry_point_heap_accesses:
|
| 390 |
+
- entry: "main"
|
| 391 |
+
resource_heap_access_count: 0
|
| 392 |
+
resource_heap_accesses:
|
| 393 |
+
sampler_heap_access_count: 0
|
| 394 |
+
sampler_heap_accesses:
|
| 395 |
+
...
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_uvec2_pc.spv
ADDED
|
Binary file (768 Bytes). View file
|
|
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_uvec2_ssbo.glsl
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#version 460
|
| 2 |
+
#extension GL_EXT_buffer_reference2 : require
|
| 3 |
+
#extension GL_EXT_buffer_reference_uvec2 : require
|
| 4 |
+
|
| 5 |
+
layout(buffer_reference) buffer VertexBuffer;
|
| 6 |
+
layout(buffer_reference, buffer_reference_align = 16, std430) buffer VertexBuffer {
|
| 7 |
+
int x;
|
| 8 |
+
};
|
| 9 |
+
|
| 10 |
+
layout(set = 0, binding = 0) buffer T1 {
|
| 11 |
+
uvec2 bufferId;
|
| 12 |
+
} ssbo;
|
| 13 |
+
|
| 14 |
+
void main() {
|
| 15 |
+
VertexBuffer(ssbo.bufferId).x = 0;
|
| 16 |
+
}
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_uvec2_ssbo.spv
ADDED
|
Binary file (836 Bytes). View file
|
|
|
third_party/SPIRV-Reflect/tests/glsl/buffer_handle_uvec2_ssbo.spv.yaml
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
%YAML 1.1
|
| 2 |
+
---
|
| 3 |
+
all_type_descriptions:
|
| 4 |
+
- &td0
|
| 5 |
+
id: 7
|
| 6 |
+
op: 23
|
| 7 |
+
type_name:
|
| 8 |
+
struct_member_name: "bufferId"
|
| 9 |
+
storage_class: 0 # UniformConstant
|
| 10 |
+
type_flags: 0x00000104 # VECTOR INT
|
| 11 |
+
decoration_flags: 0x00000000 # NONE
|
| 12 |
+
traits:
|
| 13 |
+
numeric:
|
| 14 |
+
scalar: { width: 32, signedness: 0 }
|
| 15 |
+
vector: { component_count: 2 }
|
| 16 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 17 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 18 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 19 |
+
member_count: 0
|
| 20 |
+
members:
|
| 21 |
+
- &td1
|
| 22 |
+
id: 8
|
| 23 |
+
op: 30
|
| 24 |
+
type_name: "T1"
|
| 25 |
+
struct_member_name:
|
| 26 |
+
storage_class: -1 # NOT APPLICABLE
|
| 27 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 28 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 29 |
+
traits:
|
| 30 |
+
numeric:
|
| 31 |
+
scalar: { width: 0, signedness: 0 }
|
| 32 |
+
vector: { component_count: 0 }
|
| 33 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 34 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 35 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 36 |
+
member_count: 1
|
| 37 |
+
members:
|
| 38 |
+
- *td0
|
| 39 |
+
all_block_variables:
|
| 40 |
+
- &bv0
|
| 41 |
+
name: "bufferId"
|
| 42 |
+
offset: 0
|
| 43 |
+
absolute_offset: 0
|
| 44 |
+
size: 8
|
| 45 |
+
padded_size: 8
|
| 46 |
+
decorations: 0x00000000 # NONE
|
| 47 |
+
numeric:
|
| 48 |
+
scalar: { width: 32, signedness: 0 }
|
| 49 |
+
vector: { component_count: 2 }
|
| 50 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 51 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 52 |
+
flags: 0x00000000 # NONE
|
| 53 |
+
member_count: 0
|
| 54 |
+
members:
|
| 55 |
+
type_description: *td0
|
| 56 |
+
- &bv1
|
| 57 |
+
name: "ssbo"
|
| 58 |
+
offset: 0
|
| 59 |
+
absolute_offset: 0
|
| 60 |
+
size: 0
|
| 61 |
+
padded_size: 0
|
| 62 |
+
decorations: 0x00000000 # NONE
|
| 63 |
+
numeric:
|
| 64 |
+
scalar: { width: 0, signedness: 0 }
|
| 65 |
+
vector: { component_count: 0 }
|
| 66 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 67 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 68 |
+
flags: 0x00000000 # NONE
|
| 69 |
+
member_count: 1
|
| 70 |
+
members:
|
| 71 |
+
- *bv0
|
| 72 |
+
type_description: *td1
|
| 73 |
+
all_descriptor_bindings:
|
| 74 |
+
- &db0
|
| 75 |
+
spirv_id: 10
|
| 76 |
+
name: "ssbo"
|
| 77 |
+
binding: 0
|
| 78 |
+
input_attachment_index: 0
|
| 79 |
+
set: 0
|
| 80 |
+
decoration_flags: 0x00000000 # NONE
|
| 81 |
+
descriptor_type: 7 # VK_DESCRIPTOR_TYPE_STORAGE_BUFFER
|
| 82 |
+
resource_type: 8 # UAV
|
| 83 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 84 |
+
block: *bv1 # "ssbo"
|
| 85 |
+
array: { dims_count: 0, dims: [] }
|
| 86 |
+
accessed: 1
|
| 87 |
+
uav_counter_id: 4294967295
|
| 88 |
+
uav_counter_binding:
|
| 89 |
+
type_description: *td1
|
| 90 |
+
word_offset: { binding: 118, set: 114 }
|
| 91 |
+
all_interface_variables:
|
| 92 |
+
module:
|
| 93 |
+
generator: 8 # Khronos Glslang Reference Front End
|
| 94 |
+
entry_point_name: "main"
|
| 95 |
+
entry_point_id: 4
|
| 96 |
+
source_language: 2 # GLSL
|
| 97 |
+
source_language_version: 460
|
| 98 |
+
spirv_execution_model: 5 # GLCompute
|
| 99 |
+
shader_stage: 0x00000020 # CS
|
| 100 |
+
descriptor_binding_count: 1
|
| 101 |
+
descriptor_bindings:
|
| 102 |
+
- *db0 # "ssbo"
|
| 103 |
+
descriptor_set_count: 1
|
| 104 |
+
descriptor_sets:
|
| 105 |
+
- set: 0
|
| 106 |
+
binding_count: 1
|
| 107 |
+
bindings:
|
| 108 |
+
- *db0 # "ssbo"
|
| 109 |
+
input_variable_count: 0,
|
| 110 |
+
input_variables:
|
| 111 |
+
output_variable_count: 0,
|
| 112 |
+
output_variables:
|
| 113 |
+
push_constant_count: 0,
|
| 114 |
+
push_constants:
|
| 115 |
+
specialization_constant_count: 0,
|
| 116 |
+
specialization_constants:
|
| 117 |
+
entry_point_heap_accesses:
|
| 118 |
+
- entry: "main"
|
| 119 |
+
resource_heap_access_count: 0
|
| 120 |
+
resource_heap_accesses:
|
| 121 |
+
sampler_heap_access_count: 0
|
| 122 |
+
sampler_heap_accesses:
|
| 123 |
+
...
|
third_party/SPIRV-Reflect/tests/glsl/buffer_pointer.glsl
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#version 460 core
|
| 2 |
+
|
| 3 |
+
#extension GL_EXT_buffer_reference : require
|
| 4 |
+
|
| 5 |
+
layout(buffer_reference, buffer_reference_align = 16) buffer Data {
|
| 6 |
+
float g0;
|
| 7 |
+
float g1;
|
| 8 |
+
float g2;
|
| 9 |
+
};
|
| 10 |
+
|
| 11 |
+
layout(push_constant) uniform PushData {
|
| 12 |
+
Data data_ptr;
|
| 13 |
+
} push;
|
| 14 |
+
|
| 15 |
+
layout(location = 0, index = 0) out vec4 Color;
|
| 16 |
+
|
| 17 |
+
void main()
|
| 18 |
+
{
|
| 19 |
+
float f1 = push.data_ptr.g1;
|
| 20 |
+
Color = vec4(f1, 0.0, 0.0, 0.0);
|
| 21 |
+
}
|
| 22 |
+
|
third_party/SPIRV-Reflect/tests/glsl/buffer_pointer.spv.yaml
ADDED
|
@@ -0,0 +1,294 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
%YAML 1.1
|
| 2 |
+
---
|
| 3 |
+
all_type_descriptions:
|
| 4 |
+
- &td0
|
| 5 |
+
id: 7
|
| 6 |
+
op: 22
|
| 7 |
+
type_name:
|
| 8 |
+
struct_member_name: "g0"
|
| 9 |
+
storage_class: 0 # UniformConstant
|
| 10 |
+
type_flags: 0x00000008 # FLOAT
|
| 11 |
+
decoration_flags: 0x00000000 # NONE
|
| 12 |
+
traits:
|
| 13 |
+
numeric:
|
| 14 |
+
scalar: { width: 32, signedness: 0 }
|
| 15 |
+
vector: { component_count: 0 }
|
| 16 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 17 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 18 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 19 |
+
member_count: 0
|
| 20 |
+
members:
|
| 21 |
+
- &td1
|
| 22 |
+
id: 7
|
| 23 |
+
op: 22
|
| 24 |
+
type_name:
|
| 25 |
+
struct_member_name: "g1"
|
| 26 |
+
storage_class: 0 # UniformConstant
|
| 27 |
+
type_flags: 0x00000008 # FLOAT
|
| 28 |
+
decoration_flags: 0x00000000 # NONE
|
| 29 |
+
traits:
|
| 30 |
+
numeric:
|
| 31 |
+
scalar: { width: 32, signedness: 0 }
|
| 32 |
+
vector: { component_count: 0 }
|
| 33 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 34 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 35 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 36 |
+
member_count: 0
|
| 37 |
+
members:
|
| 38 |
+
- &td2
|
| 39 |
+
id: 7
|
| 40 |
+
op: 22
|
| 41 |
+
type_name:
|
| 42 |
+
struct_member_name: "g2"
|
| 43 |
+
storage_class: 0 # UniformConstant
|
| 44 |
+
type_flags: 0x00000008 # FLOAT
|
| 45 |
+
decoration_flags: 0x00000000 # NONE
|
| 46 |
+
traits:
|
| 47 |
+
numeric:
|
| 48 |
+
scalar: { width: 32, signedness: 0 }
|
| 49 |
+
vector: { component_count: 0 }
|
| 50 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 51 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 52 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 53 |
+
member_count: 0
|
| 54 |
+
members:
|
| 55 |
+
- &td3
|
| 56 |
+
id: 10
|
| 57 |
+
op: 32
|
| 58 |
+
type_name: "Data"
|
| 59 |
+
struct_member_name: "data_ptr"
|
| 60 |
+
storage_class: 5349 # PhysicalStorageBuffer
|
| 61 |
+
type_flags: 0x50080000 # STRUCT REF EXTERNAL_BLOCK
|
| 62 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 63 |
+
traits:
|
| 64 |
+
numeric:
|
| 65 |
+
scalar: { width: 0, signedness: 0 }
|
| 66 |
+
vector: { component_count: 0 }
|
| 67 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 68 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 69 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 70 |
+
member_count: 3
|
| 71 |
+
members:
|
| 72 |
+
- *td0
|
| 73 |
+
- *td1
|
| 74 |
+
- *td2
|
| 75 |
+
- &td4
|
| 76 |
+
id: 11
|
| 77 |
+
op: 30
|
| 78 |
+
type_name: "PushData"
|
| 79 |
+
struct_member_name:
|
| 80 |
+
storage_class: -1 # NOT APPLICABLE
|
| 81 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 82 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 83 |
+
traits:
|
| 84 |
+
numeric:
|
| 85 |
+
scalar: { width: 0, signedness: 0 }
|
| 86 |
+
vector: { component_count: 0 }
|
| 87 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 88 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 89 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 90 |
+
member_count: 1
|
| 91 |
+
members:
|
| 92 |
+
- *td3
|
| 93 |
+
- &td5
|
| 94 |
+
id: 7
|
| 95 |
+
op: 22
|
| 96 |
+
type_name:
|
| 97 |
+
struct_member_name: "g0"
|
| 98 |
+
storage_class: 0 # UniformConstant
|
| 99 |
+
type_flags: 0x00000008 # FLOAT
|
| 100 |
+
decoration_flags: 0x00000000 # NONE
|
| 101 |
+
traits:
|
| 102 |
+
numeric:
|
| 103 |
+
scalar: { width: 32, signedness: 0 }
|
| 104 |
+
vector: { component_count: 0 }
|
| 105 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 106 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 107 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 108 |
+
member_count: 0
|
| 109 |
+
members:
|
| 110 |
+
- &td6
|
| 111 |
+
id: 7
|
| 112 |
+
op: 22
|
| 113 |
+
type_name:
|
| 114 |
+
struct_member_name: "g1"
|
| 115 |
+
storage_class: 0 # UniformConstant
|
| 116 |
+
type_flags: 0x00000008 # FLOAT
|
| 117 |
+
decoration_flags: 0x00000000 # NONE
|
| 118 |
+
traits:
|
| 119 |
+
numeric:
|
| 120 |
+
scalar: { width: 32, signedness: 0 }
|
| 121 |
+
vector: { component_count: 0 }
|
| 122 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 123 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 124 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 125 |
+
member_count: 0
|
| 126 |
+
members:
|
| 127 |
+
- &td7
|
| 128 |
+
id: 7
|
| 129 |
+
op: 22
|
| 130 |
+
type_name:
|
| 131 |
+
struct_member_name: "g2"
|
| 132 |
+
storage_class: 0 # UniformConstant
|
| 133 |
+
type_flags: 0x00000008 # FLOAT
|
| 134 |
+
decoration_flags: 0x00000000 # NONE
|
| 135 |
+
traits:
|
| 136 |
+
numeric:
|
| 137 |
+
scalar: { width: 32, signedness: 0 }
|
| 138 |
+
vector: { component_count: 0 }
|
| 139 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 140 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 141 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 142 |
+
member_count: 0
|
| 143 |
+
members:
|
| 144 |
+
- &td8
|
| 145 |
+
id: 24
|
| 146 |
+
op: 23
|
| 147 |
+
type_name:
|
| 148 |
+
struct_member_name:
|
| 149 |
+
storage_class: -1 # NOT APPLICABLE
|
| 150 |
+
type_flags: 0x00000108 # VECTOR FLOAT
|
| 151 |
+
decoration_flags: 0x00000000 # NONE
|
| 152 |
+
traits:
|
| 153 |
+
numeric:
|
| 154 |
+
scalar: { width: 32, signedness: 0 }
|
| 155 |
+
vector: { component_count: 4 }
|
| 156 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 157 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 158 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 159 |
+
member_count: 0
|
| 160 |
+
members:
|
| 161 |
+
all_block_variables:
|
| 162 |
+
- &bv0
|
| 163 |
+
name: "g0"
|
| 164 |
+
offset: 0
|
| 165 |
+
absolute_offset: 0
|
| 166 |
+
size: 4
|
| 167 |
+
padded_size: 4
|
| 168 |
+
decorations: 0x00000000 # NONE
|
| 169 |
+
numeric:
|
| 170 |
+
scalar: { width: 32, signedness: 0 }
|
| 171 |
+
vector: { component_count: 0 }
|
| 172 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 173 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 174 |
+
flags: 0x00000001 # UNUSED
|
| 175 |
+
member_count: 0
|
| 176 |
+
members:
|
| 177 |
+
type_description: *td5
|
| 178 |
+
- &bv1
|
| 179 |
+
name: "g1"
|
| 180 |
+
offset: 4
|
| 181 |
+
absolute_offset: 4
|
| 182 |
+
size: 4
|
| 183 |
+
padded_size: 4
|
| 184 |
+
decorations: 0x00000000 # NONE
|
| 185 |
+
numeric:
|
| 186 |
+
scalar: { width: 32, signedness: 0 }
|
| 187 |
+
vector: { component_count: 0 }
|
| 188 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 189 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 190 |
+
flags: 0x00000000 # NONE
|
| 191 |
+
member_count: 0
|
| 192 |
+
members:
|
| 193 |
+
type_description: *td6
|
| 194 |
+
- &bv2
|
| 195 |
+
name: "g2"
|
| 196 |
+
offset: 8
|
| 197 |
+
absolute_offset: 8
|
| 198 |
+
size: 4
|
| 199 |
+
padded_size: 4
|
| 200 |
+
decorations: 0x00000000 # NONE
|
| 201 |
+
numeric:
|
| 202 |
+
scalar: { width: 32, signedness: 0 }
|
| 203 |
+
vector: { component_count: 0 }
|
| 204 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 205 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 206 |
+
flags: 0x00000001 # UNUSED
|
| 207 |
+
member_count: 0
|
| 208 |
+
members:
|
| 209 |
+
type_description: *td7
|
| 210 |
+
- &bv3
|
| 211 |
+
name: "data_ptr"
|
| 212 |
+
offset: 0
|
| 213 |
+
absolute_offset: 0
|
| 214 |
+
size: 8
|
| 215 |
+
padded_size: 8
|
| 216 |
+
decorations: 0x00000000 # NONE
|
| 217 |
+
numeric:
|
| 218 |
+
scalar: { width: 0, signedness: 0 }
|
| 219 |
+
vector: { component_count: 0 }
|
| 220 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 221 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 222 |
+
flags: 0x00000000 # NONE
|
| 223 |
+
member_count: 3
|
| 224 |
+
members:
|
| 225 |
+
- *bv0
|
| 226 |
+
- *bv1
|
| 227 |
+
- *bv2
|
| 228 |
+
type_description: *td3
|
| 229 |
+
- &bv4
|
| 230 |
+
name: "push"
|
| 231 |
+
offset: 0
|
| 232 |
+
absolute_offset: 0
|
| 233 |
+
size: 8
|
| 234 |
+
padded_size: 8
|
| 235 |
+
decorations: 0x00000000 # NONE
|
| 236 |
+
numeric:
|
| 237 |
+
scalar: { width: 0, signedness: 0 }
|
| 238 |
+
vector: { component_count: 0 }
|
| 239 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 240 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 241 |
+
flags: 0x00000000 # NONE
|
| 242 |
+
member_count: 1
|
| 243 |
+
members:
|
| 244 |
+
- *bv3
|
| 245 |
+
type_description: *td4
|
| 246 |
+
all_descriptor_bindings:
|
| 247 |
+
all_interface_variables:
|
| 248 |
+
- &iv0
|
| 249 |
+
spirv_id: 26
|
| 250 |
+
name: "Color"
|
| 251 |
+
location: 0
|
| 252 |
+
storage_class: 3 # Output
|
| 253 |
+
semantic:
|
| 254 |
+
decoration_flags: 0x00000000 # NONE
|
| 255 |
+
built_in: -1 # ??? (-1)
|
| 256 |
+
numeric:
|
| 257 |
+
scalar: { width: 32, signedness: 0 }
|
| 258 |
+
vector: { component_count: 4 }
|
| 259 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 260 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 261 |
+
member_count: 0
|
| 262 |
+
members:
|
| 263 |
+
format: 109 # VK_FORMAT_R32G32B32A32_SFLOAT
|
| 264 |
+
type_description: *td8
|
| 265 |
+
word_offset: { location: 240 }
|
| 266 |
+
module:
|
| 267 |
+
generator: 8 # Khronos Glslang Reference Front End
|
| 268 |
+
entry_point_name: "main"
|
| 269 |
+
entry_point_id: 5
|
| 270 |
+
source_language: 2 # GLSL
|
| 271 |
+
source_language_version: 460
|
| 272 |
+
spirv_execution_model: 4 # Fragment
|
| 273 |
+
shader_stage: 0x00000010 # PS
|
| 274 |
+
descriptor_binding_count: 0
|
| 275 |
+
descriptor_bindings:
|
| 276 |
+
descriptor_set_count: 0
|
| 277 |
+
descriptor_sets:
|
| 278 |
+
input_variable_count: 0,
|
| 279 |
+
input_variables:
|
| 280 |
+
output_variable_count: 1,
|
| 281 |
+
output_variables:
|
| 282 |
+
- *iv0 # "Color"
|
| 283 |
+
push_constant_count: 1,
|
| 284 |
+
push_constants:
|
| 285 |
+
- *bv4 # "push"
|
| 286 |
+
specialization_constant_count: 0,
|
| 287 |
+
specialization_constants:
|
| 288 |
+
entry_point_heap_accesses:
|
| 289 |
+
- entry: "main"
|
| 290 |
+
resource_heap_access_count: 0
|
| 291 |
+
resource_heap_accesses:
|
| 292 |
+
sampler_heap_access_count: 0
|
| 293 |
+
sampler_heap_accesses:
|
| 294 |
+
...
|
third_party/SPIRV-Reflect/tests/glsl/buffer_pointer.txt
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
generator : Khronos Glslang Reference Front End
|
| 2 |
+
source lang : GLSL
|
| 3 |
+
source lang ver : 460
|
| 4 |
+
source file : buffer_pointer.glsl
|
| 5 |
+
entry point : main (stage=PS)
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
Output variables: 1
|
| 9 |
+
|
| 10 |
+
0:
|
| 11 |
+
spirv id : 26
|
| 12 |
+
location : 0
|
| 13 |
+
type : float4
|
| 14 |
+
semantic :
|
| 15 |
+
name : Color
|
| 16 |
+
qualifier :
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
Push constant blocks: 1
|
| 20 |
+
|
| 21 |
+
0:
|
| 22 |
+
spirv id : 14
|
| 23 |
+
name : push (PushData)
|
| 24 |
+
// size = 16, padded size = 16
|
| 25 |
+
struct PushData {
|
| 26 |
+
|
| 27 |
+
// abs offset = 0, rel offset = 0, size = 8, padded size = 16
|
| 28 |
+
ref struct Data {
|
| 29 |
+
float g0; // abs offset = 0, rel offset = 0, size = 4, padded
|
| 30 |
+
size = 4 UNUSED
|
| 31 |
+
float g1; // abs offset = 4, rel offset = 4, size = 4, padded
|
| 32 |
+
size = 4
|
| 33 |
+
float g2; // abs offset = 8, rel offset = 8, size = 4, padded
|
| 34 |
+
size = 8 UNUSED
|
| 35 |
+
} data_ptr;
|
| 36 |
+
|
| 37 |
+
} push;
|
| 38 |
+
|
third_party/SPIRV-Reflect/tests/glsl/built_in_format.glsl
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#version 450
|
| 2 |
+
#pragma shader_stage(vertex)
|
| 3 |
+
|
| 4 |
+
layout (location = 0) out vec3 texcoord;
|
| 5 |
+
|
| 6 |
+
void main() {
|
| 7 |
+
gl_Position = vec4(gl_VertexIndex, 0, 0, 1);
|
| 8 |
+
texcoord = vec3(0,0,0);
|
| 9 |
+
}
|
third_party/SPIRV-Reflect/tests/glsl/fn_struct_param.spv.yaml
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
%YAML 1.1
|
| 2 |
+
---
|
| 3 |
+
all_type_descriptions:
|
| 4 |
+
- &td0
|
| 5 |
+
id: 6
|
| 6 |
+
op: 22
|
| 7 |
+
type_name:
|
| 8 |
+
struct_member_name: "a"
|
| 9 |
+
storage_class: 0 # UniformConstant
|
| 10 |
+
type_flags: 0x00000008 # FLOAT
|
| 11 |
+
decoration_flags: 0x00000000 # NONE
|
| 12 |
+
traits:
|
| 13 |
+
numeric:
|
| 14 |
+
scalar: { width: 32, signedness: 0 }
|
| 15 |
+
vector: { component_count: 0 }
|
| 16 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 17 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 18 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 19 |
+
member_count: 0
|
| 20 |
+
members:
|
| 21 |
+
- &td1
|
| 22 |
+
id: 22
|
| 23 |
+
op: 30
|
| 24 |
+
type_name: "B"
|
| 25 |
+
struct_member_name: "b"
|
| 26 |
+
storage_class: 0 # UniformConstant
|
| 27 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 28 |
+
decoration_flags: 0x00000000 # NONE
|
| 29 |
+
traits:
|
| 30 |
+
numeric:
|
| 31 |
+
scalar: { width: 0, signedness: 0 }
|
| 32 |
+
vector: { component_count: 0 }
|
| 33 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 34 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 35 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 36 |
+
member_count: 1
|
| 37 |
+
members:
|
| 38 |
+
- *td0
|
| 39 |
+
- &td2
|
| 40 |
+
id: 23
|
| 41 |
+
op: 30
|
| 42 |
+
type_name: "Test"
|
| 43 |
+
struct_member_name:
|
| 44 |
+
storage_class: -1 # NOT APPLICABLE
|
| 45 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 46 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 47 |
+
traits:
|
| 48 |
+
numeric:
|
| 49 |
+
scalar: { width: 0, signedness: 0 }
|
| 50 |
+
vector: { component_count: 0 }
|
| 51 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 52 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 53 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 54 |
+
member_count: 1
|
| 55 |
+
members:
|
| 56 |
+
- *td1
|
| 57 |
+
- &td3
|
| 58 |
+
id: 17
|
| 59 |
+
op: 23
|
| 60 |
+
type_name:
|
| 61 |
+
struct_member_name:
|
| 62 |
+
storage_class: -1 # NOT APPLICABLE
|
| 63 |
+
type_flags: 0x00000108 # VECTOR FLOAT
|
| 64 |
+
decoration_flags: 0x00000000 # NONE
|
| 65 |
+
traits:
|
| 66 |
+
numeric:
|
| 67 |
+
scalar: { width: 32, signedness: 0 }
|
| 68 |
+
vector: { component_count: 4 }
|
| 69 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 70 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 71 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 72 |
+
member_count: 0
|
| 73 |
+
members:
|
| 74 |
+
all_block_variables:
|
| 75 |
+
- &bv0
|
| 76 |
+
name: "a"
|
| 77 |
+
offset: 0
|
| 78 |
+
absolute_offset: 0
|
| 79 |
+
size: 4
|
| 80 |
+
padded_size: 16
|
| 81 |
+
decorations: 0x00000000 # NONE
|
| 82 |
+
numeric:
|
| 83 |
+
scalar: { width: 32, signedness: 0 }
|
| 84 |
+
vector: { component_count: 0 }
|
| 85 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 86 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 87 |
+
flags: 0x00000000 # NONE
|
| 88 |
+
member_count: 0
|
| 89 |
+
members:
|
| 90 |
+
type_description: *td0
|
| 91 |
+
- &bv1
|
| 92 |
+
name: "b"
|
| 93 |
+
offset: 0
|
| 94 |
+
absolute_offset: 0
|
| 95 |
+
size: 16
|
| 96 |
+
padded_size: 16
|
| 97 |
+
decorations: 0x00000000 # NONE
|
| 98 |
+
numeric:
|
| 99 |
+
scalar: { width: 0, signedness: 0 }
|
| 100 |
+
vector: { component_count: 0 }
|
| 101 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 102 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 103 |
+
flags: 0x00000000 # NONE
|
| 104 |
+
member_count: 1
|
| 105 |
+
members:
|
| 106 |
+
- *bv0
|
| 107 |
+
type_description: *td1
|
| 108 |
+
- &bv2
|
| 109 |
+
name: "test"
|
| 110 |
+
offset: 0
|
| 111 |
+
absolute_offset: 0
|
| 112 |
+
size: 16
|
| 113 |
+
padded_size: 16
|
| 114 |
+
decorations: 0x00000000 # NONE
|
| 115 |
+
numeric:
|
| 116 |
+
scalar: { width: 0, signedness: 0 }
|
| 117 |
+
vector: { component_count: 0 }
|
| 118 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 119 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 120 |
+
flags: 0x00000000 # NONE
|
| 121 |
+
member_count: 1
|
| 122 |
+
members:
|
| 123 |
+
- *bv1
|
| 124 |
+
type_description: *td2
|
| 125 |
+
all_descriptor_bindings:
|
| 126 |
+
- &db0
|
| 127 |
+
spirv_id: 25
|
| 128 |
+
name: "test"
|
| 129 |
+
binding: 0
|
| 130 |
+
input_attachment_index: 0
|
| 131 |
+
set: 0
|
| 132 |
+
decoration_flags: 0x00000000 # NONE
|
| 133 |
+
descriptor_type: 6 # VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER
|
| 134 |
+
resource_type: 2 # CBV
|
| 135 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 136 |
+
block: *bv2 # "test"
|
| 137 |
+
array: { dims_count: 0, dims: [] }
|
| 138 |
+
accessed: 1
|
| 139 |
+
uav_counter_id: 4294967295
|
| 140 |
+
uav_counter_binding:
|
| 141 |
+
type_description: *td2
|
| 142 |
+
word_offset: { binding: 126, set: 122 }
|
| 143 |
+
all_interface_variables:
|
| 144 |
+
- &iv0
|
| 145 |
+
spirv_id: 19
|
| 146 |
+
name: "outColor"
|
| 147 |
+
location: 0
|
| 148 |
+
storage_class: 3 # Output
|
| 149 |
+
semantic:
|
| 150 |
+
decoration_flags: 0x00000000 # NONE
|
| 151 |
+
built_in: -1 # ??? (-1)
|
| 152 |
+
numeric:
|
| 153 |
+
scalar: { width: 32, signedness: 0 }
|
| 154 |
+
vector: { component_count: 4 }
|
| 155 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 156 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 157 |
+
member_count: 0
|
| 158 |
+
members:
|
| 159 |
+
format: 109 # VK_FORMAT_R32G32B32A32_SFLOAT
|
| 160 |
+
type_description: *td3
|
| 161 |
+
word_offset: { location: 105 }
|
| 162 |
+
module:
|
| 163 |
+
generator: 8 # Khronos Glslang Reference Front End
|
| 164 |
+
entry_point_name: "main"
|
| 165 |
+
entry_point_id: 4
|
| 166 |
+
source_language: 2 # GLSL
|
| 167 |
+
source_language_version: 450
|
| 168 |
+
spirv_execution_model: 4 # Fragment
|
| 169 |
+
shader_stage: 0x00000010 # PS
|
| 170 |
+
descriptor_binding_count: 1
|
| 171 |
+
descriptor_bindings:
|
| 172 |
+
- *db0 # "test"
|
| 173 |
+
descriptor_set_count: 1
|
| 174 |
+
descriptor_sets:
|
| 175 |
+
- set: 0
|
| 176 |
+
binding_count: 1
|
| 177 |
+
bindings:
|
| 178 |
+
- *db0 # "test"
|
| 179 |
+
input_variable_count: 0,
|
| 180 |
+
input_variables:
|
| 181 |
+
output_variable_count: 1,
|
| 182 |
+
output_variables:
|
| 183 |
+
- *iv0 # "outColor"
|
| 184 |
+
push_constant_count: 0,
|
| 185 |
+
push_constants:
|
| 186 |
+
specialization_constant_count: 0,
|
| 187 |
+
specialization_constants:
|
| 188 |
+
entry_point_heap_accesses:
|
| 189 |
+
- entry: "main"
|
| 190 |
+
resource_heap_access_count: 0
|
| 191 |
+
resource_heap_accesses:
|
| 192 |
+
sampler_heap_access_count: 0
|
| 193 |
+
sampler_heap_accesses:
|
| 194 |
+
...
|
third_party/SPIRV-Reflect/tests/glsl/frag_array_input.glsl
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#version 450 core
|
| 2 |
+
|
| 3 |
+
struct structX
|
| 4 |
+
{
|
| 5 |
+
int x1_;
|
| 6 |
+
int x2_;
|
| 7 |
+
};
|
| 8 |
+
|
| 9 |
+
struct structY
|
| 10 |
+
{
|
| 11 |
+
int y1_;
|
| 12 |
+
structX y2_[2];
|
| 13 |
+
};
|
| 14 |
+
|
| 15 |
+
struct structZ
|
| 16 |
+
{
|
| 17 |
+
structX z_[2][2];
|
| 18 |
+
};
|
| 19 |
+
|
| 20 |
+
layout(location = 0) flat in structY in_a;
|
| 21 |
+
|
| 22 |
+
layout(location = 5) flat in structX int_b[2];
|
| 23 |
+
|
| 24 |
+
layout(location = 10) in inC {
|
| 25 |
+
structX c_[2];
|
| 26 |
+
} in_c;
|
| 27 |
+
|
| 28 |
+
layout(location = 14) flat in structX int_d[2][2];
|
| 29 |
+
|
| 30 |
+
layout(location = 22) in inE {
|
| 31 |
+
structZ e_[2];
|
| 32 |
+
} in_e;
|
| 33 |
+
|
| 34 |
+
layout(location = 38) flat in int in_f[2][2];
|
| 35 |
+
|
| 36 |
+
void main() { }
|
third_party/SPIRV-Reflect/tests/glsl/frag_array_input.spv
ADDED
|
Binary file (1.04 kB). View file
|
|
|
third_party/SPIRV-Reflect/tests/glsl/frag_array_input.spv.yaml
ADDED
|
@@ -0,0 +1,766 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
%YAML 1.1
|
| 2 |
+
---
|
| 3 |
+
all_type_descriptions:
|
| 4 |
+
- &td0
|
| 5 |
+
id: 6
|
| 6 |
+
op: 21
|
| 7 |
+
type_name:
|
| 8 |
+
struct_member_name: "y1_"
|
| 9 |
+
storage_class: 0 # UniformConstant
|
| 10 |
+
type_flags: 0x00000004 # INT
|
| 11 |
+
decoration_flags: 0x00000000 # NONE
|
| 12 |
+
traits:
|
| 13 |
+
numeric:
|
| 14 |
+
scalar: { width: 32, signedness: 1 }
|
| 15 |
+
vector: { component_count: 0 }
|
| 16 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 17 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 18 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 19 |
+
member_count: 0
|
| 20 |
+
members:
|
| 21 |
+
- &td1
|
| 22 |
+
id: 6
|
| 23 |
+
op: 21
|
| 24 |
+
type_name:
|
| 25 |
+
struct_member_name: "x1_"
|
| 26 |
+
storage_class: 0 # UniformConstant
|
| 27 |
+
type_flags: 0x00000004 # INT
|
| 28 |
+
decoration_flags: 0x00000000 # NONE
|
| 29 |
+
traits:
|
| 30 |
+
numeric:
|
| 31 |
+
scalar: { width: 32, signedness: 1 }
|
| 32 |
+
vector: { component_count: 0 }
|
| 33 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 34 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 35 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 36 |
+
member_count: 0
|
| 37 |
+
members:
|
| 38 |
+
- &td2
|
| 39 |
+
id: 6
|
| 40 |
+
op: 21
|
| 41 |
+
type_name:
|
| 42 |
+
struct_member_name: "x2_"
|
| 43 |
+
storage_class: 0 # UniformConstant
|
| 44 |
+
type_flags: 0x00000004 # INT
|
| 45 |
+
decoration_flags: 0x00000000 # NONE
|
| 46 |
+
traits:
|
| 47 |
+
numeric:
|
| 48 |
+
scalar: { width: 32, signedness: 1 }
|
| 49 |
+
vector: { component_count: 0 }
|
| 50 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 51 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 52 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 53 |
+
member_count: 0
|
| 54 |
+
members:
|
| 55 |
+
- &td3
|
| 56 |
+
id: 10
|
| 57 |
+
op: 28
|
| 58 |
+
type_name: "structX"
|
| 59 |
+
struct_member_name: "y2_"
|
| 60 |
+
storage_class: 0 # UniformConstant
|
| 61 |
+
type_flags: 0x30080000 # ARRAY STRUCT EXTERNAL_BLOCK
|
| 62 |
+
decoration_flags: 0x00000000 # NONE
|
| 63 |
+
traits:
|
| 64 |
+
numeric:
|
| 65 |
+
scalar: { width: 0, signedness: 0 }
|
| 66 |
+
vector: { component_count: 0 }
|
| 67 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 68 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 69 |
+
array: { dims_count: 1, dims: [2,], stride: 0 }
|
| 70 |
+
member_count: 2
|
| 71 |
+
members:
|
| 72 |
+
- *td1
|
| 73 |
+
- *td2
|
| 74 |
+
- &td4
|
| 75 |
+
id: 11
|
| 76 |
+
op: 30
|
| 77 |
+
type_name: "structY"
|
| 78 |
+
struct_member_name:
|
| 79 |
+
storage_class: -1 # NOT APPLICABLE
|
| 80 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 81 |
+
decoration_flags: 0x00000000 # NONE
|
| 82 |
+
traits:
|
| 83 |
+
numeric:
|
| 84 |
+
scalar: { width: 0, signedness: 0 }
|
| 85 |
+
vector: { component_count: 0 }
|
| 86 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 87 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 88 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 89 |
+
member_count: 2
|
| 90 |
+
members:
|
| 91 |
+
- *td0
|
| 92 |
+
- *td3
|
| 93 |
+
- &td5
|
| 94 |
+
id: 6
|
| 95 |
+
op: 21
|
| 96 |
+
type_name:
|
| 97 |
+
struct_member_name: "x1_"
|
| 98 |
+
storage_class: 0 # UniformConstant
|
| 99 |
+
type_flags: 0x00000004 # INT
|
| 100 |
+
decoration_flags: 0x00000000 # NONE
|
| 101 |
+
traits:
|
| 102 |
+
numeric:
|
| 103 |
+
scalar: { width: 32, signedness: 1 }
|
| 104 |
+
vector: { component_count: 0 }
|
| 105 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 106 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 107 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 108 |
+
member_count: 0
|
| 109 |
+
members:
|
| 110 |
+
- &td6
|
| 111 |
+
id: 6
|
| 112 |
+
op: 21
|
| 113 |
+
type_name:
|
| 114 |
+
struct_member_name: "x2_"
|
| 115 |
+
storage_class: 0 # UniformConstant
|
| 116 |
+
type_flags: 0x00000004 # INT
|
| 117 |
+
decoration_flags: 0x00000000 # NONE
|
| 118 |
+
traits:
|
| 119 |
+
numeric:
|
| 120 |
+
scalar: { width: 32, signedness: 1 }
|
| 121 |
+
vector: { component_count: 0 }
|
| 122 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 123 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 124 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 125 |
+
member_count: 0
|
| 126 |
+
members:
|
| 127 |
+
- &td7
|
| 128 |
+
id: 10
|
| 129 |
+
op: 28
|
| 130 |
+
type_name: "structX"
|
| 131 |
+
struct_member_name:
|
| 132 |
+
storage_class: -1 # NOT APPLICABLE
|
| 133 |
+
type_flags: 0x30080000 # ARRAY STRUCT EXTERNAL_BLOCK
|
| 134 |
+
decoration_flags: 0x00000000 # NONE
|
| 135 |
+
traits:
|
| 136 |
+
numeric:
|
| 137 |
+
scalar: { width: 0, signedness: 0 }
|
| 138 |
+
vector: { component_count: 0 }
|
| 139 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 140 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 141 |
+
array: { dims_count: 1, dims: [2,], stride: 0 }
|
| 142 |
+
member_count: 2
|
| 143 |
+
members:
|
| 144 |
+
- *td5
|
| 145 |
+
- *td6
|
| 146 |
+
- &td8
|
| 147 |
+
id: 6
|
| 148 |
+
op: 21
|
| 149 |
+
type_name:
|
| 150 |
+
struct_member_name: "x1_"
|
| 151 |
+
storage_class: 0 # UniformConstant
|
| 152 |
+
type_flags: 0x00000004 # INT
|
| 153 |
+
decoration_flags: 0x00000000 # NONE
|
| 154 |
+
traits:
|
| 155 |
+
numeric:
|
| 156 |
+
scalar: { width: 32, signedness: 1 }
|
| 157 |
+
vector: { component_count: 0 }
|
| 158 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 159 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 160 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 161 |
+
member_count: 0
|
| 162 |
+
members:
|
| 163 |
+
- &td9
|
| 164 |
+
id: 6
|
| 165 |
+
op: 21
|
| 166 |
+
type_name:
|
| 167 |
+
struct_member_name: "x2_"
|
| 168 |
+
storage_class: 0 # UniformConstant
|
| 169 |
+
type_flags: 0x00000004 # INT
|
| 170 |
+
decoration_flags: 0x00000000 # NONE
|
| 171 |
+
traits:
|
| 172 |
+
numeric:
|
| 173 |
+
scalar: { width: 32, signedness: 1 }
|
| 174 |
+
vector: { component_count: 0 }
|
| 175 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 176 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 177 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 178 |
+
member_count: 0
|
| 179 |
+
members:
|
| 180 |
+
- &td10
|
| 181 |
+
id: 10
|
| 182 |
+
op: 28
|
| 183 |
+
type_name: "structX"
|
| 184 |
+
struct_member_name: "c_"
|
| 185 |
+
storage_class: 0 # UniformConstant
|
| 186 |
+
type_flags: 0x30080000 # ARRAY STRUCT EXTERNAL_BLOCK
|
| 187 |
+
decoration_flags: 0x00000000 # NONE
|
| 188 |
+
traits:
|
| 189 |
+
numeric:
|
| 190 |
+
scalar: { width: 0, signedness: 0 }
|
| 191 |
+
vector: { component_count: 0 }
|
| 192 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 193 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 194 |
+
array: { dims_count: 1, dims: [2,], stride: 0 }
|
| 195 |
+
member_count: 2
|
| 196 |
+
members:
|
| 197 |
+
- *td8
|
| 198 |
+
- *td9
|
| 199 |
+
- &td11
|
| 200 |
+
id: 16
|
| 201 |
+
op: 30
|
| 202 |
+
type_name: "inC"
|
| 203 |
+
struct_member_name:
|
| 204 |
+
storage_class: -1 # NOT APPLICABLE
|
| 205 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 206 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 207 |
+
traits:
|
| 208 |
+
numeric:
|
| 209 |
+
scalar: { width: 0, signedness: 0 }
|
| 210 |
+
vector: { component_count: 0 }
|
| 211 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 212 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 213 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 214 |
+
member_count: 1
|
| 215 |
+
members:
|
| 216 |
+
- *td10
|
| 217 |
+
- &td12
|
| 218 |
+
id: 6
|
| 219 |
+
op: 21
|
| 220 |
+
type_name:
|
| 221 |
+
struct_member_name: "x1_"
|
| 222 |
+
storage_class: 0 # UniformConstant
|
| 223 |
+
type_flags: 0x00000004 # INT
|
| 224 |
+
decoration_flags: 0x00000000 # NONE
|
| 225 |
+
traits:
|
| 226 |
+
numeric:
|
| 227 |
+
scalar: { width: 32, signedness: 1 }
|
| 228 |
+
vector: { component_count: 0 }
|
| 229 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 230 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 231 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 232 |
+
member_count: 0
|
| 233 |
+
members:
|
| 234 |
+
- &td13
|
| 235 |
+
id: 6
|
| 236 |
+
op: 21
|
| 237 |
+
type_name:
|
| 238 |
+
struct_member_name: "x2_"
|
| 239 |
+
storage_class: 0 # UniformConstant
|
| 240 |
+
type_flags: 0x00000004 # INT
|
| 241 |
+
decoration_flags: 0x00000000 # NONE
|
| 242 |
+
traits:
|
| 243 |
+
numeric:
|
| 244 |
+
scalar: { width: 32, signedness: 1 }
|
| 245 |
+
vector: { component_count: 0 }
|
| 246 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 247 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 248 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 249 |
+
member_count: 0
|
| 250 |
+
members:
|
| 251 |
+
- &td14
|
| 252 |
+
id: 19
|
| 253 |
+
op: 28
|
| 254 |
+
type_name: "structX"
|
| 255 |
+
struct_member_name:
|
| 256 |
+
storage_class: -1 # NOT APPLICABLE
|
| 257 |
+
type_flags: 0x30080000 # ARRAY STRUCT EXTERNAL_BLOCK
|
| 258 |
+
decoration_flags: 0x00000000 # NONE
|
| 259 |
+
traits:
|
| 260 |
+
numeric:
|
| 261 |
+
scalar: { width: 0, signedness: 0 }
|
| 262 |
+
vector: { component_count: 0 }
|
| 263 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 264 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 265 |
+
array: { dims_count: 2, dims: [2,2,], stride: 0 }
|
| 266 |
+
member_count: 2
|
| 267 |
+
members:
|
| 268 |
+
- *td12
|
| 269 |
+
- *td13
|
| 270 |
+
- &td15
|
| 271 |
+
id: 6
|
| 272 |
+
op: 21
|
| 273 |
+
type_name:
|
| 274 |
+
struct_member_name: "x1_"
|
| 275 |
+
storage_class: 0 # UniformConstant
|
| 276 |
+
type_flags: 0x00000004 # INT
|
| 277 |
+
decoration_flags: 0x00000000 # NONE
|
| 278 |
+
traits:
|
| 279 |
+
numeric:
|
| 280 |
+
scalar: { width: 32, signedness: 1 }
|
| 281 |
+
vector: { component_count: 0 }
|
| 282 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 283 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 284 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 285 |
+
member_count: 0
|
| 286 |
+
members:
|
| 287 |
+
- &td16
|
| 288 |
+
id: 6
|
| 289 |
+
op: 21
|
| 290 |
+
type_name:
|
| 291 |
+
struct_member_name: "x2_"
|
| 292 |
+
storage_class: 0 # UniformConstant
|
| 293 |
+
type_flags: 0x00000004 # INT
|
| 294 |
+
decoration_flags: 0x00000000 # NONE
|
| 295 |
+
traits:
|
| 296 |
+
numeric:
|
| 297 |
+
scalar: { width: 32, signedness: 1 }
|
| 298 |
+
vector: { component_count: 0 }
|
| 299 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 300 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 301 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 302 |
+
member_count: 0
|
| 303 |
+
members:
|
| 304 |
+
- &td17
|
| 305 |
+
id: 19
|
| 306 |
+
op: 28
|
| 307 |
+
type_name: "structX"
|
| 308 |
+
struct_member_name: "z_"
|
| 309 |
+
storage_class: 0 # UniformConstant
|
| 310 |
+
type_flags: 0x30080000 # ARRAY STRUCT EXTERNAL_BLOCK
|
| 311 |
+
decoration_flags: 0x00000000 # NONE
|
| 312 |
+
traits:
|
| 313 |
+
numeric:
|
| 314 |
+
scalar: { width: 0, signedness: 0 }
|
| 315 |
+
vector: { component_count: 0 }
|
| 316 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 317 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 318 |
+
array: { dims_count: 2, dims: [2,2,], stride: 0 }
|
| 319 |
+
member_count: 2
|
| 320 |
+
members:
|
| 321 |
+
- *td15
|
| 322 |
+
- *td16
|
| 323 |
+
- &td18
|
| 324 |
+
id: 23
|
| 325 |
+
op: 28
|
| 326 |
+
type_name: "structZ"
|
| 327 |
+
struct_member_name: "e_"
|
| 328 |
+
storage_class: 0 # UniformConstant
|
| 329 |
+
type_flags: 0x30080000 # ARRAY STRUCT EXTERNAL_BLOCK
|
| 330 |
+
decoration_flags: 0x00000000 # NONE
|
| 331 |
+
traits:
|
| 332 |
+
numeric:
|
| 333 |
+
scalar: { width: 0, signedness: 0 }
|
| 334 |
+
vector: { component_count: 0 }
|
| 335 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 336 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 337 |
+
array: { dims_count: 1, dims: [2,], stride: 0 }
|
| 338 |
+
member_count: 1
|
| 339 |
+
members:
|
| 340 |
+
- *td17
|
| 341 |
+
- &td19
|
| 342 |
+
id: 24
|
| 343 |
+
op: 30
|
| 344 |
+
type_name: "inE"
|
| 345 |
+
struct_member_name:
|
| 346 |
+
storage_class: -1 # NOT APPLICABLE
|
| 347 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 348 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 349 |
+
traits:
|
| 350 |
+
numeric:
|
| 351 |
+
scalar: { width: 0, signedness: 0 }
|
| 352 |
+
vector: { component_count: 0 }
|
| 353 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 354 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 355 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 356 |
+
member_count: 1
|
| 357 |
+
members:
|
| 358 |
+
- *td18
|
| 359 |
+
- &td20
|
| 360 |
+
id: 28
|
| 361 |
+
op: 28
|
| 362 |
+
type_name:
|
| 363 |
+
struct_member_name:
|
| 364 |
+
storage_class: -1 # NOT APPLICABLE
|
| 365 |
+
type_flags: 0x20000004 # ARRAY INT
|
| 366 |
+
decoration_flags: 0x00000000 # NONE
|
| 367 |
+
traits:
|
| 368 |
+
numeric:
|
| 369 |
+
scalar: { width: 32, signedness: 1 }
|
| 370 |
+
vector: { component_count: 0 }
|
| 371 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 372 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 373 |
+
array: { dims_count: 2, dims: [2,2,], stride: 0 }
|
| 374 |
+
member_count: 0
|
| 375 |
+
members:
|
| 376 |
+
all_block_variables:
|
| 377 |
+
all_descriptor_bindings:
|
| 378 |
+
all_interface_variables:
|
| 379 |
+
- &iv0
|
| 380 |
+
spirv_id: 0
|
| 381 |
+
name:
|
| 382 |
+
location: 0
|
| 383 |
+
storage_class: 1 # Input
|
| 384 |
+
semantic:
|
| 385 |
+
decoration_flags: 0x00000000 # NONE
|
| 386 |
+
built_in: 0 # Position
|
| 387 |
+
numeric:
|
| 388 |
+
scalar: { width: 32, signedness: 1 }
|
| 389 |
+
vector: { component_count: 0 }
|
| 390 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 391 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 392 |
+
member_count: 0
|
| 393 |
+
members:
|
| 394 |
+
format: 99 # VK_FORMAT_R32_SINT
|
| 395 |
+
type_description: *td0
|
| 396 |
+
word_offset: { location: 0 }
|
| 397 |
+
- &iv1
|
| 398 |
+
spirv_id: 0
|
| 399 |
+
name:
|
| 400 |
+
location: 0
|
| 401 |
+
storage_class: 0 # UniformConstant
|
| 402 |
+
semantic:
|
| 403 |
+
decoration_flags: 0x00000000 # NONE
|
| 404 |
+
built_in: 0 # Position
|
| 405 |
+
numeric:
|
| 406 |
+
scalar: { width: 0, signedness: 0 }
|
| 407 |
+
vector: { component_count: 0 }
|
| 408 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 409 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 410 |
+
member_count: 0
|
| 411 |
+
members:
|
| 412 |
+
format: 0 # VK_FORMAT_UNDEFINED
|
| 413 |
+
type_description:
|
| 414 |
+
word_offset: { location: 0 }
|
| 415 |
+
- &iv2
|
| 416 |
+
spirv_id: 0
|
| 417 |
+
name:
|
| 418 |
+
location: 0
|
| 419 |
+
storage_class: 0 # UniformConstant
|
| 420 |
+
semantic:
|
| 421 |
+
decoration_flags: 0x00000000 # NONE
|
| 422 |
+
built_in: 0 # Position
|
| 423 |
+
numeric:
|
| 424 |
+
scalar: { width: 0, signedness: 0 }
|
| 425 |
+
vector: { component_count: 0 }
|
| 426 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 427 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 428 |
+
member_count: 0
|
| 429 |
+
members:
|
| 430 |
+
format: 0 # VK_FORMAT_UNDEFINED
|
| 431 |
+
type_description:
|
| 432 |
+
word_offset: { location: 0 }
|
| 433 |
+
- &iv3
|
| 434 |
+
spirv_id: 0
|
| 435 |
+
name:
|
| 436 |
+
location: 0
|
| 437 |
+
storage_class: 1 # Input
|
| 438 |
+
semantic:
|
| 439 |
+
decoration_flags: 0x00000000 # NONE
|
| 440 |
+
built_in: 0 # Position
|
| 441 |
+
numeric:
|
| 442 |
+
scalar: { width: 0, signedness: 0 }
|
| 443 |
+
vector: { component_count: 0 }
|
| 444 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 445 |
+
array: { dims_count: 1, dims: [2,], stride: 0 }
|
| 446 |
+
member_count: 2
|
| 447 |
+
members:
|
| 448 |
+
- *iv1 #
|
| 449 |
+
- *iv2 #
|
| 450 |
+
format: 0 # VK_FORMAT_UNDEFINED
|
| 451 |
+
type_description: *td3
|
| 452 |
+
word_offset: { location: 0 }
|
| 453 |
+
- &iv4
|
| 454 |
+
spirv_id: 13
|
| 455 |
+
name: "in_a"
|
| 456 |
+
location: 0
|
| 457 |
+
storage_class: 1 # Input
|
| 458 |
+
semantic:
|
| 459 |
+
decoration_flags: 0x00000040 # FLAT
|
| 460 |
+
built_in: -1 # ??? (-1)
|
| 461 |
+
numeric:
|
| 462 |
+
scalar: { width: 0, signedness: 0 }
|
| 463 |
+
vector: { component_count: 0 }
|
| 464 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 465 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 466 |
+
member_count: 2
|
| 467 |
+
members:
|
| 468 |
+
- *iv0 #
|
| 469 |
+
- *iv3 #
|
| 470 |
+
format: 0 # VK_FORMAT_UNDEFINED
|
| 471 |
+
type_description: *td4
|
| 472 |
+
word_offset: { location: 113 }
|
| 473 |
+
- &iv5
|
| 474 |
+
spirv_id: 0
|
| 475 |
+
name:
|
| 476 |
+
location: 0
|
| 477 |
+
storage_class: 0 # UniformConstant
|
| 478 |
+
semantic:
|
| 479 |
+
decoration_flags: 0x00000000 # NONE
|
| 480 |
+
built_in: 0 # Position
|
| 481 |
+
numeric:
|
| 482 |
+
scalar: { width: 0, signedness: 0 }
|
| 483 |
+
vector: { component_count: 0 }
|
| 484 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 485 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 486 |
+
member_count: 0
|
| 487 |
+
members:
|
| 488 |
+
format: 0 # VK_FORMAT_UNDEFINED
|
| 489 |
+
type_description:
|
| 490 |
+
word_offset: { location: 0 }
|
| 491 |
+
- &iv6
|
| 492 |
+
spirv_id: 0
|
| 493 |
+
name:
|
| 494 |
+
location: 0
|
| 495 |
+
storage_class: 0 # UniformConstant
|
| 496 |
+
semantic:
|
| 497 |
+
decoration_flags: 0x00000000 # NONE
|
| 498 |
+
built_in: 0 # Position
|
| 499 |
+
numeric:
|
| 500 |
+
scalar: { width: 0, signedness: 0 }
|
| 501 |
+
vector: { component_count: 0 }
|
| 502 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 503 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 504 |
+
member_count: 0
|
| 505 |
+
members:
|
| 506 |
+
format: 0 # VK_FORMAT_UNDEFINED
|
| 507 |
+
type_description:
|
| 508 |
+
word_offset: { location: 0 }
|
| 509 |
+
- &iv7
|
| 510 |
+
spirv_id: 15
|
| 511 |
+
name: "int_b"
|
| 512 |
+
location: 5
|
| 513 |
+
storage_class: 1 # Input
|
| 514 |
+
semantic:
|
| 515 |
+
decoration_flags: 0x00000040 # FLAT
|
| 516 |
+
built_in: -1 # ??? (-1)
|
| 517 |
+
numeric:
|
| 518 |
+
scalar: { width: 0, signedness: 0 }
|
| 519 |
+
vector: { component_count: 0 }
|
| 520 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 521 |
+
array: { dims_count: 1, dims: [2,], stride: 0 }
|
| 522 |
+
member_count: 2
|
| 523 |
+
members:
|
| 524 |
+
- *iv5 #
|
| 525 |
+
- *iv6 #
|
| 526 |
+
format: 0 # VK_FORMAT_UNDEFINED
|
| 527 |
+
type_description: *td7
|
| 528 |
+
word_offset: { location: 120 }
|
| 529 |
+
- &iv8
|
| 530 |
+
spirv_id: 0
|
| 531 |
+
name:
|
| 532 |
+
location: 0
|
| 533 |
+
storage_class: 0 # UniformConstant
|
| 534 |
+
semantic:
|
| 535 |
+
decoration_flags: 0x00000000 # NONE
|
| 536 |
+
built_in: 0 # Position
|
| 537 |
+
numeric:
|
| 538 |
+
scalar: { width: 0, signedness: 0 }
|
| 539 |
+
vector: { component_count: 0 }
|
| 540 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 541 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 542 |
+
member_count: 0
|
| 543 |
+
members:
|
| 544 |
+
format: 0 # VK_FORMAT_UNDEFINED
|
| 545 |
+
type_description:
|
| 546 |
+
word_offset: { location: 0 }
|
| 547 |
+
- &iv9
|
| 548 |
+
spirv_id: 0
|
| 549 |
+
name:
|
| 550 |
+
location: 0
|
| 551 |
+
storage_class: 0 # UniformConstant
|
| 552 |
+
semantic:
|
| 553 |
+
decoration_flags: 0x00000000 # NONE
|
| 554 |
+
built_in: 0 # Position
|
| 555 |
+
numeric:
|
| 556 |
+
scalar: { width: 0, signedness: 0 }
|
| 557 |
+
vector: { component_count: 0 }
|
| 558 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 559 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 560 |
+
member_count: 0
|
| 561 |
+
members:
|
| 562 |
+
format: 0 # VK_FORMAT_UNDEFINED
|
| 563 |
+
type_description:
|
| 564 |
+
word_offset: { location: 0 }
|
| 565 |
+
- &iv10
|
| 566 |
+
spirv_id: 0
|
| 567 |
+
name:
|
| 568 |
+
location: 0
|
| 569 |
+
storage_class: 1 # Input
|
| 570 |
+
semantic:
|
| 571 |
+
decoration_flags: 0x00000000 # NONE
|
| 572 |
+
built_in: 0 # Position
|
| 573 |
+
numeric:
|
| 574 |
+
scalar: { width: 0, signedness: 0 }
|
| 575 |
+
vector: { component_count: 0 }
|
| 576 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 577 |
+
array: { dims_count: 1, dims: [2,], stride: 0 }
|
| 578 |
+
member_count: 2
|
| 579 |
+
members:
|
| 580 |
+
- *iv8 #
|
| 581 |
+
- *iv9 #
|
| 582 |
+
format: 0 # VK_FORMAT_UNDEFINED
|
| 583 |
+
type_description: *td10
|
| 584 |
+
word_offset: { location: 0 }
|
| 585 |
+
- &iv11
|
| 586 |
+
spirv_id: 18
|
| 587 |
+
name: "in_c"
|
| 588 |
+
location: 10
|
| 589 |
+
storage_class: 1 # Input
|
| 590 |
+
semantic:
|
| 591 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 592 |
+
built_in: 0 # [Position]
|
| 593 |
+
numeric:
|
| 594 |
+
scalar: { width: 0, signedness: 0 }
|
| 595 |
+
vector: { component_count: 0 }
|
| 596 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 597 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 598 |
+
member_count: 1
|
| 599 |
+
members:
|
| 600 |
+
- *iv10 #
|
| 601 |
+
format: 0 # VK_FORMAT_UNDEFINED
|
| 602 |
+
type_description: *td11
|
| 603 |
+
word_offset: { location: 127 }
|
| 604 |
+
- &iv12
|
| 605 |
+
spirv_id: 0
|
| 606 |
+
name:
|
| 607 |
+
location: 0
|
| 608 |
+
storage_class: 0 # UniformConstant
|
| 609 |
+
semantic:
|
| 610 |
+
decoration_flags: 0x00000000 # NONE
|
| 611 |
+
built_in: 0 # Position
|
| 612 |
+
numeric:
|
| 613 |
+
scalar: { width: 0, signedness: 0 }
|
| 614 |
+
vector: { component_count: 0 }
|
| 615 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 616 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 617 |
+
member_count: 0
|
| 618 |
+
members:
|
| 619 |
+
format: 0 # VK_FORMAT_UNDEFINED
|
| 620 |
+
type_description:
|
| 621 |
+
word_offset: { location: 0 }
|
| 622 |
+
- &iv13
|
| 623 |
+
spirv_id: 0
|
| 624 |
+
name:
|
| 625 |
+
location: 0
|
| 626 |
+
storage_class: 0 # UniformConstant
|
| 627 |
+
semantic:
|
| 628 |
+
decoration_flags: 0x00000000 # NONE
|
| 629 |
+
built_in: 0 # Position
|
| 630 |
+
numeric:
|
| 631 |
+
scalar: { width: 0, signedness: 0 }
|
| 632 |
+
vector: { component_count: 0 }
|
| 633 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 634 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 635 |
+
member_count: 0
|
| 636 |
+
members:
|
| 637 |
+
format: 0 # VK_FORMAT_UNDEFINED
|
| 638 |
+
type_description:
|
| 639 |
+
word_offset: { location: 0 }
|
| 640 |
+
- &iv14
|
| 641 |
+
spirv_id: 21
|
| 642 |
+
name: "int_d"
|
| 643 |
+
location: 14
|
| 644 |
+
storage_class: 1 # Input
|
| 645 |
+
semantic:
|
| 646 |
+
decoration_flags: 0x00000040 # FLAT
|
| 647 |
+
built_in: -1 # ??? (-1)
|
| 648 |
+
numeric:
|
| 649 |
+
scalar: { width: 0, signedness: 0 }
|
| 650 |
+
vector: { component_count: 0 }
|
| 651 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 652 |
+
array: { dims_count: 2, dims: [2,2,], stride: 0 }
|
| 653 |
+
member_count: 2
|
| 654 |
+
members:
|
| 655 |
+
- *iv12 #
|
| 656 |
+
- *iv13 #
|
| 657 |
+
format: 0 # VK_FORMAT_UNDEFINED
|
| 658 |
+
type_description: *td14
|
| 659 |
+
word_offset: { location: 134 }
|
| 660 |
+
- &iv15
|
| 661 |
+
spirv_id: 0
|
| 662 |
+
name:
|
| 663 |
+
location: 0
|
| 664 |
+
storage_class: 0 # UniformConstant
|
| 665 |
+
semantic:
|
| 666 |
+
decoration_flags: 0x00000000 # NONE
|
| 667 |
+
built_in: 0 # Position
|
| 668 |
+
numeric:
|
| 669 |
+
scalar: { width: 0, signedness: 0 }
|
| 670 |
+
vector: { component_count: 0 }
|
| 671 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 672 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 673 |
+
member_count: 0
|
| 674 |
+
members:
|
| 675 |
+
format: 0 # VK_FORMAT_UNDEFINED
|
| 676 |
+
type_description:
|
| 677 |
+
word_offset: { location: 0 }
|
| 678 |
+
- &iv16
|
| 679 |
+
spirv_id: 0
|
| 680 |
+
name:
|
| 681 |
+
location: 0
|
| 682 |
+
storage_class: 1 # Input
|
| 683 |
+
semantic:
|
| 684 |
+
decoration_flags: 0x00000000 # NONE
|
| 685 |
+
built_in: 0 # Position
|
| 686 |
+
numeric:
|
| 687 |
+
scalar: { width: 0, signedness: 0 }
|
| 688 |
+
vector: { component_count: 0 }
|
| 689 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 690 |
+
array: { dims_count: 1, dims: [2,], stride: 0 }
|
| 691 |
+
member_count: 1
|
| 692 |
+
members:
|
| 693 |
+
- *iv15 #
|
| 694 |
+
format: 0 # VK_FORMAT_UNDEFINED
|
| 695 |
+
type_description: *td18
|
| 696 |
+
word_offset: { location: 0 }
|
| 697 |
+
- &iv17
|
| 698 |
+
spirv_id: 26
|
| 699 |
+
name: "in_e"
|
| 700 |
+
location: 22
|
| 701 |
+
storage_class: 1 # Input
|
| 702 |
+
semantic:
|
| 703 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 704 |
+
built_in: 0 # [Position]
|
| 705 |
+
numeric:
|
| 706 |
+
scalar: { width: 0, signedness: 0 }
|
| 707 |
+
vector: { component_count: 0 }
|
| 708 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 709 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 710 |
+
member_count: 1
|
| 711 |
+
members:
|
| 712 |
+
- *iv16 #
|
| 713 |
+
format: 0 # VK_FORMAT_UNDEFINED
|
| 714 |
+
type_description: *td19
|
| 715 |
+
word_offset: { location: 141 }
|
| 716 |
+
- &iv18
|
| 717 |
+
spirv_id: 30
|
| 718 |
+
name: "in_f"
|
| 719 |
+
location: 38
|
| 720 |
+
storage_class: 1 # Input
|
| 721 |
+
semantic:
|
| 722 |
+
decoration_flags: 0x00000040 # FLAT
|
| 723 |
+
built_in: -1 # ??? (-1)
|
| 724 |
+
numeric:
|
| 725 |
+
scalar: { width: 32, signedness: 1 }
|
| 726 |
+
vector: { component_count: 0 }
|
| 727 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 728 |
+
array: { dims_count: 2, dims: [2,2,], stride: 0 }
|
| 729 |
+
member_count: 0
|
| 730 |
+
members:
|
| 731 |
+
format: 99 # VK_FORMAT_R32_SINT
|
| 732 |
+
type_description: *td20
|
| 733 |
+
word_offset: { location: 148 }
|
| 734 |
+
module:
|
| 735 |
+
generator: 8 # Khronos Glslang Reference Front End
|
| 736 |
+
entry_point_name: "main"
|
| 737 |
+
entry_point_id: 4
|
| 738 |
+
source_language: 2 # GLSL
|
| 739 |
+
source_language_version: 450
|
| 740 |
+
spirv_execution_model: 4 # Fragment
|
| 741 |
+
shader_stage: 0x00000010 # PS
|
| 742 |
+
descriptor_binding_count: 0
|
| 743 |
+
descriptor_bindings:
|
| 744 |
+
descriptor_set_count: 0
|
| 745 |
+
descriptor_sets:
|
| 746 |
+
input_variable_count: 6,
|
| 747 |
+
input_variables:
|
| 748 |
+
- *iv4 # "in_a"
|
| 749 |
+
- *iv7 # "int_b"
|
| 750 |
+
- *iv11 # "in_c"
|
| 751 |
+
- *iv14 # "int_d"
|
| 752 |
+
- *iv17 # "in_e"
|
| 753 |
+
- *iv18 # "in_f"
|
| 754 |
+
output_variable_count: 0,
|
| 755 |
+
output_variables:
|
| 756 |
+
push_constant_count: 0,
|
| 757 |
+
push_constants:
|
| 758 |
+
specialization_constant_count: 0,
|
| 759 |
+
specialization_constants:
|
| 760 |
+
entry_point_heap_accesses:
|
| 761 |
+
- entry: "main"
|
| 762 |
+
resource_heap_access_count: 0
|
| 763 |
+
resource_heap_accesses:
|
| 764 |
+
sampler_heap_access_count: 0
|
| 765 |
+
sampler_heap_accesses:
|
| 766 |
+
...
|
third_party/SPIRV-Reflect/tests/glsl/frag_barycentric.glsl
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#version 320 es
|
| 2 |
+
#extension GL_EXT_fragment_shader_barycentric : require
|
| 3 |
+
|
| 4 |
+
precision highp float;
|
| 5 |
+
|
| 6 |
+
layout(location = 0) pervertexEXT in float vertexIDs[3];
|
| 7 |
+
layout(location = 1) pervertexEXT in float vertexIDs2[3];
|
| 8 |
+
|
| 9 |
+
layout(location = 1) out float value;
|
| 10 |
+
|
| 11 |
+
void main () {
|
| 12 |
+
value = (gl_BaryCoordNoPerspEXT.x * vertexIDs[0] +
|
| 13 |
+
gl_BaryCoordNoPerspEXT.y * vertexIDs[1] +
|
| 14 |
+
gl_BaryCoordNoPerspEXT.z * vertexIDs[2]);
|
| 15 |
+
|
| 16 |
+
value += (gl_BaryCoordNoPerspEXT.x * vertexIDs2[0] +
|
| 17 |
+
gl_BaryCoordNoPerspEXT.y * vertexIDs2[1] +
|
| 18 |
+
gl_BaryCoordNoPerspEXT.z * vertexIDs2[2]);
|
| 19 |
+
|
| 20 |
+
}
|
third_party/SPIRV-Reflect/tests/glsl/input_attachment.glsl
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#version 450
|
| 2 |
+
|
| 3 |
+
#extension GL_ARB_separate_shader_objects : enable
|
| 4 |
+
#extension GL_ARB_shading_language_420pack : enable
|
| 5 |
+
|
| 6 |
+
layout (input_attachment_index = 0, set = 0, binding = 0) uniform subpassInput MyInputAttachment0;
|
| 7 |
+
layout (input_attachment_index = 1, set = 0, binding = 1) uniform subpassInput MyInputAttachment1;
|
| 8 |
+
layout (input_attachment_index = 4, set = 0, binding = 2) uniform subpassInput MyInputAttachment4;
|
| 9 |
+
|
| 10 |
+
layout (location = 0) out vec4 oColor;
|
| 11 |
+
|
| 12 |
+
void main() {
|
| 13 |
+
oColor = subpassLoad(MyInputAttachment0) +
|
| 14 |
+
subpassLoad(MyInputAttachment1) +
|
| 15 |
+
subpassLoad(MyInputAttachment4);
|
| 16 |
+
}
|
third_party/SPIRV-Reflect/tests/glsl/input_attachment.spv.yaml
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
%YAML 1.1
|
| 2 |
+
---
|
| 3 |
+
all_type_descriptions:
|
| 4 |
+
- &td0
|
| 5 |
+
id: 10
|
| 6 |
+
op: 25
|
| 7 |
+
type_name:
|
| 8 |
+
struct_member_name:
|
| 9 |
+
storage_class: -1 # NOT APPLICABLE
|
| 10 |
+
type_flags: 0x00010008 # EXTERNAL_IMAGE FLOAT
|
| 11 |
+
decoration_flags: 0x00000000 # NONE
|
| 12 |
+
traits:
|
| 13 |
+
numeric:
|
| 14 |
+
scalar: { width: 32, signedness: 0 }
|
| 15 |
+
vector: { component_count: 0 }
|
| 16 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 17 |
+
image: { dim: 6, depth: 0, arrayed: 0, ms: 0, sampled: 2, image_format: 0 } # dim=SubpassData image_format=Unknown
|
| 18 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 19 |
+
member_count: 0
|
| 20 |
+
members:
|
| 21 |
+
- &td1
|
| 22 |
+
id: 7
|
| 23 |
+
op: 23
|
| 24 |
+
type_name:
|
| 25 |
+
struct_member_name:
|
| 26 |
+
storage_class: -1 # NOT APPLICABLE
|
| 27 |
+
type_flags: 0x00000108 # VECTOR FLOAT
|
| 28 |
+
decoration_flags: 0x00000000 # NONE
|
| 29 |
+
traits:
|
| 30 |
+
numeric:
|
| 31 |
+
scalar: { width: 32, signedness: 0 }
|
| 32 |
+
vector: { component_count: 4 }
|
| 33 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 34 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 35 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 36 |
+
member_count: 0
|
| 37 |
+
members:
|
| 38 |
+
all_block_variables:
|
| 39 |
+
- &bv0
|
| 40 |
+
name:
|
| 41 |
+
offset: 0
|
| 42 |
+
absolute_offset: 0
|
| 43 |
+
size: 0
|
| 44 |
+
padded_size: 0
|
| 45 |
+
decorations: 0x00000000 # NONE
|
| 46 |
+
numeric:
|
| 47 |
+
scalar: { width: 0, signedness: 0 }
|
| 48 |
+
vector: { component_count: 0 }
|
| 49 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 50 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 51 |
+
flags: 0x00000000 # NONE
|
| 52 |
+
member_count: 0
|
| 53 |
+
members:
|
| 54 |
+
type_description:
|
| 55 |
+
- &bv1
|
| 56 |
+
name:
|
| 57 |
+
offset: 0
|
| 58 |
+
absolute_offset: 0
|
| 59 |
+
size: 0
|
| 60 |
+
padded_size: 0
|
| 61 |
+
decorations: 0x00000000 # NONE
|
| 62 |
+
numeric:
|
| 63 |
+
scalar: { width: 0, signedness: 0 }
|
| 64 |
+
vector: { component_count: 0 }
|
| 65 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 66 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 67 |
+
flags: 0x00000000 # NONE
|
| 68 |
+
member_count: 0
|
| 69 |
+
members:
|
| 70 |
+
type_description:
|
| 71 |
+
- &bv2
|
| 72 |
+
name:
|
| 73 |
+
offset: 0
|
| 74 |
+
absolute_offset: 0
|
| 75 |
+
size: 0
|
| 76 |
+
padded_size: 0
|
| 77 |
+
decorations: 0x00000000 # NONE
|
| 78 |
+
numeric:
|
| 79 |
+
scalar: { width: 0, signedness: 0 }
|
| 80 |
+
vector: { component_count: 0 }
|
| 81 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 82 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 83 |
+
flags: 0x00000000 # NONE
|
| 84 |
+
member_count: 0
|
| 85 |
+
members:
|
| 86 |
+
type_description:
|
| 87 |
+
all_descriptor_bindings:
|
| 88 |
+
- &db0
|
| 89 |
+
spirv_id: 12
|
| 90 |
+
name: "MyInputAttachment0"
|
| 91 |
+
binding: 0
|
| 92 |
+
input_attachment_index: 0
|
| 93 |
+
set: 0
|
| 94 |
+
decoration_flags: 0x00000000 # NONE
|
| 95 |
+
descriptor_type: 10 # VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT
|
| 96 |
+
resource_type: 0 # UNDEFINED
|
| 97 |
+
image: { dim: 6, depth: 0, arrayed: 0, ms: 0, sampled: 2, image_format: 0 } # dim=SubpassData image_format=Unknown
|
| 98 |
+
block: *bv0 #
|
| 99 |
+
array: { dims_count: 0, dims: [] }
|
| 100 |
+
accessed: 1
|
| 101 |
+
uav_counter_id: 4294967295
|
| 102 |
+
uav_counter_binding:
|
| 103 |
+
type_description: *td0
|
| 104 |
+
word_offset: { binding: 106, set: 102 }
|
| 105 |
+
- &db1
|
| 106 |
+
spirv_id: 19
|
| 107 |
+
name: "MyInputAttachment1"
|
| 108 |
+
binding: 1
|
| 109 |
+
input_attachment_index: 1
|
| 110 |
+
set: 0
|
| 111 |
+
decoration_flags: 0x00000000 # NONE
|
| 112 |
+
descriptor_type: 10 # VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT
|
| 113 |
+
resource_type: 0 # UNDEFINED
|
| 114 |
+
image: { dim: 6, depth: 0, arrayed: 0, ms: 0, sampled: 2, image_format: 0 } # dim=SubpassData image_format=Unknown
|
| 115 |
+
block: *bv1 #
|
| 116 |
+
array: { dims_count: 0, dims: [] }
|
| 117 |
+
accessed: 1
|
| 118 |
+
uav_counter_id: 4294967295
|
| 119 |
+
uav_counter_binding:
|
| 120 |
+
type_description: *td0
|
| 121 |
+
word_offset: { binding: 118, set: 114 }
|
| 122 |
+
- &db2
|
| 123 |
+
spirv_id: 23
|
| 124 |
+
name: "MyInputAttachment4"
|
| 125 |
+
binding: 2
|
| 126 |
+
input_attachment_index: 4
|
| 127 |
+
set: 0
|
| 128 |
+
decoration_flags: 0x00000000 # NONE
|
| 129 |
+
descriptor_type: 10 # VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT
|
| 130 |
+
resource_type: 0 # UNDEFINED
|
| 131 |
+
image: { dim: 6, depth: 0, arrayed: 0, ms: 0, sampled: 2, image_format: 0 } # dim=SubpassData image_format=Unknown
|
| 132 |
+
block: *bv2 #
|
| 133 |
+
array: { dims_count: 0, dims: [] }
|
| 134 |
+
accessed: 1
|
| 135 |
+
uav_counter_id: 4294967295
|
| 136 |
+
uav_counter_binding:
|
| 137 |
+
type_description: *td0
|
| 138 |
+
word_offset: { binding: 130, set: 126 }
|
| 139 |
+
all_interface_variables:
|
| 140 |
+
- &iv0
|
| 141 |
+
spirv_id: 9
|
| 142 |
+
name: "oColor"
|
| 143 |
+
location: 0
|
| 144 |
+
storage_class: 3 # Output
|
| 145 |
+
semantic:
|
| 146 |
+
decoration_flags: 0x00000000 # NONE
|
| 147 |
+
built_in: -1 # ??? (-1)
|
| 148 |
+
numeric:
|
| 149 |
+
scalar: { width: 32, signedness: 0 }
|
| 150 |
+
vector: { component_count: 4 }
|
| 151 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 152 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 153 |
+
member_count: 0
|
| 154 |
+
members:
|
| 155 |
+
format: 109 # VK_FORMAT_R32G32B32A32_SFLOAT
|
| 156 |
+
type_description: *td1
|
| 157 |
+
word_offset: { location: 98 }
|
| 158 |
+
module:
|
| 159 |
+
generator: 13 # Google Shaderc over Glslang
|
| 160 |
+
entry_point_name: "main"
|
| 161 |
+
entry_point_id: 4
|
| 162 |
+
source_language: 2 # GLSL
|
| 163 |
+
source_language_version: 450
|
| 164 |
+
spirv_execution_model: 4 # Fragment
|
| 165 |
+
shader_stage: 0x00000010 # PS
|
| 166 |
+
descriptor_binding_count: 3
|
| 167 |
+
descriptor_bindings:
|
| 168 |
+
- *db0 # "MyInputAttachment0"
|
| 169 |
+
- *db1 # "MyInputAttachment1"
|
| 170 |
+
- *db2 # "MyInputAttachment4"
|
| 171 |
+
descriptor_set_count: 1
|
| 172 |
+
descriptor_sets:
|
| 173 |
+
- set: 0
|
| 174 |
+
binding_count: 3
|
| 175 |
+
bindings:
|
| 176 |
+
- *db0 # "MyInputAttachment0"
|
| 177 |
+
- *db1 # "MyInputAttachment1"
|
| 178 |
+
- *db2 # "MyInputAttachment4"
|
| 179 |
+
input_variable_count: 0,
|
| 180 |
+
input_variables:
|
| 181 |
+
output_variable_count: 1,
|
| 182 |
+
output_variables:
|
| 183 |
+
- *iv0 # "oColor"
|
| 184 |
+
push_constant_count: 0,
|
| 185 |
+
push_constants:
|
| 186 |
+
specialization_constant_count: 0,
|
| 187 |
+
specialization_constants:
|
| 188 |
+
entry_point_heap_accesses:
|
| 189 |
+
- entry: "main"
|
| 190 |
+
resource_heap_access_count: 0
|
| 191 |
+
resource_heap_accesses:
|
| 192 |
+
sampler_heap_access_count: 0
|
| 193 |
+
sampler_heap_accesses:
|
| 194 |
+
...
|
third_party/SPIRV-Reflect/tests/glsl/io_vars_vs.glsl
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#version 450
|
| 2 |
+
#pragma shader_stage(vertex)
|
| 3 |
+
|
| 4 |
+
layout (location = 0) out vec3 texcoord;
|
| 5 |
+
layout (location = 1) out vec4 colors[4];
|
| 6 |
+
layout (location = 6) out vec3 normals[4][3][2];
|
| 7 |
+
|
| 8 |
+
void main() {
|
| 9 |
+
gl_Position = vec4(gl_VertexIndex, 0, 0, 1);
|
| 10 |
+
texcoord = vec3(0,0,0);
|
| 11 |
+
colors[1] = vec4(0);
|
| 12 |
+
normals[3][2][1] = vec3(0);
|
| 13 |
+
}
|
third_party/SPIRV-Reflect/tests/glsl/io_vars_vs.spv
ADDED
|
Binary file (1.31 kB). View file
|
|
|
third_party/SPIRV-Reflect/tests/glsl/matrix_major_order_glsl.glsl
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
Build with DXC using -Od to preserve unused types:
|
| 3 |
+
|
| 4 |
+
glslangValidator.exe -Od -V -R --aml --amb -e main -S frag -o matrix_major_order_glsl.spv matrix_major_order_glsl.glsl
|
| 5 |
+
|
| 6 |
+
*/
|
| 7 |
+
#version 450
|
| 8 |
+
|
| 9 |
+
//
|
| 10 |
+
// NOTE: GLSL does not have 1xN or Nx1 matrices
|
| 11 |
+
//
|
| 12 |
+
|
| 13 |
+
// -----------------------------------------------------------------------------
|
| 14 |
+
// Matrices without row / column major decoration
|
| 15 |
+
// -----------------------------------------------------------------------------
|
| 16 |
+
|
| 17 |
+
uniform mat2x2 mat_2x2;
|
| 18 |
+
uniform mat2x3 mat_2x3;
|
| 19 |
+
uniform mat2x4 mat_2x4;
|
| 20 |
+
|
| 21 |
+
uniform mat3x2 mat_3x2;
|
| 22 |
+
uniform mat3x3 mat_3x3;
|
| 23 |
+
uniform mat3x4 mat_3x4;
|
| 24 |
+
|
| 25 |
+
uniform mat4x2 mat_4x2;
|
| 26 |
+
uniform mat4x3 mat_4x3;
|
| 27 |
+
uniform mat4x4 mat_4x4;
|
| 28 |
+
|
| 29 |
+
// -----------------------------------------------------------------------------
|
| 30 |
+
// Matrices with row major decoration
|
| 31 |
+
// -----------------------------------------------------------------------------
|
| 32 |
+
|
| 33 |
+
layout(row_major) uniform mat2x2 row_major_my_mat_2x2;
|
| 34 |
+
layout(row_major) uniform mat2x3 row_major_my_mat_2x3;
|
| 35 |
+
layout(row_major) uniform mat2x4 row_major_my_mat_2x4;
|
| 36 |
+
|
| 37 |
+
layout(row_major) uniform mat3x2 row_major_my_mat_3x2;
|
| 38 |
+
layout(row_major) uniform mat3x3 row_major_my_mat_3x3;
|
| 39 |
+
layout(row_major) uniform mat3x4 row_major_my_mat_3x4;
|
| 40 |
+
|
| 41 |
+
layout(row_major) uniform mat4x2 row_major_my_mat_4x2;
|
| 42 |
+
layout(row_major) uniform mat4x3 row_major_my_mat_4x3;
|
| 43 |
+
layout(row_major) uniform mat4x4 row_major_my_mat_4x4;
|
| 44 |
+
|
| 45 |
+
// -----------------------------------------------------------------------------
|
| 46 |
+
// Matrices with column major decoration
|
| 47 |
+
// -----------------------------------------------------------------------------
|
| 48 |
+
|
| 49 |
+
layout(column_major) uniform mat2x2 column_major_my_mat_2x2;
|
| 50 |
+
layout(column_major) uniform mat2x3 column_major_my_mat_2x3;
|
| 51 |
+
layout(column_major) uniform mat2x4 column_major_my_mat_2x4;
|
| 52 |
+
|
| 53 |
+
layout(column_major) uniform mat3x2 column_major_my_mat_3x2;
|
| 54 |
+
layout(column_major) uniform mat3x3 column_major_my_mat_3x3;
|
| 55 |
+
layout(column_major) uniform mat3x4 column_major_my_mat_3x4;
|
| 56 |
+
|
| 57 |
+
layout(column_major) uniform mat4x2 column_major_my_mat_4x2;
|
| 58 |
+
layout(column_major) uniform mat4x3 column_major_my_mat_4x3;
|
| 59 |
+
layout(column_major) uniform mat4x4 column_major_my_mat_4x4;
|
| 60 |
+
|
| 61 |
+
layout(location = 1) in vec4 my_input;
|
| 62 |
+
layout(location = 0) out vec4 my_output;
|
| 63 |
+
|
| 64 |
+
void main()
|
| 65 |
+
{
|
| 66 |
+
my_output = my_input;
|
| 67 |
+
}
|
third_party/SPIRV-Reflect/tests/glsl/matrix_major_order_glsl.spv
ADDED
|
Binary file (3.13 kB). View file
|
|
|
third_party/SPIRV-Reflect/tests/glsl/matrix_major_order_glsl.spv.yaml
ADDED
|
@@ -0,0 +1,1088 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
%YAML 1.1
|
| 2 |
+
---
|
| 3 |
+
all_type_descriptions:
|
| 4 |
+
- &td0
|
| 5 |
+
id: 14
|
| 6 |
+
op: 24
|
| 7 |
+
type_name:
|
| 8 |
+
struct_member_name: "mat_2x2"
|
| 9 |
+
storage_class: 0 # UniformConstant
|
| 10 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 11 |
+
decoration_flags: 0x00000000 # NONE
|
| 12 |
+
traits:
|
| 13 |
+
numeric:
|
| 14 |
+
scalar: { width: 32, signedness: 0 }
|
| 15 |
+
vector: { component_count: 2 }
|
| 16 |
+
matrix: { column_count: 2, row_count: 2, stride: 16 }
|
| 17 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 18 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 19 |
+
member_count: 0
|
| 20 |
+
members:
|
| 21 |
+
- &td1
|
| 22 |
+
id: 16
|
| 23 |
+
op: 24
|
| 24 |
+
type_name:
|
| 25 |
+
struct_member_name: "mat_2x3"
|
| 26 |
+
storage_class: 0 # UniformConstant
|
| 27 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 28 |
+
decoration_flags: 0x00000000 # NONE
|
| 29 |
+
traits:
|
| 30 |
+
numeric:
|
| 31 |
+
scalar: { width: 32, signedness: 0 }
|
| 32 |
+
vector: { component_count: 3 }
|
| 33 |
+
matrix: { column_count: 2, row_count: 3, stride: 16 }
|
| 34 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 35 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 36 |
+
member_count: 0
|
| 37 |
+
members:
|
| 38 |
+
- &td2
|
| 39 |
+
id: 17
|
| 40 |
+
op: 24
|
| 41 |
+
type_name:
|
| 42 |
+
struct_member_name: "mat_2x4"
|
| 43 |
+
storage_class: 0 # UniformConstant
|
| 44 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 45 |
+
decoration_flags: 0x00000000 # NONE
|
| 46 |
+
traits:
|
| 47 |
+
numeric:
|
| 48 |
+
scalar: { width: 32, signedness: 0 }
|
| 49 |
+
vector: { component_count: 4 }
|
| 50 |
+
matrix: { column_count: 2, row_count: 4, stride: 16 }
|
| 51 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 52 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 53 |
+
member_count: 0
|
| 54 |
+
members:
|
| 55 |
+
- &td3
|
| 56 |
+
id: 18
|
| 57 |
+
op: 24
|
| 58 |
+
type_name:
|
| 59 |
+
struct_member_name: "mat_3x2"
|
| 60 |
+
storage_class: 0 # UniformConstant
|
| 61 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 62 |
+
decoration_flags: 0x00000000 # NONE
|
| 63 |
+
traits:
|
| 64 |
+
numeric:
|
| 65 |
+
scalar: { width: 32, signedness: 0 }
|
| 66 |
+
vector: { component_count: 2 }
|
| 67 |
+
matrix: { column_count: 3, row_count: 2, stride: 16 }
|
| 68 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 69 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 70 |
+
member_count: 0
|
| 71 |
+
members:
|
| 72 |
+
- &td4
|
| 73 |
+
id: 19
|
| 74 |
+
op: 24
|
| 75 |
+
type_name:
|
| 76 |
+
struct_member_name: "mat_3x3"
|
| 77 |
+
storage_class: 0 # UniformConstant
|
| 78 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 79 |
+
decoration_flags: 0x00000000 # NONE
|
| 80 |
+
traits:
|
| 81 |
+
numeric:
|
| 82 |
+
scalar: { width: 32, signedness: 0 }
|
| 83 |
+
vector: { component_count: 3 }
|
| 84 |
+
matrix: { column_count: 3, row_count: 3, stride: 16 }
|
| 85 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 86 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 87 |
+
member_count: 0
|
| 88 |
+
members:
|
| 89 |
+
- &td5
|
| 90 |
+
id: 20
|
| 91 |
+
op: 24
|
| 92 |
+
type_name:
|
| 93 |
+
struct_member_name: "mat_3x4"
|
| 94 |
+
storage_class: 0 # UniformConstant
|
| 95 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 96 |
+
decoration_flags: 0x00000000 # NONE
|
| 97 |
+
traits:
|
| 98 |
+
numeric:
|
| 99 |
+
scalar: { width: 32, signedness: 0 }
|
| 100 |
+
vector: { component_count: 4 }
|
| 101 |
+
matrix: { column_count: 3, row_count: 4, stride: 16 }
|
| 102 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 103 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 104 |
+
member_count: 0
|
| 105 |
+
members:
|
| 106 |
+
- &td6
|
| 107 |
+
id: 21
|
| 108 |
+
op: 24
|
| 109 |
+
type_name:
|
| 110 |
+
struct_member_name: "mat_4x2"
|
| 111 |
+
storage_class: 0 # UniformConstant
|
| 112 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 113 |
+
decoration_flags: 0x00000000 # NONE
|
| 114 |
+
traits:
|
| 115 |
+
numeric:
|
| 116 |
+
scalar: { width: 32, signedness: 0 }
|
| 117 |
+
vector: { component_count: 2 }
|
| 118 |
+
matrix: { column_count: 4, row_count: 2, stride: 16 }
|
| 119 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 120 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 121 |
+
member_count: 0
|
| 122 |
+
members:
|
| 123 |
+
- &td7
|
| 124 |
+
id: 22
|
| 125 |
+
op: 24
|
| 126 |
+
type_name:
|
| 127 |
+
struct_member_name: "mat_4x3"
|
| 128 |
+
storage_class: 0 # UniformConstant
|
| 129 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 130 |
+
decoration_flags: 0x00000000 # NONE
|
| 131 |
+
traits:
|
| 132 |
+
numeric:
|
| 133 |
+
scalar: { width: 32, signedness: 0 }
|
| 134 |
+
vector: { component_count: 3 }
|
| 135 |
+
matrix: { column_count: 4, row_count: 3, stride: 16 }
|
| 136 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 137 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 138 |
+
member_count: 0
|
| 139 |
+
members:
|
| 140 |
+
- &td8
|
| 141 |
+
id: 23
|
| 142 |
+
op: 24
|
| 143 |
+
type_name:
|
| 144 |
+
struct_member_name: "mat_4x4"
|
| 145 |
+
storage_class: 0 # UniformConstant
|
| 146 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 147 |
+
decoration_flags: 0x00000000 # NONE
|
| 148 |
+
traits:
|
| 149 |
+
numeric:
|
| 150 |
+
scalar: { width: 32, signedness: 0 }
|
| 151 |
+
vector: { component_count: 4 }
|
| 152 |
+
matrix: { column_count: 4, row_count: 4, stride: 16 }
|
| 153 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 154 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 155 |
+
member_count: 0
|
| 156 |
+
members:
|
| 157 |
+
- &td9
|
| 158 |
+
id: 14
|
| 159 |
+
op: 24
|
| 160 |
+
type_name:
|
| 161 |
+
struct_member_name: "row_major_my_mat_2x2"
|
| 162 |
+
storage_class: 0 # UniformConstant
|
| 163 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 164 |
+
decoration_flags: 0x00000000 # NONE
|
| 165 |
+
traits:
|
| 166 |
+
numeric:
|
| 167 |
+
scalar: { width: 32, signedness: 0 }
|
| 168 |
+
vector: { component_count: 2 }
|
| 169 |
+
matrix: { column_count: 2, row_count: 2, stride: 16 }
|
| 170 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 171 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 172 |
+
member_count: 0
|
| 173 |
+
members:
|
| 174 |
+
- &td10
|
| 175 |
+
id: 16
|
| 176 |
+
op: 24
|
| 177 |
+
type_name:
|
| 178 |
+
struct_member_name: "row_major_my_mat_2x3"
|
| 179 |
+
storage_class: 0 # UniformConstant
|
| 180 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 181 |
+
decoration_flags: 0x00000000 # NONE
|
| 182 |
+
traits:
|
| 183 |
+
numeric:
|
| 184 |
+
scalar: { width: 32, signedness: 0 }
|
| 185 |
+
vector: { component_count: 3 }
|
| 186 |
+
matrix: { column_count: 2, row_count: 3, stride: 16 }
|
| 187 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 188 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 189 |
+
member_count: 0
|
| 190 |
+
members:
|
| 191 |
+
- &td11
|
| 192 |
+
id: 17
|
| 193 |
+
op: 24
|
| 194 |
+
type_name:
|
| 195 |
+
struct_member_name: "row_major_my_mat_2x4"
|
| 196 |
+
storage_class: 0 # UniformConstant
|
| 197 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 198 |
+
decoration_flags: 0x00000000 # NONE
|
| 199 |
+
traits:
|
| 200 |
+
numeric:
|
| 201 |
+
scalar: { width: 32, signedness: 0 }
|
| 202 |
+
vector: { component_count: 4 }
|
| 203 |
+
matrix: { column_count: 2, row_count: 4, stride: 16 }
|
| 204 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 205 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 206 |
+
member_count: 0
|
| 207 |
+
members:
|
| 208 |
+
- &td12
|
| 209 |
+
id: 18
|
| 210 |
+
op: 24
|
| 211 |
+
type_name:
|
| 212 |
+
struct_member_name: "row_major_my_mat_3x2"
|
| 213 |
+
storage_class: 0 # UniformConstant
|
| 214 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 215 |
+
decoration_flags: 0x00000000 # NONE
|
| 216 |
+
traits:
|
| 217 |
+
numeric:
|
| 218 |
+
scalar: { width: 32, signedness: 0 }
|
| 219 |
+
vector: { component_count: 2 }
|
| 220 |
+
matrix: { column_count: 3, row_count: 2, stride: 16 }
|
| 221 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 222 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 223 |
+
member_count: 0
|
| 224 |
+
members:
|
| 225 |
+
- &td13
|
| 226 |
+
id: 19
|
| 227 |
+
op: 24
|
| 228 |
+
type_name:
|
| 229 |
+
struct_member_name: "row_major_my_mat_3x3"
|
| 230 |
+
storage_class: 0 # UniformConstant
|
| 231 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 232 |
+
decoration_flags: 0x00000000 # NONE
|
| 233 |
+
traits:
|
| 234 |
+
numeric:
|
| 235 |
+
scalar: { width: 32, signedness: 0 }
|
| 236 |
+
vector: { component_count: 3 }
|
| 237 |
+
matrix: { column_count: 3, row_count: 3, stride: 16 }
|
| 238 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 239 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 240 |
+
member_count: 0
|
| 241 |
+
members:
|
| 242 |
+
- &td14
|
| 243 |
+
id: 20
|
| 244 |
+
op: 24
|
| 245 |
+
type_name:
|
| 246 |
+
struct_member_name: "row_major_my_mat_3x4"
|
| 247 |
+
storage_class: 0 # UniformConstant
|
| 248 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 249 |
+
decoration_flags: 0x00000000 # NONE
|
| 250 |
+
traits:
|
| 251 |
+
numeric:
|
| 252 |
+
scalar: { width: 32, signedness: 0 }
|
| 253 |
+
vector: { component_count: 4 }
|
| 254 |
+
matrix: { column_count: 3, row_count: 4, stride: 16 }
|
| 255 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 256 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 257 |
+
member_count: 0
|
| 258 |
+
members:
|
| 259 |
+
- &td15
|
| 260 |
+
id: 21
|
| 261 |
+
op: 24
|
| 262 |
+
type_name:
|
| 263 |
+
struct_member_name: "row_major_my_mat_4x2"
|
| 264 |
+
storage_class: 0 # UniformConstant
|
| 265 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 266 |
+
decoration_flags: 0x00000000 # NONE
|
| 267 |
+
traits:
|
| 268 |
+
numeric:
|
| 269 |
+
scalar: { width: 32, signedness: 0 }
|
| 270 |
+
vector: { component_count: 2 }
|
| 271 |
+
matrix: { column_count: 4, row_count: 2, stride: 16 }
|
| 272 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 273 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 274 |
+
member_count: 0
|
| 275 |
+
members:
|
| 276 |
+
- &td16
|
| 277 |
+
id: 22
|
| 278 |
+
op: 24
|
| 279 |
+
type_name:
|
| 280 |
+
struct_member_name: "row_major_my_mat_4x3"
|
| 281 |
+
storage_class: 0 # UniformConstant
|
| 282 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 283 |
+
decoration_flags: 0x00000000 # NONE
|
| 284 |
+
traits:
|
| 285 |
+
numeric:
|
| 286 |
+
scalar: { width: 32, signedness: 0 }
|
| 287 |
+
vector: { component_count: 3 }
|
| 288 |
+
matrix: { column_count: 4, row_count: 3, stride: 16 }
|
| 289 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 290 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 291 |
+
member_count: 0
|
| 292 |
+
members:
|
| 293 |
+
- &td17
|
| 294 |
+
id: 23
|
| 295 |
+
op: 24
|
| 296 |
+
type_name:
|
| 297 |
+
struct_member_name: "row_major_my_mat_4x4"
|
| 298 |
+
storage_class: 0 # UniformConstant
|
| 299 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 300 |
+
decoration_flags: 0x00000000 # NONE
|
| 301 |
+
traits:
|
| 302 |
+
numeric:
|
| 303 |
+
scalar: { width: 32, signedness: 0 }
|
| 304 |
+
vector: { component_count: 4 }
|
| 305 |
+
matrix: { column_count: 4, row_count: 4, stride: 16 }
|
| 306 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 307 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 308 |
+
member_count: 0
|
| 309 |
+
members:
|
| 310 |
+
- &td18
|
| 311 |
+
id: 14
|
| 312 |
+
op: 24
|
| 313 |
+
type_name:
|
| 314 |
+
struct_member_name: "column_major_my_mat_2x2"
|
| 315 |
+
storage_class: 0 # UniformConstant
|
| 316 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 317 |
+
decoration_flags: 0x00000000 # NONE
|
| 318 |
+
traits:
|
| 319 |
+
numeric:
|
| 320 |
+
scalar: { width: 32, signedness: 0 }
|
| 321 |
+
vector: { component_count: 2 }
|
| 322 |
+
matrix: { column_count: 2, row_count: 2, stride: 16 }
|
| 323 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 324 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 325 |
+
member_count: 0
|
| 326 |
+
members:
|
| 327 |
+
- &td19
|
| 328 |
+
id: 16
|
| 329 |
+
op: 24
|
| 330 |
+
type_name:
|
| 331 |
+
struct_member_name: "column_major_my_mat_2x3"
|
| 332 |
+
storage_class: 0 # UniformConstant
|
| 333 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 334 |
+
decoration_flags: 0x00000000 # NONE
|
| 335 |
+
traits:
|
| 336 |
+
numeric:
|
| 337 |
+
scalar: { width: 32, signedness: 0 }
|
| 338 |
+
vector: { component_count: 3 }
|
| 339 |
+
matrix: { column_count: 2, row_count: 3, stride: 16 }
|
| 340 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 341 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 342 |
+
member_count: 0
|
| 343 |
+
members:
|
| 344 |
+
- &td20
|
| 345 |
+
id: 17
|
| 346 |
+
op: 24
|
| 347 |
+
type_name:
|
| 348 |
+
struct_member_name: "column_major_my_mat_2x4"
|
| 349 |
+
storage_class: 0 # UniformConstant
|
| 350 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 351 |
+
decoration_flags: 0x00000000 # NONE
|
| 352 |
+
traits:
|
| 353 |
+
numeric:
|
| 354 |
+
scalar: { width: 32, signedness: 0 }
|
| 355 |
+
vector: { component_count: 4 }
|
| 356 |
+
matrix: { column_count: 2, row_count: 4, stride: 16 }
|
| 357 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 358 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 359 |
+
member_count: 0
|
| 360 |
+
members:
|
| 361 |
+
- &td21
|
| 362 |
+
id: 18
|
| 363 |
+
op: 24
|
| 364 |
+
type_name:
|
| 365 |
+
struct_member_name: "column_major_my_mat_3x2"
|
| 366 |
+
storage_class: 0 # UniformConstant
|
| 367 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 368 |
+
decoration_flags: 0x00000000 # NONE
|
| 369 |
+
traits:
|
| 370 |
+
numeric:
|
| 371 |
+
scalar: { width: 32, signedness: 0 }
|
| 372 |
+
vector: { component_count: 2 }
|
| 373 |
+
matrix: { column_count: 3, row_count: 2, stride: 16 }
|
| 374 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 375 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 376 |
+
member_count: 0
|
| 377 |
+
members:
|
| 378 |
+
- &td22
|
| 379 |
+
id: 19
|
| 380 |
+
op: 24
|
| 381 |
+
type_name:
|
| 382 |
+
struct_member_name: "column_major_my_mat_3x3"
|
| 383 |
+
storage_class: 0 # UniformConstant
|
| 384 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 385 |
+
decoration_flags: 0x00000000 # NONE
|
| 386 |
+
traits:
|
| 387 |
+
numeric:
|
| 388 |
+
scalar: { width: 32, signedness: 0 }
|
| 389 |
+
vector: { component_count: 3 }
|
| 390 |
+
matrix: { column_count: 3, row_count: 3, stride: 16 }
|
| 391 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 392 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 393 |
+
member_count: 0
|
| 394 |
+
members:
|
| 395 |
+
- &td23
|
| 396 |
+
id: 20
|
| 397 |
+
op: 24
|
| 398 |
+
type_name:
|
| 399 |
+
struct_member_name: "column_major_my_mat_3x4"
|
| 400 |
+
storage_class: 0 # UniformConstant
|
| 401 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 402 |
+
decoration_flags: 0x00000000 # NONE
|
| 403 |
+
traits:
|
| 404 |
+
numeric:
|
| 405 |
+
scalar: { width: 32, signedness: 0 }
|
| 406 |
+
vector: { component_count: 4 }
|
| 407 |
+
matrix: { column_count: 3, row_count: 4, stride: 16 }
|
| 408 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 409 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 410 |
+
member_count: 0
|
| 411 |
+
members:
|
| 412 |
+
- &td24
|
| 413 |
+
id: 21
|
| 414 |
+
op: 24
|
| 415 |
+
type_name:
|
| 416 |
+
struct_member_name: "column_major_my_mat_4x2"
|
| 417 |
+
storage_class: 0 # UniformConstant
|
| 418 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 419 |
+
decoration_flags: 0x00000000 # NONE
|
| 420 |
+
traits:
|
| 421 |
+
numeric:
|
| 422 |
+
scalar: { width: 32, signedness: 0 }
|
| 423 |
+
vector: { component_count: 2 }
|
| 424 |
+
matrix: { column_count: 4, row_count: 2, stride: 16 }
|
| 425 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 426 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 427 |
+
member_count: 0
|
| 428 |
+
members:
|
| 429 |
+
- &td25
|
| 430 |
+
id: 22
|
| 431 |
+
op: 24
|
| 432 |
+
type_name:
|
| 433 |
+
struct_member_name: "column_major_my_mat_4x3"
|
| 434 |
+
storage_class: 0 # UniformConstant
|
| 435 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 436 |
+
decoration_flags: 0x00000000 # NONE
|
| 437 |
+
traits:
|
| 438 |
+
numeric:
|
| 439 |
+
scalar: { width: 32, signedness: 0 }
|
| 440 |
+
vector: { component_count: 3 }
|
| 441 |
+
matrix: { column_count: 4, row_count: 3, stride: 16 }
|
| 442 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 443 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 444 |
+
member_count: 0
|
| 445 |
+
members:
|
| 446 |
+
- &td26
|
| 447 |
+
id: 23
|
| 448 |
+
op: 24
|
| 449 |
+
type_name:
|
| 450 |
+
struct_member_name: "column_major_my_mat_4x4"
|
| 451 |
+
storage_class: 0 # UniformConstant
|
| 452 |
+
type_flags: 0x00000308 # MATRIX VECTOR FLOAT
|
| 453 |
+
decoration_flags: 0x00000000 # NONE
|
| 454 |
+
traits:
|
| 455 |
+
numeric:
|
| 456 |
+
scalar: { width: 32, signedness: 0 }
|
| 457 |
+
vector: { component_count: 4 }
|
| 458 |
+
matrix: { column_count: 4, row_count: 4, stride: 16 }
|
| 459 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 460 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 461 |
+
member_count: 0
|
| 462 |
+
members:
|
| 463 |
+
- &td27
|
| 464 |
+
id: 24
|
| 465 |
+
op: 30
|
| 466 |
+
type_name: "gl_DefaultUniformBlock"
|
| 467 |
+
struct_member_name:
|
| 468 |
+
storage_class: -1 # NOT APPLICABLE
|
| 469 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 470 |
+
decoration_flags: 0x00000001 # BLOCK
|
| 471 |
+
traits:
|
| 472 |
+
numeric:
|
| 473 |
+
scalar: { width: 0, signedness: 0 }
|
| 474 |
+
vector: { component_count: 0 }
|
| 475 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 476 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 477 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 478 |
+
member_count: 27
|
| 479 |
+
members:
|
| 480 |
+
- *td0
|
| 481 |
+
- *td1
|
| 482 |
+
- *td2
|
| 483 |
+
- *td3
|
| 484 |
+
- *td4
|
| 485 |
+
- *td5
|
| 486 |
+
- *td6
|
| 487 |
+
- *td7
|
| 488 |
+
- *td8
|
| 489 |
+
- *td9
|
| 490 |
+
- *td10
|
| 491 |
+
- *td11
|
| 492 |
+
- *td12
|
| 493 |
+
- *td13
|
| 494 |
+
- *td14
|
| 495 |
+
- *td15
|
| 496 |
+
- *td16
|
| 497 |
+
- *td17
|
| 498 |
+
- *td18
|
| 499 |
+
- *td19
|
| 500 |
+
- *td20
|
| 501 |
+
- *td21
|
| 502 |
+
- *td22
|
| 503 |
+
- *td23
|
| 504 |
+
- *td24
|
| 505 |
+
- *td25
|
| 506 |
+
- *td26
|
| 507 |
+
- &td28
|
| 508 |
+
id: 7
|
| 509 |
+
op: 23
|
| 510 |
+
type_name:
|
| 511 |
+
struct_member_name:
|
| 512 |
+
storage_class: -1 # NOT APPLICABLE
|
| 513 |
+
type_flags: 0x00000108 # VECTOR FLOAT
|
| 514 |
+
decoration_flags: 0x00000000 # NONE
|
| 515 |
+
traits:
|
| 516 |
+
numeric:
|
| 517 |
+
scalar: { width: 32, signedness: 0 }
|
| 518 |
+
vector: { component_count: 4 }
|
| 519 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 520 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 521 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 522 |
+
member_count: 0
|
| 523 |
+
members:
|
| 524 |
+
all_block_variables:
|
| 525 |
+
- &bv0
|
| 526 |
+
name: "mat_2x2"
|
| 527 |
+
offset: 0
|
| 528 |
+
absolute_offset: 0
|
| 529 |
+
size: 32
|
| 530 |
+
padded_size: 32
|
| 531 |
+
decorations: 0x00000008 # COLUMN_MAJOR
|
| 532 |
+
numeric:
|
| 533 |
+
scalar: { width: 32, signedness: 0 }
|
| 534 |
+
vector: { component_count: 2 }
|
| 535 |
+
matrix: { column_count: 2, row_count: 2, stride: 16 }
|
| 536 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 537 |
+
flags: 0x00000001 # UNUSED
|
| 538 |
+
member_count: 0
|
| 539 |
+
members:
|
| 540 |
+
type_description: *td0
|
| 541 |
+
- &bv1
|
| 542 |
+
name: "mat_2x3"
|
| 543 |
+
offset: 32
|
| 544 |
+
absolute_offset: 32
|
| 545 |
+
size: 32
|
| 546 |
+
padded_size: 32
|
| 547 |
+
decorations: 0x00000008 # COLUMN_MAJOR
|
| 548 |
+
numeric:
|
| 549 |
+
scalar: { width: 32, signedness: 0 }
|
| 550 |
+
vector: { component_count: 3 }
|
| 551 |
+
matrix: { column_count: 2, row_count: 3, stride: 16 }
|
| 552 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 553 |
+
flags: 0x00000001 # UNUSED
|
| 554 |
+
member_count: 0
|
| 555 |
+
members:
|
| 556 |
+
type_description: *td1
|
| 557 |
+
- &bv2
|
| 558 |
+
name: "mat_2x4"
|
| 559 |
+
offset: 64
|
| 560 |
+
absolute_offset: 64
|
| 561 |
+
size: 32
|
| 562 |
+
padded_size: 32
|
| 563 |
+
decorations: 0x00000008 # COLUMN_MAJOR
|
| 564 |
+
numeric:
|
| 565 |
+
scalar: { width: 32, signedness: 0 }
|
| 566 |
+
vector: { component_count: 4 }
|
| 567 |
+
matrix: { column_count: 2, row_count: 4, stride: 16 }
|
| 568 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 569 |
+
flags: 0x00000001 # UNUSED
|
| 570 |
+
member_count: 0
|
| 571 |
+
members:
|
| 572 |
+
type_description: *td2
|
| 573 |
+
- &bv3
|
| 574 |
+
name: "mat_3x2"
|
| 575 |
+
offset: 96
|
| 576 |
+
absolute_offset: 96
|
| 577 |
+
size: 48
|
| 578 |
+
padded_size: 48
|
| 579 |
+
decorations: 0x00000008 # COLUMN_MAJOR
|
| 580 |
+
numeric:
|
| 581 |
+
scalar: { width: 32, signedness: 0 }
|
| 582 |
+
vector: { component_count: 2 }
|
| 583 |
+
matrix: { column_count: 3, row_count: 2, stride: 16 }
|
| 584 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 585 |
+
flags: 0x00000001 # UNUSED
|
| 586 |
+
member_count: 0
|
| 587 |
+
members:
|
| 588 |
+
type_description: *td3
|
| 589 |
+
- &bv4
|
| 590 |
+
name: "mat_3x3"
|
| 591 |
+
offset: 144
|
| 592 |
+
absolute_offset: 144
|
| 593 |
+
size: 48
|
| 594 |
+
padded_size: 48
|
| 595 |
+
decorations: 0x00000008 # COLUMN_MAJOR
|
| 596 |
+
numeric:
|
| 597 |
+
scalar: { width: 32, signedness: 0 }
|
| 598 |
+
vector: { component_count: 3 }
|
| 599 |
+
matrix: { column_count: 3, row_count: 3, stride: 16 }
|
| 600 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 601 |
+
flags: 0x00000001 # UNUSED
|
| 602 |
+
member_count: 0
|
| 603 |
+
members:
|
| 604 |
+
type_description: *td4
|
| 605 |
+
- &bv5
|
| 606 |
+
name: "mat_3x4"
|
| 607 |
+
offset: 192
|
| 608 |
+
absolute_offset: 192
|
| 609 |
+
size: 48
|
| 610 |
+
padded_size: 48
|
| 611 |
+
decorations: 0x00000008 # COLUMN_MAJOR
|
| 612 |
+
numeric:
|
| 613 |
+
scalar: { width: 32, signedness: 0 }
|
| 614 |
+
vector: { component_count: 4 }
|
| 615 |
+
matrix: { column_count: 3, row_count: 4, stride: 16 }
|
| 616 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 617 |
+
flags: 0x00000001 # UNUSED
|
| 618 |
+
member_count: 0
|
| 619 |
+
members:
|
| 620 |
+
type_description: *td5
|
| 621 |
+
- &bv6
|
| 622 |
+
name: "mat_4x2"
|
| 623 |
+
offset: 240
|
| 624 |
+
absolute_offset: 240
|
| 625 |
+
size: 64
|
| 626 |
+
padded_size: 64
|
| 627 |
+
decorations: 0x00000008 # COLUMN_MAJOR
|
| 628 |
+
numeric:
|
| 629 |
+
scalar: { width: 32, signedness: 0 }
|
| 630 |
+
vector: { component_count: 2 }
|
| 631 |
+
matrix: { column_count: 4, row_count: 2, stride: 16 }
|
| 632 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 633 |
+
flags: 0x00000001 # UNUSED
|
| 634 |
+
member_count: 0
|
| 635 |
+
members:
|
| 636 |
+
type_description: *td6
|
| 637 |
+
- &bv7
|
| 638 |
+
name: "mat_4x3"
|
| 639 |
+
offset: 304
|
| 640 |
+
absolute_offset: 304
|
| 641 |
+
size: 64
|
| 642 |
+
padded_size: 64
|
| 643 |
+
decorations: 0x00000008 # COLUMN_MAJOR
|
| 644 |
+
numeric:
|
| 645 |
+
scalar: { width: 32, signedness: 0 }
|
| 646 |
+
vector: { component_count: 3 }
|
| 647 |
+
matrix: { column_count: 4, row_count: 3, stride: 16 }
|
| 648 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 649 |
+
flags: 0x00000001 # UNUSED
|
| 650 |
+
member_count: 0
|
| 651 |
+
members:
|
| 652 |
+
type_description: *td7
|
| 653 |
+
- &bv8
|
| 654 |
+
name: "mat_4x4"
|
| 655 |
+
offset: 368
|
| 656 |
+
absolute_offset: 368
|
| 657 |
+
size: 64
|
| 658 |
+
padded_size: 64
|
| 659 |
+
decorations: 0x00000008 # COLUMN_MAJOR
|
| 660 |
+
numeric:
|
| 661 |
+
scalar: { width: 32, signedness: 0 }
|
| 662 |
+
vector: { component_count: 4 }
|
| 663 |
+
matrix: { column_count: 4, row_count: 4, stride: 16 }
|
| 664 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 665 |
+
flags: 0x00000001 # UNUSED
|
| 666 |
+
member_count: 0
|
| 667 |
+
members:
|
| 668 |
+
type_description: *td8
|
| 669 |
+
- &bv9
|
| 670 |
+
name: "row_major_my_mat_2x2"
|
| 671 |
+
offset: 432
|
| 672 |
+
absolute_offset: 432
|
| 673 |
+
size: 32
|
| 674 |
+
padded_size: 32
|
| 675 |
+
decorations: 0x00000004 # ROW_MAJOR
|
| 676 |
+
numeric:
|
| 677 |
+
scalar: { width: 32, signedness: 0 }
|
| 678 |
+
vector: { component_count: 2 }
|
| 679 |
+
matrix: { column_count: 2, row_count: 2, stride: 16 }
|
| 680 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 681 |
+
flags: 0x00000001 # UNUSED
|
| 682 |
+
member_count: 0
|
| 683 |
+
members:
|
| 684 |
+
type_description: *td9
|
| 685 |
+
- &bv10
|
| 686 |
+
name: "row_major_my_mat_2x3"
|
| 687 |
+
offset: 464
|
| 688 |
+
absolute_offset: 464
|
| 689 |
+
size: 48
|
| 690 |
+
padded_size: 48
|
| 691 |
+
decorations: 0x00000004 # ROW_MAJOR
|
| 692 |
+
numeric:
|
| 693 |
+
scalar: { width: 32, signedness: 0 }
|
| 694 |
+
vector: { component_count: 3 }
|
| 695 |
+
matrix: { column_count: 2, row_count: 3, stride: 16 }
|
| 696 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 697 |
+
flags: 0x00000001 # UNUSED
|
| 698 |
+
member_count: 0
|
| 699 |
+
members:
|
| 700 |
+
type_description: *td10
|
| 701 |
+
- &bv11
|
| 702 |
+
name: "row_major_my_mat_2x4"
|
| 703 |
+
offset: 512
|
| 704 |
+
absolute_offset: 512
|
| 705 |
+
size: 64
|
| 706 |
+
padded_size: 64
|
| 707 |
+
decorations: 0x00000004 # ROW_MAJOR
|
| 708 |
+
numeric:
|
| 709 |
+
scalar: { width: 32, signedness: 0 }
|
| 710 |
+
vector: { component_count: 4 }
|
| 711 |
+
matrix: { column_count: 2, row_count: 4, stride: 16 }
|
| 712 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 713 |
+
flags: 0x00000001 # UNUSED
|
| 714 |
+
member_count: 0
|
| 715 |
+
members:
|
| 716 |
+
type_description: *td11
|
| 717 |
+
- &bv12
|
| 718 |
+
name: "row_major_my_mat_3x2"
|
| 719 |
+
offset: 576
|
| 720 |
+
absolute_offset: 576
|
| 721 |
+
size: 32
|
| 722 |
+
padded_size: 32
|
| 723 |
+
decorations: 0x00000004 # ROW_MAJOR
|
| 724 |
+
numeric:
|
| 725 |
+
scalar: { width: 32, signedness: 0 }
|
| 726 |
+
vector: { component_count: 2 }
|
| 727 |
+
matrix: { column_count: 3, row_count: 2, stride: 16 }
|
| 728 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 729 |
+
flags: 0x00000001 # UNUSED
|
| 730 |
+
member_count: 0
|
| 731 |
+
members:
|
| 732 |
+
type_description: *td12
|
| 733 |
+
- &bv13
|
| 734 |
+
name: "row_major_my_mat_3x3"
|
| 735 |
+
offset: 608
|
| 736 |
+
absolute_offset: 608
|
| 737 |
+
size: 48
|
| 738 |
+
padded_size: 48
|
| 739 |
+
decorations: 0x00000004 # ROW_MAJOR
|
| 740 |
+
numeric:
|
| 741 |
+
scalar: { width: 32, signedness: 0 }
|
| 742 |
+
vector: { component_count: 3 }
|
| 743 |
+
matrix: { column_count: 3, row_count: 3, stride: 16 }
|
| 744 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 745 |
+
flags: 0x00000001 # UNUSED
|
| 746 |
+
member_count: 0
|
| 747 |
+
members:
|
| 748 |
+
type_description: *td13
|
| 749 |
+
- &bv14
|
| 750 |
+
name: "row_major_my_mat_3x4"
|
| 751 |
+
offset: 656
|
| 752 |
+
absolute_offset: 656
|
| 753 |
+
size: 64
|
| 754 |
+
padded_size: 64
|
| 755 |
+
decorations: 0x00000004 # ROW_MAJOR
|
| 756 |
+
numeric:
|
| 757 |
+
scalar: { width: 32, signedness: 0 }
|
| 758 |
+
vector: { component_count: 4 }
|
| 759 |
+
matrix: { column_count: 3, row_count: 4, stride: 16 }
|
| 760 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 761 |
+
flags: 0x00000001 # UNUSED
|
| 762 |
+
member_count: 0
|
| 763 |
+
members:
|
| 764 |
+
type_description: *td14
|
| 765 |
+
- &bv15
|
| 766 |
+
name: "row_major_my_mat_4x2"
|
| 767 |
+
offset: 720
|
| 768 |
+
absolute_offset: 720
|
| 769 |
+
size: 32
|
| 770 |
+
padded_size: 32
|
| 771 |
+
decorations: 0x00000004 # ROW_MAJOR
|
| 772 |
+
numeric:
|
| 773 |
+
scalar: { width: 32, signedness: 0 }
|
| 774 |
+
vector: { component_count: 2 }
|
| 775 |
+
matrix: { column_count: 4, row_count: 2, stride: 16 }
|
| 776 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 777 |
+
flags: 0x00000001 # UNUSED
|
| 778 |
+
member_count: 0
|
| 779 |
+
members:
|
| 780 |
+
type_description: *td15
|
| 781 |
+
- &bv16
|
| 782 |
+
name: "row_major_my_mat_4x3"
|
| 783 |
+
offset: 752
|
| 784 |
+
absolute_offset: 752
|
| 785 |
+
size: 48
|
| 786 |
+
padded_size: 48
|
| 787 |
+
decorations: 0x00000004 # ROW_MAJOR
|
| 788 |
+
numeric:
|
| 789 |
+
scalar: { width: 32, signedness: 0 }
|
| 790 |
+
vector: { component_count: 3 }
|
| 791 |
+
matrix: { column_count: 4, row_count: 3, stride: 16 }
|
| 792 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 793 |
+
flags: 0x00000001 # UNUSED
|
| 794 |
+
member_count: 0
|
| 795 |
+
members:
|
| 796 |
+
type_description: *td16
|
| 797 |
+
- &bv17
|
| 798 |
+
name: "row_major_my_mat_4x4"
|
| 799 |
+
offset: 800
|
| 800 |
+
absolute_offset: 800
|
| 801 |
+
size: 64
|
| 802 |
+
padded_size: 64
|
| 803 |
+
decorations: 0x00000004 # ROW_MAJOR
|
| 804 |
+
numeric:
|
| 805 |
+
scalar: { width: 32, signedness: 0 }
|
| 806 |
+
vector: { component_count: 4 }
|
| 807 |
+
matrix: { column_count: 4, row_count: 4, stride: 16 }
|
| 808 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 809 |
+
flags: 0x00000001 # UNUSED
|
| 810 |
+
member_count: 0
|
| 811 |
+
members:
|
| 812 |
+
type_description: *td17
|
| 813 |
+
- &bv18
|
| 814 |
+
name: "column_major_my_mat_2x2"
|
| 815 |
+
offset: 864
|
| 816 |
+
absolute_offset: 864
|
| 817 |
+
size: 32
|
| 818 |
+
padded_size: 32
|
| 819 |
+
decorations: 0x00000008 # COLUMN_MAJOR
|
| 820 |
+
numeric:
|
| 821 |
+
scalar: { width: 32, signedness: 0 }
|
| 822 |
+
vector: { component_count: 2 }
|
| 823 |
+
matrix: { column_count: 2, row_count: 2, stride: 16 }
|
| 824 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 825 |
+
flags: 0x00000001 # UNUSED
|
| 826 |
+
member_count: 0
|
| 827 |
+
members:
|
| 828 |
+
type_description: *td18
|
| 829 |
+
- &bv19
|
| 830 |
+
name: "column_major_my_mat_2x3"
|
| 831 |
+
offset: 896
|
| 832 |
+
absolute_offset: 896
|
| 833 |
+
size: 32
|
| 834 |
+
padded_size: 32
|
| 835 |
+
decorations: 0x00000008 # COLUMN_MAJOR
|
| 836 |
+
numeric:
|
| 837 |
+
scalar: { width: 32, signedness: 0 }
|
| 838 |
+
vector: { component_count: 3 }
|
| 839 |
+
matrix: { column_count: 2, row_count: 3, stride: 16 }
|
| 840 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 841 |
+
flags: 0x00000001 # UNUSED
|
| 842 |
+
member_count: 0
|
| 843 |
+
members:
|
| 844 |
+
type_description: *td19
|
| 845 |
+
- &bv20
|
| 846 |
+
name: "column_major_my_mat_2x4"
|
| 847 |
+
offset: 928
|
| 848 |
+
absolute_offset: 928
|
| 849 |
+
size: 32
|
| 850 |
+
padded_size: 32
|
| 851 |
+
decorations: 0x00000008 # COLUMN_MAJOR
|
| 852 |
+
numeric:
|
| 853 |
+
scalar: { width: 32, signedness: 0 }
|
| 854 |
+
vector: { component_count: 4 }
|
| 855 |
+
matrix: { column_count: 2, row_count: 4, stride: 16 }
|
| 856 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 857 |
+
flags: 0x00000001 # UNUSED
|
| 858 |
+
member_count: 0
|
| 859 |
+
members:
|
| 860 |
+
type_description: *td20
|
| 861 |
+
- &bv21
|
| 862 |
+
name: "column_major_my_mat_3x2"
|
| 863 |
+
offset: 960
|
| 864 |
+
absolute_offset: 960
|
| 865 |
+
size: 48
|
| 866 |
+
padded_size: 48
|
| 867 |
+
decorations: 0x00000008 # COLUMN_MAJOR
|
| 868 |
+
numeric:
|
| 869 |
+
scalar: { width: 32, signedness: 0 }
|
| 870 |
+
vector: { component_count: 2 }
|
| 871 |
+
matrix: { column_count: 3, row_count: 2, stride: 16 }
|
| 872 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 873 |
+
flags: 0x00000001 # UNUSED
|
| 874 |
+
member_count: 0
|
| 875 |
+
members:
|
| 876 |
+
type_description: *td21
|
| 877 |
+
- &bv22
|
| 878 |
+
name: "column_major_my_mat_3x3"
|
| 879 |
+
offset: 1008
|
| 880 |
+
absolute_offset: 1008
|
| 881 |
+
size: 48
|
| 882 |
+
padded_size: 48
|
| 883 |
+
decorations: 0x00000008 # COLUMN_MAJOR
|
| 884 |
+
numeric:
|
| 885 |
+
scalar: { width: 32, signedness: 0 }
|
| 886 |
+
vector: { component_count: 3 }
|
| 887 |
+
matrix: { column_count: 3, row_count: 3, stride: 16 }
|
| 888 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 889 |
+
flags: 0x00000001 # UNUSED
|
| 890 |
+
member_count: 0
|
| 891 |
+
members:
|
| 892 |
+
type_description: *td22
|
| 893 |
+
- &bv23
|
| 894 |
+
name: "column_major_my_mat_3x4"
|
| 895 |
+
offset: 1056
|
| 896 |
+
absolute_offset: 1056
|
| 897 |
+
size: 48
|
| 898 |
+
padded_size: 48
|
| 899 |
+
decorations: 0x00000008 # COLUMN_MAJOR
|
| 900 |
+
numeric:
|
| 901 |
+
scalar: { width: 32, signedness: 0 }
|
| 902 |
+
vector: { component_count: 4 }
|
| 903 |
+
matrix: { column_count: 3, row_count: 4, stride: 16 }
|
| 904 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 905 |
+
flags: 0x00000001 # UNUSED
|
| 906 |
+
member_count: 0
|
| 907 |
+
members:
|
| 908 |
+
type_description: *td23
|
| 909 |
+
- &bv24
|
| 910 |
+
name: "column_major_my_mat_4x2"
|
| 911 |
+
offset: 1104
|
| 912 |
+
absolute_offset: 1104
|
| 913 |
+
size: 64
|
| 914 |
+
padded_size: 64
|
| 915 |
+
decorations: 0x00000008 # COLUMN_MAJOR
|
| 916 |
+
numeric:
|
| 917 |
+
scalar: { width: 32, signedness: 0 }
|
| 918 |
+
vector: { component_count: 2 }
|
| 919 |
+
matrix: { column_count: 4, row_count: 2, stride: 16 }
|
| 920 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 921 |
+
flags: 0x00000001 # UNUSED
|
| 922 |
+
member_count: 0
|
| 923 |
+
members:
|
| 924 |
+
type_description: *td24
|
| 925 |
+
- &bv25
|
| 926 |
+
name: "column_major_my_mat_4x3"
|
| 927 |
+
offset: 1168
|
| 928 |
+
absolute_offset: 1168
|
| 929 |
+
size: 64
|
| 930 |
+
padded_size: 64
|
| 931 |
+
decorations: 0x00000008 # COLUMN_MAJOR
|
| 932 |
+
numeric:
|
| 933 |
+
scalar: { width: 32, signedness: 0 }
|
| 934 |
+
vector: { component_count: 3 }
|
| 935 |
+
matrix: { column_count: 4, row_count: 3, stride: 16 }
|
| 936 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 937 |
+
flags: 0x00000001 # UNUSED
|
| 938 |
+
member_count: 0
|
| 939 |
+
members:
|
| 940 |
+
type_description: *td25
|
| 941 |
+
- &bv26
|
| 942 |
+
name: "column_major_my_mat_4x4"
|
| 943 |
+
offset: 1232
|
| 944 |
+
absolute_offset: 1232
|
| 945 |
+
size: 64
|
| 946 |
+
padded_size: 64
|
| 947 |
+
decorations: 0x00000008 # COLUMN_MAJOR
|
| 948 |
+
numeric:
|
| 949 |
+
scalar: { width: 32, signedness: 0 }
|
| 950 |
+
vector: { component_count: 4 }
|
| 951 |
+
matrix: { column_count: 4, row_count: 4, stride: 16 }
|
| 952 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 953 |
+
flags: 0x00000001 # UNUSED
|
| 954 |
+
member_count: 0
|
| 955 |
+
members:
|
| 956 |
+
type_description: *td26
|
| 957 |
+
- &bv27
|
| 958 |
+
name: ""
|
| 959 |
+
offset: 0
|
| 960 |
+
absolute_offset: 0
|
| 961 |
+
size: 1296
|
| 962 |
+
padded_size: 1296
|
| 963 |
+
decorations: 0x00000000 # NONE
|
| 964 |
+
numeric:
|
| 965 |
+
scalar: { width: 0, signedness: 0 }
|
| 966 |
+
vector: { component_count: 0 }
|
| 967 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 968 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 969 |
+
flags: 0x00000001 # UNUSED
|
| 970 |
+
member_count: 27
|
| 971 |
+
members:
|
| 972 |
+
- *bv0
|
| 973 |
+
- *bv1
|
| 974 |
+
- *bv2
|
| 975 |
+
- *bv3
|
| 976 |
+
- *bv4
|
| 977 |
+
- *bv5
|
| 978 |
+
- *bv6
|
| 979 |
+
- *bv7
|
| 980 |
+
- *bv8
|
| 981 |
+
- *bv9
|
| 982 |
+
- *bv10
|
| 983 |
+
- *bv11
|
| 984 |
+
- *bv12
|
| 985 |
+
- *bv13
|
| 986 |
+
- *bv14
|
| 987 |
+
- *bv15
|
| 988 |
+
- *bv16
|
| 989 |
+
- *bv17
|
| 990 |
+
- *bv18
|
| 991 |
+
- *bv19
|
| 992 |
+
- *bv20
|
| 993 |
+
- *bv21
|
| 994 |
+
- *bv22
|
| 995 |
+
- *bv23
|
| 996 |
+
- *bv24
|
| 997 |
+
- *bv25
|
| 998 |
+
- *bv26
|
| 999 |
+
type_description: *td27
|
| 1000 |
+
all_descriptor_bindings:
|
| 1001 |
+
- &db0
|
| 1002 |
+
spirv_id: 26
|
| 1003 |
+
name: ""
|
| 1004 |
+
binding: 0
|
| 1005 |
+
input_attachment_index: 0
|
| 1006 |
+
set: 0
|
| 1007 |
+
decoration_flags: 0x00000000 # NONE
|
| 1008 |
+
descriptor_type: 6 # VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER
|
| 1009 |
+
resource_type: 2 # CBV
|
| 1010 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 1011 |
+
block: *bv27 # ""
|
| 1012 |
+
array: { dims_count: 0, dims: [] }
|
| 1013 |
+
accessed: 0
|
| 1014 |
+
uav_counter_id: 4294967295
|
| 1015 |
+
uav_counter_binding:
|
| 1016 |
+
type_description: *td27
|
| 1017 |
+
word_offset: { binding: 657, set: 653 }
|
| 1018 |
+
all_interface_variables:
|
| 1019 |
+
- &iv0
|
| 1020 |
+
spirv_id: 11
|
| 1021 |
+
name: "my_input"
|
| 1022 |
+
location: 1
|
| 1023 |
+
storage_class: 1 # Input
|
| 1024 |
+
semantic:
|
| 1025 |
+
decoration_flags: 0x00000000 # NONE
|
| 1026 |
+
built_in: -1 # ??? (-1)
|
| 1027 |
+
numeric:
|
| 1028 |
+
scalar: { width: 32, signedness: 0 }
|
| 1029 |
+
vector: { component_count: 4 }
|
| 1030 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 1031 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 1032 |
+
member_count: 0
|
| 1033 |
+
members:
|
| 1034 |
+
format: 109 # VK_FORMAT_R32G32B32A32_SFLOAT
|
| 1035 |
+
type_description: *td28
|
| 1036 |
+
word_offset: { location: 268 }
|
| 1037 |
+
- &iv1
|
| 1038 |
+
spirv_id: 9
|
| 1039 |
+
name: "my_output"
|
| 1040 |
+
location: 0
|
| 1041 |
+
storage_class: 3 # Output
|
| 1042 |
+
semantic:
|
| 1043 |
+
decoration_flags: 0x00000000 # NONE
|
| 1044 |
+
built_in: -1 # ??? (-1)
|
| 1045 |
+
numeric:
|
| 1046 |
+
scalar: { width: 32, signedness: 0 }
|
| 1047 |
+
vector: { component_count: 4 }
|
| 1048 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 1049 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 1050 |
+
member_count: 0
|
| 1051 |
+
members:
|
| 1052 |
+
format: 109 # VK_FORMAT_R32G32B32A32_SFLOAT
|
| 1053 |
+
type_description: *td28
|
| 1054 |
+
word_offset: { location: 264 }
|
| 1055 |
+
module:
|
| 1056 |
+
generator: 8 # Khronos Glslang Reference Front End
|
| 1057 |
+
entry_point_name: "main"
|
| 1058 |
+
entry_point_id: 4
|
| 1059 |
+
source_language: 2 # GLSL
|
| 1060 |
+
source_language_version: 450
|
| 1061 |
+
spirv_execution_model: 4 # Fragment
|
| 1062 |
+
shader_stage: 0x00000010 # PS
|
| 1063 |
+
descriptor_binding_count: 1
|
| 1064 |
+
descriptor_bindings:
|
| 1065 |
+
- *db0 # ""
|
| 1066 |
+
descriptor_set_count: 1
|
| 1067 |
+
descriptor_sets:
|
| 1068 |
+
- set: 0
|
| 1069 |
+
binding_count: 1
|
| 1070 |
+
bindings:
|
| 1071 |
+
- *db0 # ""
|
| 1072 |
+
input_variable_count: 1,
|
| 1073 |
+
input_variables:
|
| 1074 |
+
- *iv0 # "my_input"
|
| 1075 |
+
output_variable_count: 1,
|
| 1076 |
+
output_variables:
|
| 1077 |
+
- *iv1 # "my_output"
|
| 1078 |
+
push_constant_count: 0,
|
| 1079 |
+
push_constants:
|
| 1080 |
+
specialization_constant_count: 0,
|
| 1081 |
+
specialization_constants:
|
| 1082 |
+
entry_point_heap_accesses:
|
| 1083 |
+
- entry: "main"
|
| 1084 |
+
resource_heap_access_count: 0
|
| 1085 |
+
resource_heap_accesses:
|
| 1086 |
+
sampler_heap_access_count: 0
|
| 1087 |
+
sampler_heap_accesses:
|
| 1088 |
+
...
|
third_party/SPIRV-Reflect/tests/glsl/non_writable_image.glsl
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
Compile:
|
| 3 |
+
glslangValidator.exe -V -S comp -o non_writable_image.spv non_writable_image.glsl
|
| 4 |
+
*/
|
| 5 |
+
#version 450
|
| 6 |
+
#pragma shader_stage(compute)
|
| 7 |
+
|
| 8 |
+
layout (local_size_x = 16, local_size_y = 16, local_size_z = 1) in;
|
| 9 |
+
|
| 10 |
+
layout(set = 0, binding = 0, rgba32f) uniform readonly image2D input_image;
|
| 11 |
+
layout(set = 0, binding = 1, rgba32f) uniform writeonly image2D output_image;
|
| 12 |
+
|
| 13 |
+
void main() {
|
| 14 |
+
ivec2 p = ivec2(gl_GlobalInvocationID.xy);
|
| 15 |
+
imageStore(output_image, p, imageLoad(input_image, p));
|
| 16 |
+
}
|
third_party/SPIRV-Reflect/tests/glsl/non_writable_image.spv.yaml
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
%YAML 1.1
|
| 2 |
+
---
|
| 3 |
+
all_type_descriptions:
|
| 4 |
+
- &td0
|
| 5 |
+
id: 19
|
| 6 |
+
op: 25
|
| 7 |
+
type_name:
|
| 8 |
+
struct_member_name:
|
| 9 |
+
storage_class: -1 # NOT APPLICABLE
|
| 10 |
+
type_flags: 0x00010008 # EXTERNAL_IMAGE FLOAT
|
| 11 |
+
decoration_flags: 0x00000000 # NONE
|
| 12 |
+
traits:
|
| 13 |
+
numeric:
|
| 14 |
+
scalar: { width: 32, signedness: 0 }
|
| 15 |
+
vector: { component_count: 0 }
|
| 16 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 17 |
+
image: { dim: 1, depth: 0, arrayed: 0, ms: 0, sampled: 2, image_format: 1 } # dim=2D image_format=Rgba32f
|
| 18 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 19 |
+
member_count: 0
|
| 20 |
+
members:
|
| 21 |
+
- &td1
|
| 22 |
+
id: 11
|
| 23 |
+
op: 23
|
| 24 |
+
type_name:
|
| 25 |
+
struct_member_name:
|
| 26 |
+
storage_class: -1 # NOT APPLICABLE
|
| 27 |
+
type_flags: 0x00000104 # VECTOR INT
|
| 28 |
+
decoration_flags: 0x00000000 # NONE
|
| 29 |
+
traits:
|
| 30 |
+
numeric:
|
| 31 |
+
scalar: { width: 32, signedness: 0 }
|
| 32 |
+
vector: { component_count: 3 }
|
| 33 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 34 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 35 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 36 |
+
member_count: 0
|
| 37 |
+
members:
|
| 38 |
+
all_block_variables:
|
| 39 |
+
- &bv0
|
| 40 |
+
name:
|
| 41 |
+
offset: 0
|
| 42 |
+
absolute_offset: 0
|
| 43 |
+
size: 0
|
| 44 |
+
padded_size: 0
|
| 45 |
+
decorations: 0x00000000 # NONE
|
| 46 |
+
numeric:
|
| 47 |
+
scalar: { width: 0, signedness: 0 }
|
| 48 |
+
vector: { component_count: 0 }
|
| 49 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 50 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 51 |
+
flags: 0x00000000 # NONE
|
| 52 |
+
member_count: 0
|
| 53 |
+
members:
|
| 54 |
+
type_description:
|
| 55 |
+
- &bv1
|
| 56 |
+
name:
|
| 57 |
+
offset: 0
|
| 58 |
+
absolute_offset: 0
|
| 59 |
+
size: 0
|
| 60 |
+
padded_size: 0
|
| 61 |
+
decorations: 0x00000000 # NONE
|
| 62 |
+
numeric:
|
| 63 |
+
scalar: { width: 0, signedness: 0 }
|
| 64 |
+
vector: { component_count: 0 }
|
| 65 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 66 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 67 |
+
flags: 0x00000000 # NONE
|
| 68 |
+
member_count: 0
|
| 69 |
+
members:
|
| 70 |
+
type_description:
|
| 71 |
+
all_descriptor_bindings:
|
| 72 |
+
- &db0
|
| 73 |
+
spirv_id: 24
|
| 74 |
+
name: "input_image"
|
| 75 |
+
binding: 0
|
| 76 |
+
input_attachment_index: 0
|
| 77 |
+
set: 0
|
| 78 |
+
decoration_flags: 0x00000080 # NON_WRITABLE
|
| 79 |
+
descriptor_type: 3 # VK_DESCRIPTOR_TYPE_STORAGE_IMAGE
|
| 80 |
+
resource_type: 8 # UAV
|
| 81 |
+
image: { dim: 1, depth: 0, arrayed: 0, ms: 0, sampled: 2, image_format: 1 } # dim=2D image_format=Rgba32f
|
| 82 |
+
block: *bv0 #
|
| 83 |
+
array: { dims_count: 0, dims: [] }
|
| 84 |
+
accessed: 1
|
| 85 |
+
uav_counter_id: 4294967295
|
| 86 |
+
uav_counter_binding:
|
| 87 |
+
type_description: *td0
|
| 88 |
+
word_offset: { binding: 79, set: 75 }
|
| 89 |
+
- &db1
|
| 90 |
+
spirv_id: 21
|
| 91 |
+
name: "output_image"
|
| 92 |
+
binding: 1
|
| 93 |
+
input_attachment_index: 0
|
| 94 |
+
set: 0
|
| 95 |
+
decoration_flags: 0x00000200 # NON_READABLE
|
| 96 |
+
descriptor_type: 3 # VK_DESCRIPTOR_TYPE_STORAGE_IMAGE
|
| 97 |
+
resource_type: 8 # UAV
|
| 98 |
+
image: { dim: 1, depth: 0, arrayed: 0, ms: 0, sampled: 2, image_format: 1 } # dim=2D image_format=Rgba32f
|
| 99 |
+
block: *bv1 #
|
| 100 |
+
array: { dims_count: 0, dims: [] }
|
| 101 |
+
accessed: 1
|
| 102 |
+
uav_counter_id: 4294967295
|
| 103 |
+
uav_counter_binding:
|
| 104 |
+
type_description: *td0
|
| 105 |
+
word_offset: { binding: 68, set: 64 }
|
| 106 |
+
all_interface_variables:
|
| 107 |
+
- &iv0
|
| 108 |
+
spirv_id: 13
|
| 109 |
+
name: "gl_GlobalInvocationID"
|
| 110 |
+
location: 4294967295
|
| 111 |
+
storage_class: 1 # Input
|
| 112 |
+
semantic:
|
| 113 |
+
decoration_flags: 0x00000010 # BUILT_IN
|
| 114 |
+
built_in: 28 # GlobalInvocationId
|
| 115 |
+
numeric:
|
| 116 |
+
scalar: { width: 32, signedness: 0 }
|
| 117 |
+
vector: { component_count: 3 }
|
| 118 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 119 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 120 |
+
member_count: 0
|
| 121 |
+
members:
|
| 122 |
+
format: 104 # VK_FORMAT_R32G32B32_UINT
|
| 123 |
+
type_description: *td1
|
| 124 |
+
word_offset: { location: 0 }
|
| 125 |
+
module:
|
| 126 |
+
generator: 8 # Khronos Glslang Reference Front End
|
| 127 |
+
entry_point_name: "main"
|
| 128 |
+
entry_point_id: 4
|
| 129 |
+
source_language: 2 # GLSL
|
| 130 |
+
source_language_version: 450
|
| 131 |
+
spirv_execution_model: 5 # GLCompute
|
| 132 |
+
shader_stage: 0x00000020 # CS
|
| 133 |
+
descriptor_binding_count: 2
|
| 134 |
+
descriptor_bindings:
|
| 135 |
+
- *db0 # "input_image"
|
| 136 |
+
- *db1 # "output_image"
|
| 137 |
+
descriptor_set_count: 1
|
| 138 |
+
descriptor_sets:
|
| 139 |
+
- set: 0
|
| 140 |
+
binding_count: 2
|
| 141 |
+
bindings:
|
| 142 |
+
- *db0 # "input_image"
|
| 143 |
+
- *db1 # "output_image"
|
| 144 |
+
input_variable_count: 1,
|
| 145 |
+
input_variables:
|
| 146 |
+
- *iv0 # "gl_GlobalInvocationID"
|
| 147 |
+
output_variable_count: 0,
|
| 148 |
+
output_variables:
|
| 149 |
+
push_constant_count: 0,
|
| 150 |
+
push_constants:
|
| 151 |
+
specialization_constant_count: 0,
|
| 152 |
+
specialization_constants:
|
| 153 |
+
entry_point_heap_accesses:
|
| 154 |
+
- entry: "main"
|
| 155 |
+
resource_heap_access_count: 0
|
| 156 |
+
resource_heap_accesses:
|
| 157 |
+
sampler_heap_access_count: 0
|
| 158 |
+
sampler_heap_accesses:
|
| 159 |
+
...
|
third_party/SPIRV-Reflect/tests/glsl/readonly_writeonly.glsl
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
Compile:
|
| 3 |
+
glslangValidator.exe -V -S comp -o readonly_writeonly.spv readonly_writeonly.glsl
|
| 4 |
+
*/
|
| 5 |
+
#version 450
|
| 6 |
+
#pragma shader_stage(compute)
|
| 7 |
+
|
| 8 |
+
layout (local_size_x = 16, local_size_y = 16, local_size_z = 1) in;
|
| 9 |
+
|
| 10 |
+
const int kArraySize = 64;
|
| 11 |
+
|
| 12 |
+
layout(set = 0, binding = 0) buffer storage_buffer {
|
| 13 |
+
readonly float a[kArraySize];
|
| 14 |
+
writeonly float b[kArraySize];
|
| 15 |
+
writeonly readonly float bar[kArraySize];
|
| 16 |
+
} foo;
|
| 17 |
+
|
| 18 |
+
void main() {
|
| 19 |
+
uint idx = gl_GlobalInvocationID.x;
|
| 20 |
+
foo.b[idx] = foo.a[idx];
|
| 21 |
+
}
|
third_party/SPIRV-Reflect/tests/glsl/readonly_writeonly.spv
ADDED
|
Binary file (1.12 kB). View file
|
|
|
third_party/SPIRV-Reflect/tests/glsl/readonly_writeonly.spv.yaml
ADDED
|
@@ -0,0 +1,229 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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00000000 # NONE
|
| 12 |
+
traits:
|
| 13 |
+
numeric:
|
| 14 |
+
scalar: { width: 32, signedness: 0 }
|
| 15 |
+
vector: { component_count: 0 }
|
| 16 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 17 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 18 |
+
array: { dims_count: 1, dims: [64,], stride: 4 }
|
| 19 |
+
member_count: 0
|
| 20 |
+
members:
|
| 21 |
+
- &td1
|
| 22 |
+
id: 19
|
| 23 |
+
op: 28
|
| 24 |
+
type_name:
|
| 25 |
+
struct_member_name: "b"
|
| 26 |
+
storage_class: 0 # UniformConstant
|
| 27 |
+
type_flags: 0x20000008 # ARRAY FLOAT
|
| 28 |
+
decoration_flags: 0x00000000 # NONE
|
| 29 |
+
traits:
|
| 30 |
+
numeric:
|
| 31 |
+
scalar: { width: 32, signedness: 0 }
|
| 32 |
+
vector: { component_count: 0 }
|
| 33 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 34 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 35 |
+
array: { dims_count: 1, dims: [64,], stride: 4 }
|
| 36 |
+
member_count: 0
|
| 37 |
+
members:
|
| 38 |
+
- &td2
|
| 39 |
+
id: 20
|
| 40 |
+
op: 28
|
| 41 |
+
type_name:
|
| 42 |
+
struct_member_name: "bar"
|
| 43 |
+
storage_class: 0 # UniformConstant
|
| 44 |
+
type_flags: 0x20000008 # ARRAY FLOAT
|
| 45 |
+
decoration_flags: 0x00000000 # NONE
|
| 46 |
+
traits:
|
| 47 |
+
numeric:
|
| 48 |
+
scalar: { width: 32, signedness: 0 }
|
| 49 |
+
vector: { component_count: 0 }
|
| 50 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 51 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 52 |
+
array: { dims_count: 1, dims: [64,], stride: 4 }
|
| 53 |
+
member_count: 0
|
| 54 |
+
members:
|
| 55 |
+
- &td3
|
| 56 |
+
id: 21
|
| 57 |
+
op: 30
|
| 58 |
+
type_name: "storage_buffer"
|
| 59 |
+
struct_member_name:
|
| 60 |
+
storage_class: -1 # NOT APPLICABLE
|
| 61 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 62 |
+
decoration_flags: 0x00000002 # BUFFER_BLOCK
|
| 63 |
+
traits:
|
| 64 |
+
numeric:
|
| 65 |
+
scalar: { width: 0, signedness: 0 }
|
| 66 |
+
vector: { component_count: 0 }
|
| 67 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 68 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 69 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 70 |
+
member_count: 3
|
| 71 |
+
members:
|
| 72 |
+
- *td0
|
| 73 |
+
- *td1
|
| 74 |
+
- *td2
|
| 75 |
+
- &td4
|
| 76 |
+
id: 9
|
| 77 |
+
op: 23
|
| 78 |
+
type_name:
|
| 79 |
+
struct_member_name:
|
| 80 |
+
storage_class: -1 # NOT APPLICABLE
|
| 81 |
+
type_flags: 0x00000104 # VECTOR INT
|
| 82 |
+
decoration_flags: 0x00000000 # NONE
|
| 83 |
+
traits:
|
| 84 |
+
numeric:
|
| 85 |
+
scalar: { width: 32, signedness: 0 }
|
| 86 |
+
vector: { component_count: 3 }
|
| 87 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 88 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 89 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 90 |
+
member_count: 0
|
| 91 |
+
members:
|
| 92 |
+
all_block_variables:
|
| 93 |
+
- &bv0
|
| 94 |
+
name: "a"
|
| 95 |
+
offset: 0
|
| 96 |
+
absolute_offset: 0
|
| 97 |
+
size: 256
|
| 98 |
+
padded_size: 256
|
| 99 |
+
decorations: 0x00000080 # NON_WRITABLE
|
| 100 |
+
numeric:
|
| 101 |
+
scalar: { width: 32, signedness: 0 }
|
| 102 |
+
vector: { component_count: 0 }
|
| 103 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 104 |
+
array: { dims_count: 1, dims: [64,], stride: 4 }
|
| 105 |
+
flags: 0x00000000 # NONE
|
| 106 |
+
member_count: 0
|
| 107 |
+
members:
|
| 108 |
+
type_description: *td0
|
| 109 |
+
- &bv1
|
| 110 |
+
name: "b"
|
| 111 |
+
offset: 256
|
| 112 |
+
absolute_offset: 256
|
| 113 |
+
size: 256
|
| 114 |
+
padded_size: 256
|
| 115 |
+
decorations: 0x00000200 # NON_READABLE
|
| 116 |
+
numeric:
|
| 117 |
+
scalar: { width: 32, signedness: 0 }
|
| 118 |
+
vector: { component_count: 0 }
|
| 119 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 120 |
+
array: { dims_count: 1, dims: [64,], stride: 4 }
|
| 121 |
+
flags: 0x00000000 # NONE
|
| 122 |
+
member_count: 0
|
| 123 |
+
members:
|
| 124 |
+
type_description: *td1
|
| 125 |
+
- &bv2
|
| 126 |
+
name: "bar"
|
| 127 |
+
offset: 512
|
| 128 |
+
absolute_offset: 512
|
| 129 |
+
size: 256
|
| 130 |
+
padded_size: 256
|
| 131 |
+
decorations: 0x00000280 # NON_WRITABLE NON_READABLE
|
| 132 |
+
numeric:
|
| 133 |
+
scalar: { width: 32, signedness: 0 }
|
| 134 |
+
vector: { component_count: 0 }
|
| 135 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 136 |
+
array: { dims_count: 1, dims: [64,], stride: 4 }
|
| 137 |
+
flags: 0x00000001 # UNUSED
|
| 138 |
+
member_count: 0
|
| 139 |
+
members:
|
| 140 |
+
type_description: *td2
|
| 141 |
+
- &bv3
|
| 142 |
+
name: "foo"
|
| 143 |
+
offset: 0
|
| 144 |
+
absolute_offset: 0
|
| 145 |
+
size: 0
|
| 146 |
+
padded_size: 0
|
| 147 |
+
decorations: 0x00000080 # NON_WRITABLE
|
| 148 |
+
numeric:
|
| 149 |
+
scalar: { width: 0, signedness: 0 }
|
| 150 |
+
vector: { component_count: 0 }
|
| 151 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 152 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 153 |
+
flags: 0x00000000 # NONE
|
| 154 |
+
member_count: 3
|
| 155 |
+
members:
|
| 156 |
+
- *bv0
|
| 157 |
+
- *bv1
|
| 158 |
+
- *bv2
|
| 159 |
+
type_description: *td3
|
| 160 |
+
all_descriptor_bindings:
|
| 161 |
+
- &db0
|
| 162 |
+
spirv_id: 23
|
| 163 |
+
name: "foo"
|
| 164 |
+
binding: 0
|
| 165 |
+
input_attachment_index: 0
|
| 166 |
+
set: 0
|
| 167 |
+
decoration_flags: 0x00000000 # NONE
|
| 168 |
+
descriptor_type: 7 # VK_DESCRIPTOR_TYPE_STORAGE_BUFFER
|
| 169 |
+
resource_type: 4 # SRV
|
| 170 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 171 |
+
block: *bv3 # "foo"
|
| 172 |
+
array: { dims_count: 0, dims: [] }
|
| 173 |
+
accessed: 1
|
| 174 |
+
uav_counter_id: 4294967295
|
| 175 |
+
uav_counter_binding:
|
| 176 |
+
type_description: *td3
|
| 177 |
+
word_offset: { binding: 124, set: 120 }
|
| 178 |
+
all_interface_variables:
|
| 179 |
+
- &iv0
|
| 180 |
+
spirv_id: 11
|
| 181 |
+
name: "gl_GlobalInvocationID"
|
| 182 |
+
location: 4294967295
|
| 183 |
+
storage_class: 1 # Input
|
| 184 |
+
semantic:
|
| 185 |
+
decoration_flags: 0x00000010 # BUILT_IN
|
| 186 |
+
built_in: 28 # GlobalInvocationId
|
| 187 |
+
numeric:
|
| 188 |
+
scalar: { width: 32, signedness: 0 }
|
| 189 |
+
vector: { component_count: 3 }
|
| 190 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 191 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 192 |
+
member_count: 0
|
| 193 |
+
members:
|
| 194 |
+
format: 104 # VK_FORMAT_R32G32B32_UINT
|
| 195 |
+
type_description: *td4
|
| 196 |
+
word_offset: { location: 0 }
|
| 197 |
+
module:
|
| 198 |
+
generator: 8 # Khronos Glslang Reference Front End
|
| 199 |
+
entry_point_name: "main"
|
| 200 |
+
entry_point_id: 4
|
| 201 |
+
source_language: 2 # GLSL
|
| 202 |
+
source_language_version: 450
|
| 203 |
+
spirv_execution_model: 5 # GLCompute
|
| 204 |
+
shader_stage: 0x00000020 # CS
|
| 205 |
+
descriptor_binding_count: 1
|
| 206 |
+
descriptor_bindings:
|
| 207 |
+
- *db0 # "foo"
|
| 208 |
+
descriptor_set_count: 1
|
| 209 |
+
descriptor_sets:
|
| 210 |
+
- set: 0
|
| 211 |
+
binding_count: 1
|
| 212 |
+
bindings:
|
| 213 |
+
- *db0 # "foo"
|
| 214 |
+
input_variable_count: 1,
|
| 215 |
+
input_variables:
|
| 216 |
+
- *iv0 # "gl_GlobalInvocationID"
|
| 217 |
+
output_variable_count: 0,
|
| 218 |
+
output_variables:
|
| 219 |
+
push_constant_count: 0,
|
| 220 |
+
push_constants:
|
| 221 |
+
specialization_constant_count: 0,
|
| 222 |
+
specialization_constants:
|
| 223 |
+
entry_point_heap_accesses:
|
| 224 |
+
- entry: "main"
|
| 225 |
+
resource_heap_access_count: 0
|
| 226 |
+
resource_heap_accesses:
|
| 227 |
+
sampler_heap_access_count: 0
|
| 228 |
+
sampler_heap_accesses:
|
| 229 |
+
...
|
third_party/SPIRV-Reflect/tests/glsl/runtime_array_of_array_of_struct.glsl
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#version 450
|
| 2 |
+
#pragma shader_stage(compute)
|
| 3 |
+
|
| 4 |
+
#extension GL_EXT_nonuniform_qualifier : enable
|
| 5 |
+
|
| 6 |
+
layout (local_size_x = 32, local_size_y = 1, local_size_z = 1) in;
|
| 7 |
+
|
| 8 |
+
struct Foo {
|
| 9 |
+
int a;
|
| 10 |
+
int b;
|
| 11 |
+
};
|
| 12 |
+
|
| 13 |
+
layout(set = 0, binding = 0) buffer InutBuffer {
|
| 14 |
+
Foo input_values[][3];
|
| 15 |
+
};
|
| 16 |
+
|
| 17 |
+
layout(set = 0, binding = 1) buffer OutputBuffer {
|
| 18 |
+
Foo output_values[][3];
|
| 19 |
+
};
|
| 20 |
+
|
| 21 |
+
void main() {
|
| 22 |
+
uint index = gl_GlobalInvocationID.x;
|
| 23 |
+
output_values[index] = input_values[index];
|
| 24 |
+
}
|
third_party/SPIRV-Reflect/tests/glsl/runtime_array_of_array_of_struct.spv
ADDED
|
Binary file (2.28 kB). View file
|
|
|
third_party/SPIRV-Reflect/tests/glsl/runtime_array_of_array_of_struct.spv.yaml
ADDED
|
@@ -0,0 +1,386 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
+
%YAML 1.1
|
| 2 |
+
---
|
| 3 |
+
all_type_descriptions:
|
| 4 |
+
- &td0
|
| 5 |
+
id: 17
|
| 6 |
+
op: 21
|
| 7 |
+
type_name:
|
| 8 |
+
struct_member_name: "a"
|
| 9 |
+
storage_class: 0 # UniformConstant
|
| 10 |
+
type_flags: 0x00000004 # INT
|
| 11 |
+
decoration_flags: 0x00000000 # NONE
|
| 12 |
+
traits:
|
| 13 |
+
numeric:
|
| 14 |
+
scalar: { width: 32, signedness: 1 }
|
| 15 |
+
vector: { component_count: 0 }
|
| 16 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 17 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 18 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 19 |
+
member_count: 0
|
| 20 |
+
members:
|
| 21 |
+
- &td1
|
| 22 |
+
id: 17
|
| 23 |
+
op: 21
|
| 24 |
+
type_name:
|
| 25 |
+
struct_member_name: "b"
|
| 26 |
+
storage_class: 0 # UniformConstant
|
| 27 |
+
type_flags: 0x00000004 # INT
|
| 28 |
+
decoration_flags: 0x00000000 # NONE
|
| 29 |
+
traits:
|
| 30 |
+
numeric:
|
| 31 |
+
scalar: { width: 32, signedness: 1 }
|
| 32 |
+
vector: { component_count: 0 }
|
| 33 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 34 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 35 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 36 |
+
member_count: 0
|
| 37 |
+
members:
|
| 38 |
+
- &td2
|
| 39 |
+
id: 28
|
| 40 |
+
op: 29
|
| 41 |
+
type_name: "Foo"
|
| 42 |
+
struct_member_name: "input_values"
|
| 43 |
+
storage_class: 0 # UniformConstant
|
| 44 |
+
type_flags: 0x30080000 # ARRAY STRUCT EXTERNAL_BLOCK
|
| 45 |
+
decoration_flags: 0x00000000 # NONE
|
| 46 |
+
traits:
|
| 47 |
+
numeric:
|
| 48 |
+
scalar: { width: 0, signedness: 0 }
|
| 49 |
+
vector: { component_count: 0 }
|
| 50 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 51 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 52 |
+
array: { dims_count: 2, dims: [0,3,], stride: 8 }
|
| 53 |
+
member_count: 2
|
| 54 |
+
members:
|
| 55 |
+
- *td0
|
| 56 |
+
- *td1
|
| 57 |
+
- &td3
|
| 58 |
+
id: 29
|
| 59 |
+
op: 30
|
| 60 |
+
type_name: "InutBuffer"
|
| 61 |
+
struct_member_name:
|
| 62 |
+
storage_class: -1 # NOT APPLICABLE
|
| 63 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 64 |
+
decoration_flags: 0x00000002 # BUFFER_BLOCK
|
| 65 |
+
traits:
|
| 66 |
+
numeric:
|
| 67 |
+
scalar: { width: 0, signedness: 0 }
|
| 68 |
+
vector: { component_count: 0 }
|
| 69 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 70 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 71 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 72 |
+
member_count: 1
|
| 73 |
+
members:
|
| 74 |
+
- *td2
|
| 75 |
+
- &td4
|
| 76 |
+
id: 17
|
| 77 |
+
op: 21
|
| 78 |
+
type_name:
|
| 79 |
+
struct_member_name: "a"
|
| 80 |
+
storage_class: 0 # UniformConstant
|
| 81 |
+
type_flags: 0x00000004 # INT
|
| 82 |
+
decoration_flags: 0x00000000 # NONE
|
| 83 |
+
traits:
|
| 84 |
+
numeric:
|
| 85 |
+
scalar: { width: 32, signedness: 1 }
|
| 86 |
+
vector: { component_count: 0 }
|
| 87 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 88 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 89 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 90 |
+
member_count: 0
|
| 91 |
+
members:
|
| 92 |
+
- &td5
|
| 93 |
+
id: 17
|
| 94 |
+
op: 21
|
| 95 |
+
type_name:
|
| 96 |
+
struct_member_name: "b"
|
| 97 |
+
storage_class: 0 # UniformConstant
|
| 98 |
+
type_flags: 0x00000004 # INT
|
| 99 |
+
decoration_flags: 0x00000000 # NONE
|
| 100 |
+
traits:
|
| 101 |
+
numeric:
|
| 102 |
+
scalar: { width: 32, signedness: 1 }
|
| 103 |
+
vector: { component_count: 0 }
|
| 104 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 105 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 106 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 107 |
+
member_count: 0
|
| 108 |
+
members:
|
| 109 |
+
- &td6
|
| 110 |
+
id: 21
|
| 111 |
+
op: 29
|
| 112 |
+
type_name: "Foo"
|
| 113 |
+
struct_member_name: "output_values"
|
| 114 |
+
storage_class: 0 # UniformConstant
|
| 115 |
+
type_flags: 0x30080000 # ARRAY STRUCT EXTERNAL_BLOCK
|
| 116 |
+
decoration_flags: 0x00000000 # NONE
|
| 117 |
+
traits:
|
| 118 |
+
numeric:
|
| 119 |
+
scalar: { width: 0, signedness: 0 }
|
| 120 |
+
vector: { component_count: 0 }
|
| 121 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 122 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 123 |
+
array: { dims_count: 2, dims: [0,3,], stride: 8 }
|
| 124 |
+
member_count: 2
|
| 125 |
+
members:
|
| 126 |
+
- *td4
|
| 127 |
+
- *td5
|
| 128 |
+
- &td7
|
| 129 |
+
id: 22
|
| 130 |
+
op: 30
|
| 131 |
+
type_name: "OutputBuffer"
|
| 132 |
+
struct_member_name:
|
| 133 |
+
storage_class: -1 # NOT APPLICABLE
|
| 134 |
+
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
|
| 135 |
+
decoration_flags: 0x00000002 # BUFFER_BLOCK
|
| 136 |
+
traits:
|
| 137 |
+
numeric:
|
| 138 |
+
scalar: { width: 0, signedness: 0 }
|
| 139 |
+
vector: { component_count: 0 }
|
| 140 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 141 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 142 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 143 |
+
member_count: 1
|
| 144 |
+
members:
|
| 145 |
+
- *td6
|
| 146 |
+
- &td8
|
| 147 |
+
id: 10
|
| 148 |
+
op: 23
|
| 149 |
+
type_name:
|
| 150 |
+
struct_member_name:
|
| 151 |
+
storage_class: -1 # NOT APPLICABLE
|
| 152 |
+
type_flags: 0x00000104 # VECTOR INT
|
| 153 |
+
decoration_flags: 0x00000000 # NONE
|
| 154 |
+
traits:
|
| 155 |
+
numeric:
|
| 156 |
+
scalar: { width: 32, signedness: 0 }
|
| 157 |
+
vector: { component_count: 3 }
|
| 158 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 159 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 160 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 161 |
+
member_count: 0
|
| 162 |
+
members:
|
| 163 |
+
all_block_variables:
|
| 164 |
+
- &bv0
|
| 165 |
+
name: "a"
|
| 166 |
+
offset: 0
|
| 167 |
+
absolute_offset: 0
|
| 168 |
+
size: 4
|
| 169 |
+
padded_size: 4
|
| 170 |
+
decorations: 0x00000000 # NONE
|
| 171 |
+
numeric:
|
| 172 |
+
scalar: { width: 32, signedness: 1 }
|
| 173 |
+
vector: { component_count: 0 }
|
| 174 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 175 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 176 |
+
flags: 0x00000001 # UNUSED
|
| 177 |
+
member_count: 0
|
| 178 |
+
members:
|
| 179 |
+
type_description: *td0
|
| 180 |
+
- &bv1
|
| 181 |
+
name: "b"
|
| 182 |
+
offset: 4
|
| 183 |
+
absolute_offset: 0
|
| 184 |
+
size: 4
|
| 185 |
+
padded_size: 4
|
| 186 |
+
decorations: 0x00000000 # NONE
|
| 187 |
+
numeric:
|
| 188 |
+
scalar: { width: 32, signedness: 1 }
|
| 189 |
+
vector: { component_count: 0 }
|
| 190 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 191 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 192 |
+
flags: 0x00000001 # UNUSED
|
| 193 |
+
member_count: 0
|
| 194 |
+
members:
|
| 195 |
+
type_description: *td1
|
| 196 |
+
- &bv2
|
| 197 |
+
name: "input_values"
|
| 198 |
+
offset: 0
|
| 199 |
+
absolute_offset: 0
|
| 200 |
+
size: 8
|
| 201 |
+
padded_size: 8
|
| 202 |
+
decorations: 0x00000000 # NONE
|
| 203 |
+
numeric:
|
| 204 |
+
scalar: { width: 0, signedness: 0 }
|
| 205 |
+
vector: { component_count: 0 }
|
| 206 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 207 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 208 |
+
flags: 0x00000000 # NONE
|
| 209 |
+
member_count: 2
|
| 210 |
+
members:
|
| 211 |
+
- *bv0
|
| 212 |
+
- *bv1
|
| 213 |
+
type_description: *td2
|
| 214 |
+
- &bv3
|
| 215 |
+
name: ""
|
| 216 |
+
offset: 0
|
| 217 |
+
absolute_offset: 0
|
| 218 |
+
size: 0
|
| 219 |
+
padded_size: 0
|
| 220 |
+
decorations: 0x00000000 # NONE
|
| 221 |
+
numeric:
|
| 222 |
+
scalar: { width: 0, signedness: 0 }
|
| 223 |
+
vector: { component_count: 0 }
|
| 224 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 225 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 226 |
+
flags: 0x00000000 # NONE
|
| 227 |
+
member_count: 1
|
| 228 |
+
members:
|
| 229 |
+
- *bv2
|
| 230 |
+
type_description: *td3
|
| 231 |
+
- &bv4
|
| 232 |
+
name: "a"
|
| 233 |
+
offset: 0
|
| 234 |
+
absolute_offset: 0
|
| 235 |
+
size: 4
|
| 236 |
+
padded_size: 4
|
| 237 |
+
decorations: 0x00000000 # NONE
|
| 238 |
+
numeric:
|
| 239 |
+
scalar: { width: 32, signedness: 1 }
|
| 240 |
+
vector: { component_count: 0 }
|
| 241 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 242 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 243 |
+
flags: 0x00000001 # UNUSED
|
| 244 |
+
member_count: 0
|
| 245 |
+
members:
|
| 246 |
+
type_description: *td4
|
| 247 |
+
- &bv5
|
| 248 |
+
name: "b"
|
| 249 |
+
offset: 4
|
| 250 |
+
absolute_offset: 0
|
| 251 |
+
size: 4
|
| 252 |
+
padded_size: 4
|
| 253 |
+
decorations: 0x00000000 # NONE
|
| 254 |
+
numeric:
|
| 255 |
+
scalar: { width: 32, signedness: 1 }
|
| 256 |
+
vector: { component_count: 0 }
|
| 257 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 258 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 259 |
+
flags: 0x00000001 # UNUSED
|
| 260 |
+
member_count: 0
|
| 261 |
+
members:
|
| 262 |
+
type_description: *td5
|
| 263 |
+
- &bv6
|
| 264 |
+
name: "output_values"
|
| 265 |
+
offset: 0
|
| 266 |
+
absolute_offset: 0
|
| 267 |
+
size: 8
|
| 268 |
+
padded_size: 8
|
| 269 |
+
decorations: 0x00000000 # NONE
|
| 270 |
+
numeric:
|
| 271 |
+
scalar: { width: 0, signedness: 0 }
|
| 272 |
+
vector: { component_count: 0 }
|
| 273 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 274 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 275 |
+
flags: 0x00000000 # NONE
|
| 276 |
+
member_count: 2
|
| 277 |
+
members:
|
| 278 |
+
- *bv4
|
| 279 |
+
- *bv5
|
| 280 |
+
type_description: *td6
|
| 281 |
+
- &bv7
|
| 282 |
+
name: ""
|
| 283 |
+
offset: 0
|
| 284 |
+
absolute_offset: 0
|
| 285 |
+
size: 0
|
| 286 |
+
padded_size: 0
|
| 287 |
+
decorations: 0x00000000 # NONE
|
| 288 |
+
numeric:
|
| 289 |
+
scalar: { width: 0, signedness: 0 }
|
| 290 |
+
vector: { component_count: 0 }
|
| 291 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 292 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 293 |
+
flags: 0x00000000 # NONE
|
| 294 |
+
member_count: 1
|
| 295 |
+
members:
|
| 296 |
+
- *bv6
|
| 297 |
+
type_description: *td7
|
| 298 |
+
all_descriptor_bindings:
|
| 299 |
+
- &db0
|
| 300 |
+
spirv_id: 31
|
| 301 |
+
name: ""
|
| 302 |
+
binding: 0
|
| 303 |
+
input_attachment_index: 0
|
| 304 |
+
set: 0
|
| 305 |
+
decoration_flags: 0x00000000 # NONE
|
| 306 |
+
descriptor_type: 7 # VK_DESCRIPTOR_TYPE_STORAGE_BUFFER
|
| 307 |
+
resource_type: 8 # UAV
|
| 308 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 309 |
+
block: *bv3 # ""
|
| 310 |
+
array: { dims_count: 0, dims: [] }
|
| 311 |
+
accessed: 1
|
| 312 |
+
uav_counter_id: 4294967295
|
| 313 |
+
uav_counter_binding:
|
| 314 |
+
type_description: *td3
|
| 315 |
+
word_offset: { binding: 349, set: 345 }
|
| 316 |
+
- &db1
|
| 317 |
+
spirv_id: 24
|
| 318 |
+
name: ""
|
| 319 |
+
binding: 1
|
| 320 |
+
input_attachment_index: 0
|
| 321 |
+
set: 0
|
| 322 |
+
decoration_flags: 0x00000000 # NONE
|
| 323 |
+
descriptor_type: 7 # VK_DESCRIPTOR_TYPE_STORAGE_BUFFER
|
| 324 |
+
resource_type: 8 # UAV
|
| 325 |
+
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
|
| 326 |
+
block: *bv7 # ""
|
| 327 |
+
array: { dims_count: 0, dims: [] }
|
| 328 |
+
accessed: 1
|
| 329 |
+
uav_counter_id: 4294967295
|
| 330 |
+
uav_counter_binding:
|
| 331 |
+
type_description: *td7
|
| 332 |
+
word_offset: { binding: 325, set: 321 }
|
| 333 |
+
all_interface_variables:
|
| 334 |
+
- &iv0
|
| 335 |
+
spirv_id: 12
|
| 336 |
+
name: "gl_GlobalInvocationID"
|
| 337 |
+
location: 4294967295
|
| 338 |
+
storage_class: 1 # Input
|
| 339 |
+
semantic:
|
| 340 |
+
decoration_flags: 0x00000010 # BUILT_IN
|
| 341 |
+
built_in: 28 # GlobalInvocationId
|
| 342 |
+
numeric:
|
| 343 |
+
scalar: { width: 32, signedness: 0 }
|
| 344 |
+
vector: { component_count: 3 }
|
| 345 |
+
matrix: { column_count: 0, row_count: 0, stride: 0 }
|
| 346 |
+
array: { dims_count: 0, dims: [], stride: 0 }
|
| 347 |
+
member_count: 0
|
| 348 |
+
members:
|
| 349 |
+
format: 104 # VK_FORMAT_R32G32B32_UINT
|
| 350 |
+
type_description: *td8
|
| 351 |
+
word_offset: { location: 0 }
|
| 352 |
+
module:
|
| 353 |
+
generator: 13 # Google Shaderc over Glslang
|
| 354 |
+
entry_point_name: "main"
|
| 355 |
+
entry_point_id: 5
|
| 356 |
+
source_language: 2 # GLSL
|
| 357 |
+
source_language_version: 450
|
| 358 |
+
spirv_execution_model: 5 # GLCompute
|
| 359 |
+
shader_stage: 0x00000020 # CS
|
| 360 |
+
descriptor_binding_count: 2
|
| 361 |
+
descriptor_bindings:
|
| 362 |
+
- *db0 # ""
|
| 363 |
+
- *db1 # ""
|
| 364 |
+
descriptor_set_count: 1
|
| 365 |
+
descriptor_sets:
|
| 366 |
+
- set: 0
|
| 367 |
+
binding_count: 2
|
| 368 |
+
bindings:
|
| 369 |
+
- *db0 # ""
|
| 370 |
+
- *db1 # ""
|
| 371 |
+
input_variable_count: 1,
|
| 372 |
+
input_variables:
|
| 373 |
+
- *iv0 # "gl_GlobalInvocationID"
|
| 374 |
+
output_variable_count: 0,
|
| 375 |
+
output_variables:
|
| 376 |
+
push_constant_count: 0,
|
| 377 |
+
push_constants:
|
| 378 |
+
specialization_constant_count: 0,
|
| 379 |
+
specialization_constants:
|
| 380 |
+
entry_point_heap_accesses:
|
| 381 |
+
- entry: "main"
|
| 382 |
+
resource_heap_access_count: 0
|
| 383 |
+
resource_heap_accesses:
|
| 384 |
+
sampler_heap_access_count: 0
|
| 385 |
+
sampler_heap_accesses:
|
| 386 |
+
...
|
third_party/SPIRV-Reflect/tests/glsl/storage_buffer.glsl
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#version 450
|
| 2 |
+
#pragma shader_stage(compute)
|
| 3 |
+
|
| 4 |
+
layout (local_size_x = 32, local_size_y = 1, local_size_z = 1) in;
|
| 5 |
+
|
| 6 |
+
const int kArraySize = 64;
|
| 7 |
+
|
| 8 |
+
layout(set = 0, binding = 0) buffer InputBuffer {
|
| 9 |
+
float input_values[kArraySize];
|
| 10 |
+
};
|
| 11 |
+
|
| 12 |
+
layout(set = 0, binding = 1) buffer OutputBuffer {
|
| 13 |
+
float output_values[kArraySize];
|
| 14 |
+
};
|
| 15 |
+
|
| 16 |
+
void main() {
|
| 17 |
+
uint index = gl_GlobalInvocationID.x;
|
| 18 |
+
output_values[index] = input_values[index];
|
| 19 |
+
}
|