dawn-cmake/test/tint/buffer/uniform/dynamic_index/read.wgsl.expected.spvasm

278 lines
14 KiB
Plaintext
Raw Normal View History

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 181
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main" %idx_1
OpExecutionMode %main LocalSize 1 1 1
OpName %idx_1 "idx_1"
OpName %ub_block_std140 "ub_block_std140"
OpMemberName %ub_block_std140 0 "inner"
OpName %S_std140 "S_std140"
OpMemberName %S_std140 0 "arr"
OpName %Inner_std140 "Inner_std140"
OpMemberName %Inner_std140 0 "scalar_f32"
OpMemberName %Inner_std140 1 "scalar_i32"
OpMemberName %Inner_std140 2 "scalar_u32"
OpMemberName %Inner_std140 3 "vec2_f32"
OpMemberName %Inner_std140 4 "vec2_i32"
OpMemberName %Inner_std140 5 "vec2_u32"
OpMemberName %Inner_std140 6 "vec3_f32"
OpMemberName %Inner_std140 7 "vec3_i32"
OpMemberName %Inner_std140 8 "vec3_u32"
OpMemberName %Inner_std140 9 "vec4_f32"
OpMemberName %Inner_std140 10 "vec4_i32"
OpMemberName %Inner_std140 11 "vec4_u32"
OpMemberName %Inner_std140 12 "mat2x2_f32_0"
OpMemberName %Inner_std140 13 "mat2x2_f32_1"
OpMemberName %Inner_std140 14 "mat2x3_f32"
OpMemberName %Inner_std140 15 "mat2x4_f32"
OpMemberName %Inner_std140 16 "mat3x2_f32_0"
OpMemberName %Inner_std140 17 "mat3x2_f32_1"
OpMemberName %Inner_std140 18 "mat3x2_f32_2"
OpMemberName %Inner_std140 19 "mat3x3_f32"
OpMemberName %Inner_std140 20 "mat3x4_f32"
OpMemberName %Inner_std140 21 "mat4x2_f32_0"
OpMemberName %Inner_std140 22 "mat4x2_f32_1"
OpMemberName %Inner_std140 23 "mat4x2_f32_2"
OpMemberName %Inner_std140 24 "mat4x2_f32_3"
OpMemberName %Inner_std140 25 "mat4x3_f32"
OpMemberName %Inner_std140 26 "mat4x4_f32"
OpMemberName %Inner_std140 27 "arr2_vec3_f32"
OpName %ub "ub"
OpName %load_ub_inner_arr_p0_mat2x2_f32 "load_ub_inner_arr_p0_mat2x2_f32"
OpName %p0 "p0"
OpName %load_ub_inner_arr_p0_mat3x2_f32 "load_ub_inner_arr_p0_mat3x2_f32"
OpName %p0_0 "p0"
OpName %load_ub_inner_arr_p0_mat4x2_f32 "load_ub_inner_arr_p0_mat4x2_f32"
OpName %p0_1 "p0"
OpName %main_inner "main_inner"
OpName %idx "idx"
OpName %main "main"
OpDecorate %idx_1 BuiltIn LocalInvocationIndex
OpDecorate %ub_block_std140 Block
OpMemberDecorate %ub_block_std140 0 Offset 0
OpMemberDecorate %S_std140 0 Offset 0
OpMemberDecorate %Inner_std140 0 Offset 0
OpMemberDecorate %Inner_std140 1 Offset 4
OpMemberDecorate %Inner_std140 2 Offset 8
OpMemberDecorate %Inner_std140 3 Offset 16
OpMemberDecorate %Inner_std140 4 Offset 24
OpMemberDecorate %Inner_std140 5 Offset 32
OpMemberDecorate %Inner_std140 6 Offset 48
OpMemberDecorate %Inner_std140 7 Offset 64
OpMemberDecorate %Inner_std140 8 Offset 80
OpMemberDecorate %Inner_std140 9 Offset 96
OpMemberDecorate %Inner_std140 10 Offset 112
OpMemberDecorate %Inner_std140 11 Offset 128
OpMemberDecorate %Inner_std140 12 Offset 144
OpMemberDecorate %Inner_std140 13 Offset 152
OpMemberDecorate %Inner_std140 14 Offset 160
OpMemberDecorate %Inner_std140 14 ColMajor
OpMemberDecorate %Inner_std140 14 MatrixStride 16
OpMemberDecorate %Inner_std140 15 Offset 192
OpMemberDecorate %Inner_std140 15 ColMajor
OpMemberDecorate %Inner_std140 15 MatrixStride 16
OpMemberDecorate %Inner_std140 16 Offset 224
OpMemberDecorate %Inner_std140 17 Offset 232
OpMemberDecorate %Inner_std140 18 Offset 240
OpMemberDecorate %Inner_std140 19 Offset 256
OpMemberDecorate %Inner_std140 19 ColMajor
OpMemberDecorate %Inner_std140 19 MatrixStride 16
OpMemberDecorate %Inner_std140 20 Offset 304
OpMemberDecorate %Inner_std140 20 ColMajor
OpMemberDecorate %Inner_std140 20 MatrixStride 16
OpMemberDecorate %Inner_std140 21 Offset 352
OpMemberDecorate %Inner_std140 22 Offset 360
OpMemberDecorate %Inner_std140 23 Offset 368
OpMemberDecorate %Inner_std140 24 Offset 376
OpMemberDecorate %Inner_std140 25 Offset 384
OpMemberDecorate %Inner_std140 25 ColMajor
OpMemberDecorate %Inner_std140 25 MatrixStride 16
OpMemberDecorate %Inner_std140 26 Offset 448
OpMemberDecorate %Inner_std140 26 ColMajor
OpMemberDecorate %Inner_std140 26 MatrixStride 16
OpMemberDecorate %Inner_std140 27 Offset 512
OpDecorate %_arr_v3float_uint_2 ArrayStride 16
OpDecorate %_arr_Inner_std140_uint_8 ArrayStride 544
OpDecorate %ub NonWritable
OpDecorate %ub Binding 0
OpDecorate %ub DescriptorSet 0
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%idx_1 = OpVariable %_ptr_Input_uint Input
%float = OpTypeFloat 32
%int = OpTypeInt 32 1
%v2float = OpTypeVector %float 2
%v2int = OpTypeVector %int 2
%v2uint = OpTypeVector %uint 2
%v3float = OpTypeVector %float 3
%v3int = OpTypeVector %int 3
%v3uint = OpTypeVector %uint 3
%v4float = OpTypeVector %float 4
%v4int = OpTypeVector %int 4
%v4uint = OpTypeVector %uint 4
%mat2v3float = OpTypeMatrix %v3float 2
%mat2v4float = OpTypeMatrix %v4float 2
%mat3v3float = OpTypeMatrix %v3float 3
%mat3v4float = OpTypeMatrix %v4float 3
%mat4v3float = OpTypeMatrix %v3float 4
%mat4v4float = OpTypeMatrix %v4float 4
%uint_2 = OpConstant %uint 2
%_arr_v3float_uint_2 = OpTypeArray %v3float %uint_2
%Inner_std140 = OpTypeStruct %float %int %uint %v2float %v2int %v2uint %v3float %v3int %v3uint %v4float %v4int %v4uint %v2float %v2float %mat2v3float %mat2v4float %v2float %v2float %v2float %mat3v3float %mat3v4float %v2float %v2float %v2float %v2float %mat4v3float %mat4v4float %_arr_v3float_uint_2
%uint_8 = OpConstant %uint 8
%_arr_Inner_std140_uint_8 = OpTypeArray %Inner_std140 %uint_8
%S_std140 = OpTypeStruct %_arr_Inner_std140_uint_8
%ub_block_std140 = OpTypeStruct %S_std140
%_ptr_Uniform_ub_block_std140 = OpTypePointer Uniform %ub_block_std140
%ub = OpVariable %_ptr_Uniform_ub_block_std140 Uniform
%mat2v2float = OpTypeMatrix %v2float 2
%30 = OpTypeFunction %mat2v2float %uint
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_Inner_std140 = OpTypePointer Uniform %Inner_std140
%uint_12 = OpConstant %uint 12
%_ptr_Uniform_v2float = OpTypePointer Uniform %v2float
%uint_13 = OpConstant %uint 13
%mat3v2float = OpTypeMatrix %v2float 3
%49 = OpTypeFunction %mat3v2float %uint
%uint_16 = OpConstant %uint 16
%uint_17 = OpConstant %uint 17
%uint_18 = OpConstant %uint 18
%mat4v2float = OpTypeMatrix %v2float 4
%69 = OpTypeFunction %mat4v2float %uint
%uint_21 = OpConstant %uint 21
%uint_22 = OpConstant %uint 22
%uint_23 = OpConstant %uint 23
%uint_24 = OpConstant %uint 24
%void = OpTypeVoid
%93 = OpTypeFunction %void %uint
%_ptr_Uniform_float = OpTypePointer Uniform %float
%uint_1 = OpConstant %uint 1
%_ptr_Uniform_int = OpTypePointer Uniform %int
%_ptr_Uniform_uint = OpTypePointer Uniform %uint
%uint_3 = OpConstant %uint 3
%uint_4 = OpConstant %uint 4
%_ptr_Uniform_v2int = OpTypePointer Uniform %v2int
%uint_5 = OpConstant %uint 5
%_ptr_Uniform_v2uint = OpTypePointer Uniform %v2uint
%uint_6 = OpConstant %uint 6
%_ptr_Uniform_v3float = OpTypePointer Uniform %v3float
%uint_7 = OpConstant %uint 7
%_ptr_Uniform_v3int = OpTypePointer Uniform %v3int
%_ptr_Uniform_v3uint = OpTypePointer Uniform %v3uint
%uint_9 = OpConstant %uint 9
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
%uint_10 = OpConstant %uint 10
%_ptr_Uniform_v4int = OpTypePointer Uniform %v4int
%uint_11 = OpConstant %uint 11
%_ptr_Uniform_v4uint = OpTypePointer Uniform %v4uint
%uint_14 = OpConstant %uint 14
%_ptr_Uniform_mat2v3float = OpTypePointer Uniform %mat2v3float
%uint_15 = OpConstant %uint 15
%_ptr_Uniform_mat2v4float = OpTypePointer Uniform %mat2v4float
%uint_19 = OpConstant %uint 19
%_ptr_Uniform_mat3v3float = OpTypePointer Uniform %mat3v3float
%uint_20 = OpConstant %uint 20
%_ptr_Uniform_mat3v4float = OpTypePointer Uniform %mat3v4float
%uint_25 = OpConstant %uint 25
%_ptr_Uniform_mat4v3float = OpTypePointer Uniform %mat4v3float
%uint_26 = OpConstant %uint 26
%_ptr_Uniform_mat4v4float = OpTypePointer Uniform %mat4v4float
%uint_27 = OpConstant %uint 27
%_ptr_Uniform__arr_v3float_uint_2 = OpTypePointer Uniform %_arr_v3float_uint_2
%176 = OpTypeFunction %void
%load_ub_inner_arr_p0_mat2x2_f32 = OpFunction %mat2v2float None %30
%p0 = OpFunctionParameter %uint
%34 = OpLabel
%38 = OpAccessChain %_ptr_Uniform_Inner_std140 %ub %uint_0 %uint_0 %p0
%42 = OpAccessChain %_ptr_Uniform_v2float %38 %uint_12
%43 = OpLoad %v2float %42
%46 = OpAccessChain %_ptr_Uniform_v2float %38 %uint_13
%47 = OpLoad %v2float %46
%48 = OpCompositeConstruct %mat2v2float %43 %47
OpReturnValue %48
OpFunctionEnd
%load_ub_inner_arr_p0_mat3x2_f32 = OpFunction %mat3v2float None %49
%p0_0 = OpFunctionParameter %uint
%53 = OpLabel
%55 = OpAccessChain %_ptr_Uniform_Inner_std140 %ub %uint_0 %uint_0 %p0_0
%58 = OpAccessChain %_ptr_Uniform_v2float %55 %uint_16
%59 = OpLoad %v2float %58
%62 = OpAccessChain %_ptr_Uniform_v2float %55 %uint_17
%63 = OpLoad %v2float %62
%66 = OpAccessChain %_ptr_Uniform_v2float %55 %uint_18
%67 = OpLoad %v2float %66
%68 = OpCompositeConstruct %mat3v2float %59 %63 %67
OpReturnValue %68
OpFunctionEnd
%load_ub_inner_arr_p0_mat4x2_f32 = OpFunction %mat4v2float None %69
%p0_1 = OpFunctionParameter %uint
%73 = OpLabel
%75 = OpAccessChain %_ptr_Uniform_Inner_std140 %ub %uint_0 %uint_0 %p0_1
%78 = OpAccessChain %_ptr_Uniform_v2float %75 %uint_21
%79 = OpLoad %v2float %78
%82 = OpAccessChain %_ptr_Uniform_v2float %75 %uint_22
%83 = OpLoad %v2float %82
%86 = OpAccessChain %_ptr_Uniform_v2float %75 %uint_23
%87 = OpLoad %v2float %86
%90 = OpAccessChain %_ptr_Uniform_v2float %75 %uint_24
%91 = OpLoad %v2float %90
%92 = OpCompositeConstruct %mat4v2float %79 %83 %87 %91
OpReturnValue %92
OpFunctionEnd
%main_inner = OpFunction %void None %93
%idx = OpFunctionParameter %uint
%97 = OpLabel
%99 = OpAccessChain %_ptr_Uniform_float %ub %uint_0 %uint_0 %idx %uint_0
%100 = OpLoad %float %99
%103 = OpAccessChain %_ptr_Uniform_int %ub %uint_0 %uint_0 %idx %uint_1
%104 = OpLoad %int %103
%106 = OpAccessChain %_ptr_Uniform_uint %ub %uint_0 %uint_0 %idx %uint_2
%107 = OpLoad %uint %106
%109 = OpAccessChain %_ptr_Uniform_v2float %ub %uint_0 %uint_0 %idx %uint_3
%110 = OpLoad %v2float %109
%113 = OpAccessChain %_ptr_Uniform_v2int %ub %uint_0 %uint_0 %idx %uint_4
%114 = OpLoad %v2int %113
%117 = OpAccessChain %_ptr_Uniform_v2uint %ub %uint_0 %uint_0 %idx %uint_5
%118 = OpLoad %v2uint %117
%121 = OpAccessChain %_ptr_Uniform_v3float %ub %uint_0 %uint_0 %idx %uint_6
%122 = OpLoad %v3float %121
%125 = OpAccessChain %_ptr_Uniform_v3int %ub %uint_0 %uint_0 %idx %uint_7
%126 = OpLoad %v3int %125
%128 = OpAccessChain %_ptr_Uniform_v3uint %ub %uint_0 %uint_0 %idx %uint_8
%129 = OpLoad %v3uint %128
%132 = OpAccessChain %_ptr_Uniform_v4float %ub %uint_0 %uint_0 %idx %uint_9
%133 = OpLoad %v4float %132
%136 = OpAccessChain %_ptr_Uniform_v4int %ub %uint_0 %uint_0 %idx %uint_10
%137 = OpLoad %v4int %136
%140 = OpAccessChain %_ptr_Uniform_v4uint %ub %uint_0 %uint_0 %idx %uint_11
%141 = OpLoad %v4uint %140
%142 = OpFunctionCall %mat2v2float %load_ub_inner_arr_p0_mat2x2_f32 %idx
%146 = OpAccessChain %_ptr_Uniform_mat2v3float %ub %uint_0 %uint_0 %idx %uint_14
%147 = OpLoad %mat2v3float %146
%150 = OpAccessChain %_ptr_Uniform_mat2v4float %ub %uint_0 %uint_0 %idx %uint_15
%151 = OpLoad %mat2v4float %150
%152 = OpFunctionCall %mat3v2float %load_ub_inner_arr_p0_mat3x2_f32 %idx
%156 = OpAccessChain %_ptr_Uniform_mat3v3float %ub %uint_0 %uint_0 %idx %uint_19
%157 = OpLoad %mat3v3float %156
%160 = OpAccessChain %_ptr_Uniform_mat3v4float %ub %uint_0 %uint_0 %idx %uint_20
%161 = OpLoad %mat3v4float %160
%162 = OpFunctionCall %mat4v2float %load_ub_inner_arr_p0_mat4x2_f32 %idx
%166 = OpAccessChain %_ptr_Uniform_mat4v3float %ub %uint_0 %uint_0 %idx %uint_25
%167 = OpLoad %mat4v3float %166
%170 = OpAccessChain %_ptr_Uniform_mat4v4float %ub %uint_0 %uint_0 %idx %uint_26
%171 = OpLoad %mat4v4float %170
%174 = OpAccessChain %_ptr_Uniform__arr_v3float_uint_2 %ub %uint_0 %uint_0 %idx %uint_27
%175 = OpLoad %_arr_v3float_uint_2 %174
OpReturn
OpFunctionEnd
%main = OpFunction %void None %176
%178 = OpLabel
%180 = OpLoad %uint %idx_1
%179 = OpFunctionCall %void %main_inner %180
OpReturn
OpFunctionEnd