xemu/subprojects/SPIRV-Reflect/tests/glsl/frag_array_input.spv.yaml

761 lines
22 KiB
YAML

%YAML 1.1
---
all_type_descriptions:
- &td0
id: 6
op: 21
type_name:
struct_member_name: "y1_"
storage_class: 0 # UniformConstant
type_flags: 0x00000004 # INT
decoration_flags: 0x00000000 # NONE
traits:
numeric:
scalar: { width: 32, signedness: 1 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
- &td1
id: 6
op: 21
type_name:
struct_member_name: "x1_"
storage_class: 0 # UniformConstant
type_flags: 0x00000004 # INT
decoration_flags: 0x00000000 # NONE
traits:
numeric:
scalar: { width: 32, signedness: 1 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
- &td2
id: 6
op: 21
type_name:
struct_member_name: "x2_"
storage_class: 0 # UniformConstant
type_flags: 0x00000004 # INT
decoration_flags: 0x00000000 # NONE
traits:
numeric:
scalar: { width: 32, signedness: 1 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
- &td3
id: 10
op: 28
type_name: "structX"
struct_member_name: "y2_"
storage_class: 0 # UniformConstant
type_flags: 0x30080000 # ARRAY STRUCT EXTERNAL_BLOCK
decoration_flags: 0x00000000 # NONE
traits:
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 1, dims: [2,], stride: 0 }
member_count: 2
members:
- *td1
- *td2
- &td4
id: 11
op: 30
type_name: "structY"
struct_member_name:
storage_class: -1 # NOT APPLICABLE
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
decoration_flags: 0x00000000 # NONE
traits:
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 2
members:
- *td0
- *td3
- &td5
id: 6
op: 21
type_name:
struct_member_name: "x1_"
storage_class: 0 # UniformConstant
type_flags: 0x00000004 # INT
decoration_flags: 0x00000000 # NONE
traits:
numeric:
scalar: { width: 32, signedness: 1 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
- &td6
id: 6
op: 21
type_name:
struct_member_name: "x2_"
storage_class: 0 # UniformConstant
type_flags: 0x00000004 # INT
decoration_flags: 0x00000000 # NONE
traits:
numeric:
scalar: { width: 32, signedness: 1 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
- &td7
id: 10
op: 28
type_name: "structX"
struct_member_name:
storage_class: -1 # NOT APPLICABLE
type_flags: 0x30080000 # ARRAY STRUCT EXTERNAL_BLOCK
decoration_flags: 0x00000000 # NONE
traits:
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 1, dims: [2,], stride: 0 }
member_count: 2
members:
- *td5
- *td6
- &td8
id: 6
op: 21
type_name:
struct_member_name: "x1_"
storage_class: 0 # UniformConstant
type_flags: 0x00000004 # INT
decoration_flags: 0x00000000 # NONE
traits:
numeric:
scalar: { width: 32, signedness: 1 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
- &td9
id: 6
op: 21
type_name:
struct_member_name: "x2_"
storage_class: 0 # UniformConstant
type_flags: 0x00000004 # INT
decoration_flags: 0x00000000 # NONE
traits:
numeric:
scalar: { width: 32, signedness: 1 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
- &td10
id: 10
op: 28
type_name: "structX"
struct_member_name: "c_"
storage_class: 0 # UniformConstant
type_flags: 0x30080000 # ARRAY STRUCT EXTERNAL_BLOCK
decoration_flags: 0x00000000 # NONE
traits:
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 1, dims: [2,], stride: 0 }
member_count: 2
members:
- *td8
- *td9
- &td11
id: 16
op: 30
type_name: "inC"
struct_member_name:
storage_class: -1 # NOT APPLICABLE
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
decoration_flags: 0x00000001 # BLOCK
traits:
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 1
members:
- *td10
- &td12
id: 6
op: 21
type_name:
struct_member_name: "x1_"
storage_class: 0 # UniformConstant
type_flags: 0x00000004 # INT
decoration_flags: 0x00000000 # NONE
traits:
numeric:
scalar: { width: 32, signedness: 1 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
- &td13
id: 6
op: 21
type_name:
struct_member_name: "x2_"
storage_class: 0 # UniformConstant
type_flags: 0x00000004 # INT
decoration_flags: 0x00000000 # NONE
traits:
numeric:
scalar: { width: 32, signedness: 1 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
- &td14
id: 19
op: 28
type_name: "structX"
struct_member_name:
storage_class: -1 # NOT APPLICABLE
type_flags: 0x30080000 # ARRAY STRUCT EXTERNAL_BLOCK
decoration_flags: 0x00000000 # NONE
traits:
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 2, dims: [2,2,], stride: 0 }
member_count: 2
members:
- *td12
- *td13
- &td15
id: 6
op: 21
type_name:
struct_member_name: "x1_"
storage_class: 0 # UniformConstant
type_flags: 0x00000004 # INT
decoration_flags: 0x00000000 # NONE
traits:
numeric:
scalar: { width: 32, signedness: 1 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
- &td16
id: 6
op: 21
type_name:
struct_member_name: "x2_"
storage_class: 0 # UniformConstant
type_flags: 0x00000004 # INT
decoration_flags: 0x00000000 # NONE
traits:
numeric:
scalar: { width: 32, signedness: 1 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
- &td17
id: 19
op: 28
type_name: "structX"
struct_member_name: "z_"
storage_class: 0 # UniformConstant
type_flags: 0x30080000 # ARRAY STRUCT EXTERNAL_BLOCK
decoration_flags: 0x00000000 # NONE
traits:
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 2, dims: [2,2,], stride: 0 }
member_count: 2
members:
- *td15
- *td16
- &td18
id: 23
op: 28
type_name: "structZ"
struct_member_name: "e_"
storage_class: 0 # UniformConstant
type_flags: 0x30080000 # ARRAY STRUCT EXTERNAL_BLOCK
decoration_flags: 0x00000000 # NONE
traits:
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 1, dims: [2,], stride: 0 }
member_count: 1
members:
- *td17
- &td19
id: 24
op: 30
type_name: "inE"
struct_member_name:
storage_class: -1 # NOT APPLICABLE
type_flags: 0x10080000 # STRUCT EXTERNAL_BLOCK
decoration_flags: 0x00000001 # BLOCK
traits:
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 1
members:
- *td18
- &td20
id: 28
op: 28
type_name:
struct_member_name:
storage_class: -1 # NOT APPLICABLE
type_flags: 0x20000004 # ARRAY INT
decoration_flags: 0x00000000 # NONE
traits:
numeric:
scalar: { width: 32, signedness: 1 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
image: { dim: 0, depth: 0, arrayed: 0, ms: 0, sampled: 0, image_format: 0 } # dim=1D image_format=Unknown
array: { dims_count: 2, dims: [2,2,], stride: 0 }
member_count: 0
members:
all_block_variables:
all_descriptor_bindings:
all_interface_variables:
- &iv0
spirv_id: 0
name:
location: 0
storage_class: 1 # Input
semantic:
decoration_flags: 0x00000000 # NONE
built_in: 0 # Position
numeric:
scalar: { width: 32, signedness: 1 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
format: 99 # VK_FORMAT_R32_SINT
type_description: *td0
word_offset: { location: 0 }
- &iv1
spirv_id: 0
name:
location: 0
storage_class: 0 # UniformConstant
semantic:
decoration_flags: 0x00000000 # NONE
built_in: 0 # Position
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
format: 0 # VK_FORMAT_UNDEFINED
type_description:
word_offset: { location: 0 }
- &iv2
spirv_id: 0
name:
location: 0
storage_class: 0 # UniformConstant
semantic:
decoration_flags: 0x00000000 # NONE
built_in: 0 # Position
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
format: 0 # VK_FORMAT_UNDEFINED
type_description:
word_offset: { location: 0 }
- &iv3
spirv_id: 0
name:
location: 0
storage_class: 1 # Input
semantic:
decoration_flags: 0x00000000 # NONE
built_in: 0 # Position
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
array: { dims_count: 1, dims: [2,], stride: 0 }
member_count: 2
members:
- *iv1 #
- *iv2 #
format: 0 # VK_FORMAT_UNDEFINED
type_description: *td3
word_offset: { location: 0 }
- &iv4
spirv_id: 13
name: "in_a"
location: 0
storage_class: 1 # Input
semantic:
decoration_flags: 0x00000040 # FLAT
built_in: -1 # ??? (-1)
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 2
members:
- *iv0 #
- *iv3 #
format: 0 # VK_FORMAT_UNDEFINED
type_description: *td4
word_offset: { location: 113 }
- &iv5
spirv_id: 0
name:
location: 0
storage_class: 0 # UniformConstant
semantic:
decoration_flags: 0x00000000 # NONE
built_in: 0 # Position
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
format: 0 # VK_FORMAT_UNDEFINED
type_description:
word_offset: { location: 0 }
- &iv6
spirv_id: 0
name:
location: 0
storage_class: 0 # UniformConstant
semantic:
decoration_flags: 0x00000000 # NONE
built_in: 0 # Position
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
format: 0 # VK_FORMAT_UNDEFINED
type_description:
word_offset: { location: 0 }
- &iv7
spirv_id: 15
name: "int_b"
location: 5
storage_class: 1 # Input
semantic:
decoration_flags: 0x00000040 # FLAT
built_in: -1 # ??? (-1)
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
array: { dims_count: 1, dims: [2,], stride: 0 }
member_count: 2
members:
- *iv5 #
- *iv6 #
format: 0 # VK_FORMAT_UNDEFINED
type_description: *td7
word_offset: { location: 120 }
- &iv8
spirv_id: 0
name:
location: 0
storage_class: 0 # UniformConstant
semantic:
decoration_flags: 0x00000000 # NONE
built_in: 0 # Position
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
format: 0 # VK_FORMAT_UNDEFINED
type_description:
word_offset: { location: 0 }
- &iv9
spirv_id: 0
name:
location: 0
storage_class: 0 # UniformConstant
semantic:
decoration_flags: 0x00000000 # NONE
built_in: 0 # Position
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
format: 0 # VK_FORMAT_UNDEFINED
type_description:
word_offset: { location: 0 }
- &iv10
spirv_id: 0
name:
location: 0
storage_class: 1 # Input
semantic:
decoration_flags: 0x00000000 # NONE
built_in: 0 # Position
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
array: { dims_count: 1, dims: [2,], stride: 0 }
member_count: 2
members:
- *iv8 #
- *iv9 #
format: 0 # VK_FORMAT_UNDEFINED
type_description: *td10
word_offset: { location: 0 }
- &iv11
spirv_id: 18
name: "in_c"
location: 10
storage_class: 1 # Input
semantic:
decoration_flags: 0x00000001 # BLOCK
built_in: 0 # [Position]
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 1
members:
- *iv10 #
format: 0 # VK_FORMAT_UNDEFINED
type_description: *td11
word_offset: { location: 127 }
- &iv12
spirv_id: 0
name:
location: 0
storage_class: 0 # UniformConstant
semantic:
decoration_flags: 0x00000000 # NONE
built_in: 0 # Position
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
format: 0 # VK_FORMAT_UNDEFINED
type_description:
word_offset: { location: 0 }
- &iv13
spirv_id: 0
name:
location: 0
storage_class: 0 # UniformConstant
semantic:
decoration_flags: 0x00000000 # NONE
built_in: 0 # Position
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
format: 0 # VK_FORMAT_UNDEFINED
type_description:
word_offset: { location: 0 }
- &iv14
spirv_id: 21
name: "int_d"
location: 14
storage_class: 1 # Input
semantic:
decoration_flags: 0x00000040 # FLAT
built_in: -1 # ??? (-1)
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
array: { dims_count: 2, dims: [2,2,], stride: 0 }
member_count: 2
members:
- *iv12 #
- *iv13 #
format: 0 # VK_FORMAT_UNDEFINED
type_description: *td14
word_offset: { location: 134 }
- &iv15
spirv_id: 0
name:
location: 0
storage_class: 0 # UniformConstant
semantic:
decoration_flags: 0x00000000 # NONE
built_in: 0 # Position
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 0
members:
format: 0 # VK_FORMAT_UNDEFINED
type_description:
word_offset: { location: 0 }
- &iv16
spirv_id: 0
name:
location: 0
storage_class: 1 # Input
semantic:
decoration_flags: 0x00000000 # NONE
built_in: 0 # Position
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
array: { dims_count: 1, dims: [2,], stride: 0 }
member_count: 1
members:
- *iv15 #
format: 0 # VK_FORMAT_UNDEFINED
type_description: *td18
word_offset: { location: 0 }
- &iv17
spirv_id: 26
name: "in_e"
location: 22
storage_class: 1 # Input
semantic:
decoration_flags: 0x00000001 # BLOCK
built_in: 0 # [Position]
numeric:
scalar: { width: 0, signedness: 0 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
array: { dims_count: 0, dims: [], stride: 0 }
member_count: 1
members:
- *iv16 #
format: 0 # VK_FORMAT_UNDEFINED
type_description: *td19
word_offset: { location: 141 }
- &iv18
spirv_id: 30
name: "in_f"
location: 38
storage_class: 1 # Input
semantic:
decoration_flags: 0x00000040 # FLAT
built_in: -1 # ??? (-1)
numeric:
scalar: { width: 32, signedness: 1 }
vector: { component_count: 0 }
matrix: { column_count: 0, row_count: 0, stride: 0 }
array: { dims_count: 2, dims: [2,2,], stride: 0 }
member_count: 0
members:
format: 99 # VK_FORMAT_R32_SINT
type_description: *td20
word_offset: { location: 148 }
module:
generator: 8 # Khronos Glslang Reference Front End
entry_point_name: "main"
entry_point_id: 4
source_language: 2 # GLSL
source_language_version: 450
spirv_execution_model: 4 # Fragment
shader_stage: 0x00000010 # PS
descriptor_binding_count: 0
descriptor_bindings:
descriptor_set_count: 0
descriptor_sets:
input_variable_count: 6,
input_variables:
- *iv4 # "in_a"
- *iv7 # "int_b"
- *iv11 # "in_c"
- *iv14 # "int_d"
- *iv17 # "in_e"
- *iv18 # "in_f"
output_variable_count: 0,
output_variables:
push_constant_count: 0,
push_constants:
specialization_constant_count: 0,
specialization_constants:
...