blob: 2acc0d66143cc3ea73426adaaaaf6f36044aaf1a [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 466
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
%57 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main" %main_local_invocation_index_Input
OpExecutionMode %main LocalSize 1 1 1
OpMemberName %Inner_tint_explicit_layout 0 "scalar_f32"
OpMemberName %Inner_tint_explicit_layout 1 "scalar_i32"
OpMemberName %Inner_tint_explicit_layout 2 "scalar_u32"
OpMemberName %Inner_tint_explicit_layout 3 "scalar_f16"
OpMemberName %Inner_tint_explicit_layout 4 "vec2_f32"
OpMemberName %Inner_tint_explicit_layout 5 "vec2_i32"
OpMemberName %Inner_tint_explicit_layout 6 "vec2_u32"
OpMemberName %Inner_tint_explicit_layout 7 "vec2_f16"
OpMemberName %Inner_tint_explicit_layout 8 "vec3_f32"
OpMemberName %Inner_tint_explicit_layout 9 "vec3_i32"
OpMemberName %Inner_tint_explicit_layout 10 "vec3_u32"
OpMemberName %Inner_tint_explicit_layout 11 "vec3_f16"
OpMemberName %Inner_tint_explicit_layout 12 "vec4_f32"
OpMemberName %Inner_tint_explicit_layout 13 "vec4_i32"
OpMemberName %Inner_tint_explicit_layout 14 "vec4_u32"
OpMemberName %Inner_tint_explicit_layout 15 "vec4_f16"
OpMemberName %Inner_tint_explicit_layout 16 "mat2x2_f32"
OpMemberName %Inner_tint_explicit_layout 17 "mat2x3_f32"
OpMemberName %Inner_tint_explicit_layout 18 "mat2x4_f32"
OpMemberName %Inner_tint_explicit_layout 19 "mat3x2_f32"
OpMemberName %Inner_tint_explicit_layout 20 "mat3x3_f32"
OpMemberName %Inner_tint_explicit_layout 21 "mat3x4_f32"
OpMemberName %Inner_tint_explicit_layout 22 "mat4x2_f32"
OpMemberName %Inner_tint_explicit_layout 23 "mat4x3_f32"
OpMemberName %Inner_tint_explicit_layout 24 "mat4x4_f32"
OpMemberName %Inner_tint_explicit_layout 25 "mat2x2_f16"
OpMemberName %Inner_tint_explicit_layout 26 "mat2x3_f16"
OpMemberName %Inner_tint_explicit_layout 27 "mat2x4_f16"
OpMemberName %Inner_tint_explicit_layout 28 "mat3x2_f16"
OpMemberName %Inner_tint_explicit_layout 29 "mat3x3_f16"
OpMemberName %Inner_tint_explicit_layout 30 "mat3x4_f16"
OpMemberName %Inner_tint_explicit_layout 31 "mat4x2_f16"
OpMemberName %Inner_tint_explicit_layout 32 "mat4x3_f16"
OpMemberName %Inner_tint_explicit_layout 33 "mat4x4_f16"
OpMemberName %Inner_tint_explicit_layout 34 "arr2_vec3_f32"
OpMemberName %Inner_tint_explicit_layout 35 "arr2_mat4x2_f16"
OpName %Inner_tint_explicit_layout "Inner_tint_explicit_layout"
OpMemberName %S_tint_explicit_layout 0 "arr"
OpName %S_tint_explicit_layout "S_tint_explicit_layout"
OpName %sb "sb"
OpName %main_local_invocation_index_Input "main_local_invocation_index_Input"
OpName %main_inner "main_inner"
OpName %idx "idx"
OpName %tint_store_and_preserve_padding "tint_store_and_preserve_padding"
OpName %target_indices "target_indices"
OpName %value_param "value_param"
OpName %tint_store_and_preserve_padding_0 "tint_store_and_preserve_padding"
OpName %target_indices_0 "target_indices"
OpName %value_param_0 "value_param"
OpName %tint_store_and_preserve_padding_1 "tint_store_and_preserve_padding"
OpName %target_indices_1 "target_indices"
OpName %value_param_1 "value_param"
OpName %tint_store_and_preserve_padding_2 "tint_store_and_preserve_padding"
OpName %target_indices_2 "target_indices"
OpName %value_param_2 "value_param"
OpName %tint_store_and_preserve_padding_3 "tint_store_and_preserve_padding"
OpName %target_indices_3 "target_indices"
OpName %value_param_3 "value_param"
OpName %tint_store_and_preserve_padding_4 "tint_store_and_preserve_padding"
OpName %target_indices_4 "target_indices"
OpName %value_param_4 "value_param"
OpName %tint_store_and_preserve_padding_5 "tint_store_and_preserve_padding"
OpName %target_indices_5 "target_indices"
OpName %value_param_5 "value_param"
OpName %main "main"
OpName %tint_convert_explicit_layout "tint_convert_explicit_layout"
OpName %tint_source "tint_source"
OpMemberDecorate %Inner_tint_explicit_layout 0 Offset 0
OpMemberDecorate %Inner_tint_explicit_layout 1 Offset 4
OpMemberDecorate %Inner_tint_explicit_layout 2 Offset 8
OpMemberDecorate %Inner_tint_explicit_layout 3 Offset 12
OpMemberDecorate %Inner_tint_explicit_layout 4 Offset 16
OpMemberDecorate %Inner_tint_explicit_layout 5 Offset 24
OpMemberDecorate %Inner_tint_explicit_layout 6 Offset 32
OpMemberDecorate %Inner_tint_explicit_layout 7 Offset 40
OpMemberDecorate %Inner_tint_explicit_layout 8 Offset 48
OpMemberDecorate %Inner_tint_explicit_layout 9 Offset 64
OpMemberDecorate %Inner_tint_explicit_layout 10 Offset 80
OpMemberDecorate %Inner_tint_explicit_layout 11 Offset 96
OpMemberDecorate %Inner_tint_explicit_layout 12 Offset 112
OpMemberDecorate %Inner_tint_explicit_layout 13 Offset 128
OpMemberDecorate %Inner_tint_explicit_layout 14 Offset 144
OpMemberDecorate %Inner_tint_explicit_layout 15 Offset 160
OpMemberDecorate %Inner_tint_explicit_layout 16 Offset 168
OpMemberDecorate %Inner_tint_explicit_layout 16 ColMajor
OpMemberDecorate %Inner_tint_explicit_layout 16 MatrixStride 8
OpMemberDecorate %Inner_tint_explicit_layout 17 Offset 192
OpMemberDecorate %Inner_tint_explicit_layout 17 ColMajor
OpMemberDecorate %Inner_tint_explicit_layout 17 MatrixStride 16
OpMemberDecorate %Inner_tint_explicit_layout 18 Offset 224
OpMemberDecorate %Inner_tint_explicit_layout 18 ColMajor
OpMemberDecorate %Inner_tint_explicit_layout 18 MatrixStride 16
OpMemberDecorate %Inner_tint_explicit_layout 19 Offset 256
OpMemberDecorate %Inner_tint_explicit_layout 19 ColMajor
OpMemberDecorate %Inner_tint_explicit_layout 19 MatrixStride 8
OpMemberDecorate %Inner_tint_explicit_layout 20 Offset 288
OpMemberDecorate %Inner_tint_explicit_layout 20 ColMajor
OpMemberDecorate %Inner_tint_explicit_layout 20 MatrixStride 16
OpMemberDecorate %Inner_tint_explicit_layout 21 Offset 336
OpMemberDecorate %Inner_tint_explicit_layout 21 ColMajor
OpMemberDecorate %Inner_tint_explicit_layout 21 MatrixStride 16
OpMemberDecorate %Inner_tint_explicit_layout 22 Offset 384
OpMemberDecorate %Inner_tint_explicit_layout 22 ColMajor
OpMemberDecorate %Inner_tint_explicit_layout 22 MatrixStride 8
OpMemberDecorate %Inner_tint_explicit_layout 23 Offset 416
OpMemberDecorate %Inner_tint_explicit_layout 23 ColMajor
OpMemberDecorate %Inner_tint_explicit_layout 23 MatrixStride 16
OpMemberDecorate %Inner_tint_explicit_layout 24 Offset 480
OpMemberDecorate %Inner_tint_explicit_layout 24 ColMajor
OpMemberDecorate %Inner_tint_explicit_layout 24 MatrixStride 16
OpMemberDecorate %Inner_tint_explicit_layout 25 Offset 544
OpMemberDecorate %Inner_tint_explicit_layout 25 ColMajor
OpMemberDecorate %Inner_tint_explicit_layout 25 MatrixStride 4
OpMemberDecorate %Inner_tint_explicit_layout 26 Offset 552
OpMemberDecorate %Inner_tint_explicit_layout 26 ColMajor
OpMemberDecorate %Inner_tint_explicit_layout 26 MatrixStride 8
OpMemberDecorate %Inner_tint_explicit_layout 27 Offset 568
OpMemberDecorate %Inner_tint_explicit_layout 27 ColMajor
OpMemberDecorate %Inner_tint_explicit_layout 27 MatrixStride 8
OpMemberDecorate %Inner_tint_explicit_layout 28 Offset 584
OpMemberDecorate %Inner_tint_explicit_layout 28 ColMajor
OpMemberDecorate %Inner_tint_explicit_layout 28 MatrixStride 4
OpMemberDecorate %Inner_tint_explicit_layout 29 Offset 600
OpMemberDecorate %Inner_tint_explicit_layout 29 ColMajor
OpMemberDecorate %Inner_tint_explicit_layout 29 MatrixStride 8
OpMemberDecorate %Inner_tint_explicit_layout 30 Offset 624
OpMemberDecorate %Inner_tint_explicit_layout 30 ColMajor
OpMemberDecorate %Inner_tint_explicit_layout 30 MatrixStride 8
OpMemberDecorate %Inner_tint_explicit_layout 31 Offset 648
OpMemberDecorate %Inner_tint_explicit_layout 31 ColMajor
OpMemberDecorate %Inner_tint_explicit_layout 31 MatrixStride 4
OpMemberDecorate %Inner_tint_explicit_layout 32 Offset 664
OpMemberDecorate %Inner_tint_explicit_layout 32 ColMajor
OpMemberDecorate %Inner_tint_explicit_layout 32 MatrixStride 8
OpMemberDecorate %Inner_tint_explicit_layout 33 Offset 696
OpMemberDecorate %Inner_tint_explicit_layout 33 ColMajor
OpMemberDecorate %Inner_tint_explicit_layout 33 MatrixStride 8
OpDecorate %_arr_v3float_uint_2 ArrayStride 16
OpMemberDecorate %Inner_tint_explicit_layout 34 Offset 736
OpDecorate %_arr_mat4v2half_uint_2 ArrayStride 16
OpMemberDecorate %Inner_tint_explicit_layout 35 Offset 768
OpMemberDecorate %Inner_tint_explicit_layout 35 ColMajor
OpMemberDecorate %Inner_tint_explicit_layout 35 MatrixStride 4
OpDecorate %_runtimearr_Inner_tint_explicit_layout ArrayStride 800
OpMemberDecorate %S_tint_explicit_layout 0 Offset 0
OpDecorate %S_tint_explicit_layout Block
OpDecorate %sb DescriptorSet 0
OpDecorate %sb Binding 0
OpDecorate %sb Coherent
OpDecorate %main_local_invocation_index_Input BuiltIn LocalInvocationIndex
%float = OpTypeFloat 32
%int = OpTypeInt 32 1
%uint = OpTypeInt 32 0
%half = OpTypeFloat 16
%v2float = OpTypeVector %float 2
%v2int = OpTypeVector %int 2
%v2uint = OpTypeVector %uint 2
%v2half = OpTypeVector %half 2
%v3float = OpTypeVector %float 3
%v3int = OpTypeVector %int 3
%v3uint = OpTypeVector %uint 3
%v3half = OpTypeVector %half 3
%v4float = OpTypeVector %float 4
%v4int = OpTypeVector %int 4
%v4uint = OpTypeVector %uint 4
%v4half = OpTypeVector %half 4
%mat2v2float = OpTypeMatrix %v2float 2
%mat2v3float = OpTypeMatrix %v3float 2
%mat2v4float = OpTypeMatrix %v4float 2
%mat3v2float = OpTypeMatrix %v2float 3
%mat3v3float = OpTypeMatrix %v3float 3
%mat3v4float = OpTypeMatrix %v4float 3
%mat4v2float = OpTypeMatrix %v2float 4
%mat4v3float = OpTypeMatrix %v3float 4
%mat4v4float = OpTypeMatrix %v4float 4
%mat2v2half = OpTypeMatrix %v2half 2
%mat2v3half = OpTypeMatrix %v3half 2
%mat2v4half = OpTypeMatrix %v4half 2
%mat3v2half = OpTypeMatrix %v2half 3
%mat3v3half = OpTypeMatrix %v3half 3
%mat3v4half = OpTypeMatrix %v4half 3
%mat4v2half = OpTypeMatrix %v2half 4
%mat4v3half = OpTypeMatrix %v3half 4
%mat4v4half = OpTypeMatrix %v4half 4
%uint_2 = OpConstant %uint 2
%_arr_v3float_uint_2 = OpTypeArray %v3float %uint_2
%_arr_mat4v2half_uint_2 = OpTypeArray %mat4v2half %uint_2
%Inner_tint_explicit_layout = OpTypeStruct %float %int %uint %half %v2float %v2int %v2uint %v2half %v3float %v3int %v3uint %v3half %v4float %v4int %v4uint %v4half %mat2v2float %mat2v3float %mat2v4float %mat3v2float %mat3v3float %mat3v4float %mat4v2float %mat4v3float %mat4v4float %mat2v2half %mat2v3half %mat2v4half %mat3v2half %mat3v3half %mat3v4half %mat4v2half %mat4v3half %mat4v4half %_arr_v3float_uint_2 %_arr_mat4v2half_uint_2
%_runtimearr_Inner_tint_explicit_layout = OpTypeRuntimeArray %Inner_tint_explicit_layout
%S_tint_explicit_layout = OpTypeStruct %_runtimearr_Inner_tint_explicit_layout
%_ptr_StorageBuffer_S_tint_explicit_layout = OpTypePointer StorageBuffer %S_tint_explicit_layout
%sb = OpVariable %_ptr_StorageBuffer_S_tint_explicit_layout StorageBuffer
%_ptr_Input_uint = OpTypePointer Input %uint
%main_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input
%void = OpTypeVoid
%48 = OpTypeFunction %void %uint
%_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout = OpTypePointer StorageBuffer %_runtimearr_Inner_tint_explicit_layout
%uint_0 = OpConstant %uint 0
%uint_1 = OpConstant %uint 1
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
%float_0 = OpConstant %float 0
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
%int_0 = OpConstant %int 0
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
%_ptr_StorageBuffer_half = OpTypePointer StorageBuffer %half
%uint_3 = OpConstant %uint 3
%half_0x0p_0 = OpConstant %half 0x0p+0
%_ptr_StorageBuffer_v2float = OpTypePointer StorageBuffer %v2float
%uint_4 = OpConstant %uint 4
%89 = OpConstantNull %v2float
%_ptr_StorageBuffer_v2int = OpTypePointer StorageBuffer %v2int
%uint_5 = OpConstant %uint 5
%97 = OpConstantNull %v2int
%_ptr_StorageBuffer_v2uint = OpTypePointer StorageBuffer %v2uint
%uint_6 = OpConstant %uint 6
%105 = OpConstantNull %v2uint
%_ptr_StorageBuffer_v2half = OpTypePointer StorageBuffer %v2half
%uint_7 = OpConstant %uint 7
%113 = OpConstantNull %v2half
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
%uint_8 = OpConstant %uint 8
%121 = OpConstantNull %v3float
%_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int
%uint_9 = OpConstant %uint 9
%129 = OpConstantNull %v3int
%_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint
%uint_10 = OpConstant %uint 10
%137 = OpConstantNull %v3uint
%_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half
%uint_11 = OpConstant %uint 11
%145 = OpConstantNull %v3half
%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
%uint_12 = OpConstant %uint 12
%153 = OpConstantNull %v4float
%_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int
%uint_13 = OpConstant %uint 13
%161 = OpConstantNull %v4int
%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
%uint_14 = OpConstant %uint 14
%169 = OpConstantNull %v4uint
%_ptr_StorageBuffer_v4half = OpTypePointer StorageBuffer %v4half
%uint_15 = OpConstant %uint 15
%177 = OpConstantNull %v4half
%_ptr_StorageBuffer_mat2v2float = OpTypePointer StorageBuffer %mat2v2float
%uint_16 = OpConstant %uint 16
%185 = OpConstantNull %mat2v2float
%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
%194 = OpConstantNull %mat2v3float
%_ptr_StorageBuffer_mat2v4float = OpTypePointer StorageBuffer %mat2v4float
%uint_18 = OpConstant %uint 18
%202 = OpConstantNull %mat2v4float
%_ptr_StorageBuffer_mat3v2float = OpTypePointer StorageBuffer %mat3v2float
%uint_19 = OpConstant %uint 19
%210 = OpConstantNull %mat3v2float
%218 = OpConstantNull %mat3v3float
%_ptr_StorageBuffer_mat3v4float = OpTypePointer StorageBuffer %mat3v4float
%uint_21 = OpConstant %uint 21
%226 = OpConstantNull %mat3v4float
%_ptr_StorageBuffer_mat4v2float = OpTypePointer StorageBuffer %mat4v2float
%uint_22 = OpConstant %uint 22
%234 = OpConstantNull %mat4v2float
%242 = OpConstantNull %mat4v3float
%_ptr_StorageBuffer_mat4v4float = OpTypePointer StorageBuffer %mat4v4float
%uint_24 = OpConstant %uint 24
%250 = OpConstantNull %mat4v4float
%_ptr_StorageBuffer_mat2v2half = OpTypePointer StorageBuffer %mat2v2half
%uint_25 = OpConstant %uint 25
%258 = OpConstantNull %mat2v2half
%266 = OpConstantNull %mat2v3half
%_ptr_StorageBuffer_mat2v4half = OpTypePointer StorageBuffer %mat2v4half
%uint_27 = OpConstant %uint 27
%274 = OpConstantNull %mat2v4half
%_ptr_StorageBuffer_mat3v2half = OpTypePointer StorageBuffer %mat3v2half
%uint_28 = OpConstant %uint 28
%282 = OpConstantNull %mat3v2half
%290 = OpConstantNull %mat3v3half
%_ptr_StorageBuffer_mat3v4half = OpTypePointer StorageBuffer %mat3v4half
%uint_30 = OpConstant %uint 30
%298 = OpConstantNull %mat3v4half
%_ptr_StorageBuffer_mat4v2half = OpTypePointer StorageBuffer %mat4v2half
%uint_31 = OpConstant %uint 31
%306 = OpConstantNull %mat4v2half
%314 = OpConstantNull %mat4v3half
%_ptr_StorageBuffer_mat4v4half = OpTypePointer StorageBuffer %mat4v4half
%uint_33 = OpConstant %uint 33
%322 = OpConstantNull %mat4v4half
%_arr_v3float_uint_2_0 = OpTypeArray %v3float %uint_2
%330 = OpConstantNull %_arr_v3float_uint_2_0
%_ptr_StorageBuffer__arr_mat4v2half_uint_2 = OpTypePointer StorageBuffer %_arr_mat4v2half_uint_2
%uint_35 = OpConstant %uint 35
%_arr_mat4v2half_uint_2_0 = OpTypeArray %mat4v2half %uint_2
%341 = OpConstantNull %_arr_mat4v2half_uint_2_0
%345 = OpTypeFunction %void %_arr_uint_uint_1 %mat2v3float
%uint_17 = OpConstant %uint 17
%355 = OpTypeFunction %void %_arr_uint_uint_1 %mat3v3float
%uint_20 = OpConstant %uint 20
%367 = OpTypeFunction %void %_arr_uint_uint_1 %mat4v3float
%uint_23 = OpConstant %uint 23
%381 = OpTypeFunction %void %_arr_uint_uint_1 %mat2v3half
%uint_26 = OpConstant %uint 26
%391 = OpTypeFunction %void %_arr_uint_uint_1 %mat3v3half
%uint_29 = OpConstant %uint 29
%403 = OpTypeFunction %void %_arr_uint_uint_1 %mat4v3half
%uint_32 = OpConstant %uint 32
%417 = OpTypeFunction %void %_arr_uint_uint_1 %_arr_v3float_uint_2_0
%_ptr_Function__arr_v3float_uint_2_0 = OpTypePointer Function %_arr_v3float_uint_2_0
%bool = OpTypeBool
%uint_34 = OpConstant %uint 34
%_ptr_Function_v3float = OpTypePointer Function %v3float
%439 = OpTypeFunction %void
%444 = OpTypeFunction %_arr_mat4v2half_uint_2 %_arr_mat4v2half_uint_2_0
%_ptr_Function__arr_mat4v2half_uint_2_0 = OpTypePointer Function %_arr_mat4v2half_uint_2_0
%_ptr_Function__arr_mat4v2half_uint_2 = OpTypePointer Function %_arr_mat4v2half_uint_2
%450 = OpConstantNull %_arr_mat4v2half_uint_2
%_ptr_Function_mat4v2half = OpTypePointer Function %mat4v2half
%main_inner = OpFunction %void None %48
%idx = OpFunctionParameter %uint
%49 = OpLabel
%50 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%53 = OpArrayLength %uint %sb 0
%54 = OpISub %uint %53 %uint_1
%56 = OpExtInst %uint %57 UMin %idx %54
%58 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %56 %uint_0
OpStore %58 %float_0 None
%61 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%62 = OpArrayLength %uint %sb 0
%63 = OpISub %uint %62 %uint_1
%64 = OpExtInst %uint %57 UMin %idx %63
%65 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %64 %uint_1
OpStore %65 %int_0 None
%68 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%69 = OpArrayLength %uint %sb 0
%70 = OpISub %uint %69 %uint_1
%71 = OpExtInst %uint %57 UMin %idx %70
%72 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %71 %uint_2
OpStore %72 %uint_0 None
%74 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%75 = OpArrayLength %uint %sb 0
%76 = OpISub %uint %75 %uint_1
%77 = OpExtInst %uint %57 UMin %idx %76
%78 = OpAccessChain %_ptr_StorageBuffer_half %sb %uint_0 %77 %uint_3
OpStore %78 %half_0x0p_0 None
%82 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%83 = OpArrayLength %uint %sb 0
%84 = OpISub %uint %83 %uint_1
%85 = OpExtInst %uint %57 UMin %idx %84
%86 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %85 %uint_4
OpStore %86 %89 None
%90 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%91 = OpArrayLength %uint %sb 0
%92 = OpISub %uint %91 %uint_1
%93 = OpExtInst %uint %57 UMin %idx %92
%94 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %93 %uint_5
OpStore %94 %97 None
%98 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%99 = OpArrayLength %uint %sb 0
%100 = OpISub %uint %99 %uint_1
%101 = OpExtInst %uint %57 UMin %idx %100
%102 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %101 %uint_6
OpStore %102 %105 None
%106 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%107 = OpArrayLength %uint %sb 0
%108 = OpISub %uint %107 %uint_1
%109 = OpExtInst %uint %57 UMin %idx %108
%110 = OpAccessChain %_ptr_StorageBuffer_v2half %sb %uint_0 %109 %uint_7
OpStore %110 %113 None
%114 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%115 = OpArrayLength %uint %sb 0
%116 = OpISub %uint %115 %uint_1
%117 = OpExtInst %uint %57 UMin %idx %116
%118 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %117 %uint_8
OpStore %118 %121 None
%122 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%123 = OpArrayLength %uint %sb 0
%124 = OpISub %uint %123 %uint_1
%125 = OpExtInst %uint %57 UMin %idx %124
%126 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %125 %uint_9
OpStore %126 %129 None
%130 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%131 = OpArrayLength %uint %sb 0
%132 = OpISub %uint %131 %uint_1
%133 = OpExtInst %uint %57 UMin %idx %132
%134 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %133 %uint_10
OpStore %134 %137 None
%138 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%139 = OpArrayLength %uint %sb 0
%140 = OpISub %uint %139 %uint_1
%141 = OpExtInst %uint %57 UMin %idx %140
%142 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %141 %uint_11
OpStore %142 %145 None
%146 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%147 = OpArrayLength %uint %sb 0
%148 = OpISub %uint %147 %uint_1
%149 = OpExtInst %uint %57 UMin %idx %148
%150 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %149 %uint_12
OpStore %150 %153 None
%154 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%155 = OpArrayLength %uint %sb 0
%156 = OpISub %uint %155 %uint_1
%157 = OpExtInst %uint %57 UMin %idx %156
%158 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %157 %uint_13
OpStore %158 %161 None
%162 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%163 = OpArrayLength %uint %sb 0
%164 = OpISub %uint %163 %uint_1
%165 = OpExtInst %uint %57 UMin %idx %164
%166 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %165 %uint_14
OpStore %166 %169 None
%170 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%171 = OpArrayLength %uint %sb 0
%172 = OpISub %uint %171 %uint_1
%173 = OpExtInst %uint %57 UMin %idx %172
%174 = OpAccessChain %_ptr_StorageBuffer_v4half %sb %uint_0 %173 %uint_15
OpStore %174 %177 None
%178 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%179 = OpArrayLength %uint %sb 0
%180 = OpISub %uint %179 %uint_1
%181 = OpExtInst %uint %57 UMin %idx %180
%182 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %181 %uint_16
OpStore %182 %185 None
%186 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%187 = OpArrayLength %uint %sb 0
%188 = OpISub %uint %187 %uint_1
%189 = OpExtInst %uint %57 UMin %idx %188
%191 = OpCompositeConstruct %_arr_uint_uint_1 %189
%192 = OpFunctionCall %void %tint_store_and_preserve_padding %191 %194
%195 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%196 = OpArrayLength %uint %sb 0
%197 = OpISub %uint %196 %uint_1
%198 = OpExtInst %uint %57 UMin %idx %197
%199 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %198 %uint_18
OpStore %199 %202 None
%203 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%204 = OpArrayLength %uint %sb 0
%205 = OpISub %uint %204 %uint_1
%206 = OpExtInst %uint %57 UMin %idx %205
%207 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %206 %uint_19
OpStore %207 %210 None
%211 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%212 = OpArrayLength %uint %sb 0
%213 = OpISub %uint %212 %uint_1
%214 = OpExtInst %uint %57 UMin %idx %213
%215 = OpCompositeConstruct %_arr_uint_uint_1 %214
%216 = OpFunctionCall %void %tint_store_and_preserve_padding_0 %215 %218
%219 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%220 = OpArrayLength %uint %sb 0
%221 = OpISub %uint %220 %uint_1
%222 = OpExtInst %uint %57 UMin %idx %221
%223 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %222 %uint_21
OpStore %223 %226 None
%227 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%228 = OpArrayLength %uint %sb 0
%229 = OpISub %uint %228 %uint_1
%230 = OpExtInst %uint %57 UMin %idx %229
%231 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %230 %uint_22
OpStore %231 %234 None
%235 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%236 = OpArrayLength %uint %sb 0
%237 = OpISub %uint %236 %uint_1
%238 = OpExtInst %uint %57 UMin %idx %237
%239 = OpCompositeConstruct %_arr_uint_uint_1 %238
%240 = OpFunctionCall %void %tint_store_and_preserve_padding_1 %239 %242
%243 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%244 = OpArrayLength %uint %sb 0
%245 = OpISub %uint %244 %uint_1
%246 = OpExtInst %uint %57 UMin %idx %245
%247 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %246 %uint_24
OpStore %247 %250 None
%251 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%252 = OpArrayLength %uint %sb 0
%253 = OpISub %uint %252 %uint_1
%254 = OpExtInst %uint %57 UMin %idx %253
%255 = OpAccessChain %_ptr_StorageBuffer_mat2v2half %sb %uint_0 %254 %uint_25
OpStore %255 %258 None
%259 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%260 = OpArrayLength %uint %sb 0
%261 = OpISub %uint %260 %uint_1
%262 = OpExtInst %uint %57 UMin %idx %261
%263 = OpCompositeConstruct %_arr_uint_uint_1 %262
%264 = OpFunctionCall %void %tint_store_and_preserve_padding_2 %263 %266
%267 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%268 = OpArrayLength %uint %sb 0
%269 = OpISub %uint %268 %uint_1
%270 = OpExtInst %uint %57 UMin %idx %269
%271 = OpAccessChain %_ptr_StorageBuffer_mat2v4half %sb %uint_0 %270 %uint_27
OpStore %271 %274 None
%275 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%276 = OpArrayLength %uint %sb 0
%277 = OpISub %uint %276 %uint_1
%278 = OpExtInst %uint %57 UMin %idx %277
%279 = OpAccessChain %_ptr_StorageBuffer_mat3v2half %sb %uint_0 %278 %uint_28
OpStore %279 %282 None
%283 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%284 = OpArrayLength %uint %sb 0
%285 = OpISub %uint %284 %uint_1
%286 = OpExtInst %uint %57 UMin %idx %285
%287 = OpCompositeConstruct %_arr_uint_uint_1 %286
%288 = OpFunctionCall %void %tint_store_and_preserve_padding_3 %287 %290
%291 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%292 = OpArrayLength %uint %sb 0
%293 = OpISub %uint %292 %uint_1
%294 = OpExtInst %uint %57 UMin %idx %293
%295 = OpAccessChain %_ptr_StorageBuffer_mat3v4half %sb %uint_0 %294 %uint_30
OpStore %295 %298 None
%299 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%300 = OpArrayLength %uint %sb 0
%301 = OpISub %uint %300 %uint_1
%302 = OpExtInst %uint %57 UMin %idx %301
%303 = OpAccessChain %_ptr_StorageBuffer_mat4v2half %sb %uint_0 %302 %uint_31
OpStore %303 %306 None
%307 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%308 = OpArrayLength %uint %sb 0
%309 = OpISub %uint %308 %uint_1
%310 = OpExtInst %uint %57 UMin %idx %309
%311 = OpCompositeConstruct %_arr_uint_uint_1 %310
%312 = OpFunctionCall %void %tint_store_and_preserve_padding_4 %311 %314
%315 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%316 = OpArrayLength %uint %sb 0
%317 = OpISub %uint %316 %uint_1
%318 = OpExtInst %uint %57 UMin %idx %317
%319 = OpAccessChain %_ptr_StorageBuffer_mat4v4half %sb %uint_0 %318 %uint_33
OpStore %319 %322 None
%323 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%324 = OpArrayLength %uint %sb 0
%325 = OpISub %uint %324 %uint_1
%326 = OpExtInst %uint %57 UMin %idx %325
%327 = OpCompositeConstruct %_arr_uint_uint_1 %326
%328 = OpFunctionCall %void %tint_store_and_preserve_padding_5 %327 %330
%332 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0
%333 = OpArrayLength %uint %sb 0
%334 = OpISub %uint %333 %uint_1
%335 = OpExtInst %uint %57 UMin %idx %334
%336 = OpAccessChain %_ptr_StorageBuffer__arr_mat4v2half_uint_2 %sb %uint_0 %335 %uint_35
%339 = OpFunctionCall %_arr_mat4v2half_uint_2 %tint_convert_explicit_layout %341
OpStore %336 %339 None
OpReturn
OpFunctionEnd
%tint_store_and_preserve_padding = OpFunction %void None %345
%target_indices = OpFunctionParameter %_arr_uint_uint_1
%value_param = OpFunctionParameter %mat2v3float
%346 = OpLabel
%347 = OpCompositeExtract %uint %target_indices 0
%348 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %347 %uint_17 %uint_0
%350 = OpCompositeExtract %v3float %value_param 0
OpStore %348 %350 None
%351 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %347 %uint_17 %uint_1
%352 = OpCompositeExtract %v3float %value_param 1
OpStore %351 %352 None
OpReturn
OpFunctionEnd
%tint_store_and_preserve_padding_0 = OpFunction %void None %355
%target_indices_0 = OpFunctionParameter %_arr_uint_uint_1
%value_param_0 = OpFunctionParameter %mat3v3float
%356 = OpLabel
%357 = OpCompositeExtract %uint %target_indices_0 0
%358 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %357 %uint_20 %uint_0
%360 = OpCompositeExtract %v3float %value_param_0 0
OpStore %358 %360 None
%361 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %357 %uint_20 %uint_1
%362 = OpCompositeExtract %v3float %value_param_0 1
OpStore %361 %362 None
%363 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %357 %uint_20 %uint_2
%364 = OpCompositeExtract %v3float %value_param_0 2
OpStore %363 %364 None
OpReturn
OpFunctionEnd
%tint_store_and_preserve_padding_1 = OpFunction %void None %367
%target_indices_1 = OpFunctionParameter %_arr_uint_uint_1
%value_param_1 = OpFunctionParameter %mat4v3float
%368 = OpLabel
%369 = OpCompositeExtract %uint %target_indices_1 0
%370 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %369 %uint_23 %uint_0
%372 = OpCompositeExtract %v3float %value_param_1 0
OpStore %370 %372 None
%373 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %369 %uint_23 %uint_1
%374 = OpCompositeExtract %v3float %value_param_1 1
OpStore %373 %374 None
%375 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %369 %uint_23 %uint_2
%376 = OpCompositeExtract %v3float %value_param_1 2
OpStore %375 %376 None
%377 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %369 %uint_23 %uint_3
%378 = OpCompositeExtract %v3float %value_param_1 3
OpStore %377 %378 None
OpReturn
OpFunctionEnd
%tint_store_and_preserve_padding_2 = OpFunction %void None %381
%target_indices_2 = OpFunctionParameter %_arr_uint_uint_1
%value_param_2 = OpFunctionParameter %mat2v3half
%382 = OpLabel
%383 = OpCompositeExtract %uint %target_indices_2 0
%384 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %383 %uint_26 %uint_0
%386 = OpCompositeExtract %v3half %value_param_2 0
OpStore %384 %386 None
%387 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %383 %uint_26 %uint_1
%388 = OpCompositeExtract %v3half %value_param_2 1
OpStore %387 %388 None
OpReturn
OpFunctionEnd
%tint_store_and_preserve_padding_3 = OpFunction %void None %391
%target_indices_3 = OpFunctionParameter %_arr_uint_uint_1
%value_param_3 = OpFunctionParameter %mat3v3half
%392 = OpLabel
%393 = OpCompositeExtract %uint %target_indices_3 0
%394 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %393 %uint_29 %uint_0
%396 = OpCompositeExtract %v3half %value_param_3 0
OpStore %394 %396 None
%397 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %393 %uint_29 %uint_1
%398 = OpCompositeExtract %v3half %value_param_3 1
OpStore %397 %398 None
%399 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %393 %uint_29 %uint_2
%400 = OpCompositeExtract %v3half %value_param_3 2
OpStore %399 %400 None
OpReturn
OpFunctionEnd
%tint_store_and_preserve_padding_4 = OpFunction %void None %403
%target_indices_4 = OpFunctionParameter %_arr_uint_uint_1
%value_param_4 = OpFunctionParameter %mat4v3half
%404 = OpLabel
%405 = OpCompositeExtract %uint %target_indices_4 0
%406 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %405 %uint_32 %uint_0
%408 = OpCompositeExtract %v3half %value_param_4 0
OpStore %406 %408 None
%409 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %405 %uint_32 %uint_1
%410 = OpCompositeExtract %v3half %value_param_4 1
OpStore %409 %410 None
%411 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %405 %uint_32 %uint_2
%412 = OpCompositeExtract %v3half %value_param_4 2
OpStore %411 %412 None
%413 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %405 %uint_32 %uint_3
%414 = OpCompositeExtract %v3half %value_param_4 3
OpStore %413 %414 None
OpReturn
OpFunctionEnd
%tint_store_and_preserve_padding_5 = OpFunction %void None %417
%target_indices_5 = OpFunctionParameter %_arr_uint_uint_1
%value_param_5 = OpFunctionParameter %_arr_v3float_uint_2_0
%418 = OpLabel
%419 = OpVariable %_ptr_Function__arr_v3float_uint_2_0 Function
OpStore %419 %value_param_5
%421 = OpCompositeExtract %uint %target_indices_5 0
OpBranch %422
%422 = OpLabel
OpBranch %425
%425 = OpLabel
%427 = OpPhi %uint %uint_0 %422 %428 %424
OpLoopMerge %426 %424 None
OpBranch %423
%423 = OpLabel
%429 = OpUGreaterThanEqual %bool %427 %uint_2
OpSelectionMerge %431 None
OpBranchConditional %429 %432 %431
%432 = OpLabel
OpBranch %426
%431 = OpLabel
%433 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %421 %uint_34 %427
%435 = OpAccessChain %_ptr_Function_v3float %419 %427
%437 = OpLoad %v3float %435 None
OpStore %433 %437 None
OpBranch %424
%424 = OpLabel
%428 = OpIAdd %uint %427 %uint_1
OpBranch %425
%426 = OpLabel
OpReturn
OpFunctionEnd
%main = OpFunction %void None %439
%440 = OpLabel
%441 = OpLoad %uint %main_local_invocation_index_Input None
%442 = OpFunctionCall %void %main_inner %441
OpReturn
OpFunctionEnd
%tint_convert_explicit_layout = OpFunction %_arr_mat4v2half_uint_2 None %444
%tint_source = OpFunctionParameter %_arr_mat4v2half_uint_2_0
%445 = OpLabel
%446 = OpVariable %_ptr_Function__arr_mat4v2half_uint_2_0 Function
%448 = OpVariable %_ptr_Function__arr_mat4v2half_uint_2 Function %450
OpStore %446 %tint_source
OpBranch %451
%451 = OpLabel
OpBranch %454
%454 = OpLabel
%456 = OpPhi %uint %uint_0 %451 %457 %453
OpLoopMerge %455 %453 None
OpBranch %452
%452 = OpLabel
%458 = OpUGreaterThanEqual %bool %456 %uint_2
OpSelectionMerge %459 None
OpBranchConditional %458 %460 %459
%460 = OpLabel
OpBranch %455
%459 = OpLabel
%461 = OpAccessChain %_ptr_Function_mat4v2half %446 %456
%463 = OpLoad %mat4v2half %461 None
%464 = OpAccessChain %_ptr_Function_mat4v2half %448 %456
OpStore %464 %463 None
OpBranch %453
%453 = OpLabel
%457 = OpIAdd %uint %456 %uint_1
OpBranch %454
%455 = OpLabel
%465 = OpLoad %_arr_mat4v2half_uint_2 %448 None
OpReturnValue %465
OpFunctionEnd