| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 316 |
| ; Schema: 0 |
| OpCapability Shader |
| %46 = 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 "vec2_f32" |
| OpMemberName %Inner_tint_explicit_layout 4 "vec2_i32" |
| OpMemberName %Inner_tint_explicit_layout 5 "vec2_u32" |
| OpMemberName %Inner_tint_explicit_layout 6 "vec3_f32" |
| OpMemberName %Inner_tint_explicit_layout 7 "vec3_i32" |
| OpMemberName %Inner_tint_explicit_layout 8 "vec3_u32" |
| OpMemberName %Inner_tint_explicit_layout 9 "vec4_f32" |
| OpMemberName %Inner_tint_explicit_layout 10 "vec4_i32" |
| OpMemberName %Inner_tint_explicit_layout 11 "vec4_u32" |
| OpMemberName %Inner_tint_explicit_layout 12 "mat2x2_f32" |
| OpMemberName %Inner_tint_explicit_layout 13 "mat2x3_f32" |
| OpMemberName %Inner_tint_explicit_layout 14 "mat2x4_f32" |
| OpMemberName %Inner_tint_explicit_layout 15 "mat3x2_f32" |
| OpMemberName %Inner_tint_explicit_layout 16 "mat3x3_f32" |
| OpMemberName %Inner_tint_explicit_layout 17 "mat3x4_f32" |
| OpMemberName %Inner_tint_explicit_layout 18 "mat4x2_f32" |
| OpMemberName %Inner_tint_explicit_layout 19 "mat4x3_f32" |
| OpMemberName %Inner_tint_explicit_layout 20 "mat4x4_f32" |
| OpMemberName %Inner_tint_explicit_layout 21 "arr2_vec3_f32" |
| 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" |
| OpMemberName %s_block 0 "inner" |
| OpName %s_block "s_block" |
| OpName %main_local_invocation_index_Input "main_local_invocation_index_Input" |
| OpName %main_inner "main_inner" |
| OpName %idx "idx" |
| OpName %scalar_f32 "scalar_f32" |
| OpName %scalar_i32 "scalar_i32" |
| OpName %scalar_u32 "scalar_u32" |
| OpName %vec2_f32 "vec2_f32" |
| OpName %vec2_i32 "vec2_i32" |
| OpName %vec2_u32 "vec2_u32" |
| OpName %vec3_f32 "vec3_f32" |
| OpName %vec3_i32 "vec3_i32" |
| OpName %vec3_u32 "vec3_u32" |
| OpName %vec4_f32 "vec4_f32" |
| OpName %vec4_i32 "vec4_i32" |
| OpName %vec4_u32 "vec4_u32" |
| OpName %mat2x2_f32 "mat2x2_f32" |
| OpName %mat2x3_f32 "mat2x3_f32" |
| OpName %mat2x4_f32 "mat2x4_f32" |
| OpName %mat3x2_f32 "mat3x2_f32" |
| OpName %mat3x3_f32 "mat3x3_f32" |
| OpName %mat3x4_f32 "mat3x4_f32" |
| OpName %mat4x2_f32 "mat4x2_f32" |
| OpName %mat4x3_f32 "mat4x3_f32" |
| OpName %mat4x4_f32 "mat4x4_f32" |
| OpName %arr2_vec3_f32 "arr2_vec3_f32" |
| OpName %tint_f32_to_i32 "tint_f32_to_i32" |
| OpName %value "value" |
| 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 16 |
| OpMemberDecorate %Inner_tint_explicit_layout 4 Offset 24 |
| OpMemberDecorate %Inner_tint_explicit_layout 5 Offset 32 |
| OpMemberDecorate %Inner_tint_explicit_layout 6 Offset 48 |
| OpMemberDecorate %Inner_tint_explicit_layout 7 Offset 64 |
| OpMemberDecorate %Inner_tint_explicit_layout 8 Offset 80 |
| OpMemberDecorate %Inner_tint_explicit_layout 9 Offset 96 |
| OpMemberDecorate %Inner_tint_explicit_layout 10 Offset 112 |
| OpMemberDecorate %Inner_tint_explicit_layout 11 Offset 128 |
| OpMemberDecorate %Inner_tint_explicit_layout 12 Offset 144 |
| OpMemberDecorate %Inner_tint_explicit_layout 12 ColMajor |
| OpMemberDecorate %Inner_tint_explicit_layout 12 MatrixStride 8 |
| OpMemberDecorate %Inner_tint_explicit_layout 13 Offset 160 |
| OpMemberDecorate %Inner_tint_explicit_layout 13 ColMajor |
| OpMemberDecorate %Inner_tint_explicit_layout 13 MatrixStride 16 |
| OpMemberDecorate %Inner_tint_explicit_layout 14 Offset 192 |
| OpMemberDecorate %Inner_tint_explicit_layout 14 ColMajor |
| OpMemberDecorate %Inner_tint_explicit_layout 14 MatrixStride 16 |
| OpMemberDecorate %Inner_tint_explicit_layout 15 Offset 224 |
| OpMemberDecorate %Inner_tint_explicit_layout 15 ColMajor |
| OpMemberDecorate %Inner_tint_explicit_layout 15 MatrixStride 8 |
| OpMemberDecorate %Inner_tint_explicit_layout 16 Offset 256 |
| OpMemberDecorate %Inner_tint_explicit_layout 16 ColMajor |
| OpMemberDecorate %Inner_tint_explicit_layout 16 MatrixStride 16 |
| OpMemberDecorate %Inner_tint_explicit_layout 17 Offset 304 |
| OpMemberDecorate %Inner_tint_explicit_layout 17 ColMajor |
| OpMemberDecorate %Inner_tint_explicit_layout 17 MatrixStride 16 |
| OpMemberDecorate %Inner_tint_explicit_layout 18 Offset 352 |
| OpMemberDecorate %Inner_tint_explicit_layout 18 ColMajor |
| OpMemberDecorate %Inner_tint_explicit_layout 18 MatrixStride 8 |
| OpMemberDecorate %Inner_tint_explicit_layout 19 Offset 384 |
| OpMemberDecorate %Inner_tint_explicit_layout 19 ColMajor |
| OpMemberDecorate %Inner_tint_explicit_layout 19 MatrixStride 16 |
| OpMemberDecorate %Inner_tint_explicit_layout 20 Offset 448 |
| OpMemberDecorate %Inner_tint_explicit_layout 20 ColMajor |
| OpMemberDecorate %Inner_tint_explicit_layout 20 MatrixStride 16 |
| OpDecorate %_arr_v3float_uint_2 ArrayStride 16 |
| OpMemberDecorate %Inner_tint_explicit_layout 21 Offset 512 |
| OpDecorate %_runtimearr_Inner_tint_explicit_layout ArrayStride 544 |
| OpMemberDecorate %S_tint_explicit_layout 0 Offset 0 |
| OpDecorate %S_tint_explicit_layout Block |
| OpDecorate %sb DescriptorSet 0 |
| OpDecorate %sb Binding 0 |
| OpDecorate %sb NonWritable |
| OpMemberDecorate %s_block 0 Offset 0 |
| OpDecorate %s_block Block |
| OpDecorate %29 DescriptorSet 0 |
| OpDecorate %29 Binding 1 |
| OpDecorate %29 Coherent |
| OpDecorate %main_local_invocation_index_Input BuiltIn LocalInvocationIndex |
| %float = OpTypeFloat 32 |
| %int = OpTypeInt 32 1 |
| %uint = OpTypeInt 32 0 |
| %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 |
| %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 |
| %uint_2 = OpConstant %uint 2 |
| %_arr_v3float_uint_2 = OpTypeArray %v3float %uint_2 |
| %Inner_tint_explicit_layout = OpTypeStruct %float %int %uint %v2float %v2int %v2uint %v3float %v3int %v3uint %v4float %v4int %v4uint %mat2v2float %mat2v3float %mat2v4float %mat3v2float %mat3v3float %mat3v4float %mat4v2float %mat4v3float %mat4v4float %_arr_v3float_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 |
| %s_block = OpTypeStruct %int |
| %_ptr_StorageBuffer_s_block = OpTypePointer StorageBuffer %s_block |
| %29 = OpVariable %_ptr_StorageBuffer_s_block StorageBuffer |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %main_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input |
| %void = OpTypeVoid |
| %37 = 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 |
| %_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int |
| %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint |
| %_ptr_StorageBuffer_v2float = OpTypePointer StorageBuffer %v2float |
| %uint_3 = OpConstant %uint 3 |
| %_ptr_StorageBuffer_v2int = OpTypePointer StorageBuffer %v2int |
| %uint_4 = OpConstant %uint 4 |
| %_ptr_StorageBuffer_v2uint = OpTypePointer StorageBuffer %v2uint |
| %uint_5 = OpConstant %uint 5 |
| %_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float |
| %uint_6 = OpConstant %uint 6 |
| %_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int |
| %uint_7 = OpConstant %uint 7 |
| %_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint |
| %uint_8 = OpConstant %uint 8 |
| %_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float |
| %uint_9 = OpConstant %uint 9 |
| %_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int |
| %uint_10 = OpConstant %uint 10 |
| %_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint |
| %uint_11 = OpConstant %uint 11 |
| %_ptr_StorageBuffer_mat2v2float = OpTypePointer StorageBuffer %mat2v2float |
| %uint_12 = OpConstant %uint 12 |
| %_ptr_StorageBuffer_mat2v3float = OpTypePointer StorageBuffer %mat2v3float |
| %uint_13 = OpConstant %uint 13 |
| %_ptr_StorageBuffer_mat2v4float = OpTypePointer StorageBuffer %mat2v4float |
| %uint_14 = OpConstant %uint 14 |
| %_ptr_StorageBuffer_mat3v2float = OpTypePointer StorageBuffer %mat3v2float |
| %uint_15 = OpConstant %uint 15 |
| %_ptr_StorageBuffer_mat3v3float = OpTypePointer StorageBuffer %mat3v3float |
| %uint_16 = OpConstant %uint 16 |
| %_ptr_StorageBuffer_mat3v4float = OpTypePointer StorageBuffer %mat3v4float |
| %uint_17 = OpConstant %uint 17 |
| %_ptr_StorageBuffer_mat4v2float = OpTypePointer StorageBuffer %mat4v2float |
| %uint_18 = OpConstant %uint 18 |
| %_ptr_StorageBuffer_mat4v3float = OpTypePointer StorageBuffer %mat4v3float |
| %uint_19 = OpConstant %uint 19 |
| %_ptr_StorageBuffer_mat4v4float = OpTypePointer StorageBuffer %mat4v4float |
| %uint_20 = OpConstant %uint 20 |
| %_ptr_StorageBuffer__arr_v3float_uint_2 = OpTypePointer StorageBuffer %_arr_v3float_uint_2 |
| %uint_21 = OpConstant %uint 21 |
| %_arr_v3float_uint_2_0 = OpTypeArray %v3float %uint_2 |
| %_ptr_StorageBuffer_int_0 = OpTypePointer StorageBuffer %int |
| %281 = OpTypeFunction %int %float |
| %float_n2_14748365e_09 = OpConstant %float -2.14748365e+09 |
| %float_2_14748352e_09 = OpConstant %float 2.14748352e+09 |
| %288 = OpTypeFunction %void |
| %293 = OpTypeFunction %_arr_v3float_uint_2_0 %_arr_v3float_uint_2 |
| %_ptr_Function__arr_v3float_uint_2 = OpTypePointer Function %_arr_v3float_uint_2 |
| %_ptr_Function__arr_v3float_uint_2_0 = OpTypePointer Function %_arr_v3float_uint_2_0 |
| %299 = OpConstantNull %_arr_v3float_uint_2_0 |
| %bool = OpTypeBool |
| %_ptr_Function_v3float = OpTypePointer Function %v3float |
| %main_inner = OpFunction %void None %37 |
| %idx = OpFunctionParameter %uint |
| %38 = OpLabel |
| %39 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %42 = OpArrayLength %uint %sb 0 |
| %43 = OpISub %uint %42 %uint_1 |
| %45 = OpExtInst %uint %46 UMin %idx %43 |
| %47 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %45 %uint_0 |
| %scalar_f32 = OpLoad %float %47 None |
| %50 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %51 = OpArrayLength %uint %sb 0 |
| %52 = OpISub %uint %51 %uint_1 |
| %53 = OpExtInst %uint %46 UMin %idx %52 |
| %54 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %53 %uint_1 |
| %scalar_i32 = OpLoad %int %54 None |
| %57 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %58 = OpArrayLength %uint %sb 0 |
| %59 = OpISub %uint %58 %uint_1 |
| %60 = OpExtInst %uint %46 UMin %idx %59 |
| %61 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %60 %uint_2 |
| %scalar_u32 = OpLoad %uint %61 None |
| %64 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %65 = OpArrayLength %uint %sb 0 |
| %66 = OpISub %uint %65 %uint_1 |
| %67 = OpExtInst %uint %46 UMin %idx %66 |
| %68 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %67 %uint_3 |
| %vec2_f32 = OpLoad %v2float %68 None |
| %72 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %73 = OpArrayLength %uint %sb 0 |
| %74 = OpISub %uint %73 %uint_1 |
| %75 = OpExtInst %uint %46 UMin %idx %74 |
| %76 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %75 %uint_4 |
| %vec2_i32 = OpLoad %v2int %76 None |
| %80 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %81 = OpArrayLength %uint %sb 0 |
| %82 = OpISub %uint %81 %uint_1 |
| %83 = OpExtInst %uint %46 UMin %idx %82 |
| %84 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %83 %uint_5 |
| %vec2_u32 = OpLoad %v2uint %84 None |
| %88 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %89 = OpArrayLength %uint %sb 0 |
| %90 = OpISub %uint %89 %uint_1 |
| %91 = OpExtInst %uint %46 UMin %idx %90 |
| %92 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %91 %uint_6 |
| %vec3_f32 = OpLoad %v3float %92 None |
| %96 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %97 = OpArrayLength %uint %sb 0 |
| %98 = OpISub %uint %97 %uint_1 |
| %99 = OpExtInst %uint %46 UMin %idx %98 |
| %100 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %99 %uint_7 |
| %vec3_i32 = OpLoad %v3int %100 None |
| %104 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %105 = OpArrayLength %uint %sb 0 |
| %106 = OpISub %uint %105 %uint_1 |
| %107 = OpExtInst %uint %46 UMin %idx %106 |
| %108 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %107 %uint_8 |
| %vec3_u32 = OpLoad %v3uint %108 None |
| %112 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %113 = OpArrayLength %uint %sb 0 |
| %114 = OpISub %uint %113 %uint_1 |
| %115 = OpExtInst %uint %46 UMin %idx %114 |
| %116 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %115 %uint_9 |
| %vec4_f32 = OpLoad %v4float %116 None |
| %120 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %121 = OpArrayLength %uint %sb 0 |
| %122 = OpISub %uint %121 %uint_1 |
| %123 = OpExtInst %uint %46 UMin %idx %122 |
| %124 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %123 %uint_10 |
| %vec4_i32 = OpLoad %v4int %124 None |
| %128 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %129 = OpArrayLength %uint %sb 0 |
| %130 = OpISub %uint %129 %uint_1 |
| %131 = OpExtInst %uint %46 UMin %idx %130 |
| %132 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %131 %uint_11 |
| %vec4_u32 = OpLoad %v4uint %132 None |
| %136 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %137 = OpArrayLength %uint %sb 0 |
| %138 = OpISub %uint %137 %uint_1 |
| %139 = OpExtInst %uint %46 UMin %idx %138 |
| %140 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %139 %uint_12 |
| %mat2x2_f32 = OpLoad %mat2v2float %140 None |
| %144 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %145 = OpArrayLength %uint %sb 0 |
| %146 = OpISub %uint %145 %uint_1 |
| %147 = OpExtInst %uint %46 UMin %idx %146 |
| %148 = OpAccessChain %_ptr_StorageBuffer_mat2v3float %sb %uint_0 %147 %uint_13 |
| %mat2x3_f32 = OpLoad %mat2v3float %148 None |
| %152 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %153 = OpArrayLength %uint %sb 0 |
| %154 = OpISub %uint %153 %uint_1 |
| %155 = OpExtInst %uint %46 UMin %idx %154 |
| %156 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %155 %uint_14 |
| %mat2x4_f32 = OpLoad %mat2v4float %156 None |
| %160 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %161 = OpArrayLength %uint %sb 0 |
| %162 = OpISub %uint %161 %uint_1 |
| %163 = OpExtInst %uint %46 UMin %idx %162 |
| %164 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %163 %uint_15 |
| %mat3x2_f32 = OpLoad %mat3v2float %164 None |
| %168 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %169 = OpArrayLength %uint %sb 0 |
| %170 = OpISub %uint %169 %uint_1 |
| %171 = OpExtInst %uint %46 UMin %idx %170 |
| %172 = OpAccessChain %_ptr_StorageBuffer_mat3v3float %sb %uint_0 %171 %uint_16 |
| %mat3x3_f32 = OpLoad %mat3v3float %172 None |
| %176 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %177 = OpArrayLength %uint %sb 0 |
| %178 = OpISub %uint %177 %uint_1 |
| %179 = OpExtInst %uint %46 UMin %idx %178 |
| %180 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %179 %uint_17 |
| %mat3x4_f32 = OpLoad %mat3v4float %180 None |
| %184 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %185 = OpArrayLength %uint %sb 0 |
| %186 = OpISub %uint %185 %uint_1 |
| %187 = OpExtInst %uint %46 UMin %idx %186 |
| %188 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %187 %uint_18 |
| %mat4x2_f32 = OpLoad %mat4v2float %188 None |
| %192 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %193 = OpArrayLength %uint %sb 0 |
| %194 = OpISub %uint %193 %uint_1 |
| %195 = OpExtInst %uint %46 UMin %idx %194 |
| %196 = OpAccessChain %_ptr_StorageBuffer_mat4v3float %sb %uint_0 %195 %uint_19 |
| %mat4x3_f32 = OpLoad %mat4v3float %196 None |
| %200 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %201 = OpArrayLength %uint %sb 0 |
| %202 = OpISub %uint %201 %uint_1 |
| %203 = OpExtInst %uint %46 UMin %idx %202 |
| %204 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %203 %uint_20 |
| %mat4x4_f32 = OpLoad %mat4v4float %204 None |
| %208 = OpAccessChain %_ptr_StorageBuffer__runtimearr_Inner_tint_explicit_layout %sb %uint_0 |
| %209 = OpArrayLength %uint %sb 0 |
| %210 = OpISub %uint %209 %uint_1 |
| %211 = OpExtInst %uint %46 UMin %idx %210 |
| %212 = OpAccessChain %_ptr_StorageBuffer__arr_v3float_uint_2 %sb %uint_0 %211 %uint_21 |
| %215 = OpLoad %_arr_v3float_uint_2 %212 None |
| %arr2_vec3_f32 = OpFunctionCall %_arr_v3float_uint_2_0 %tint_convert_explicit_layout %215 |
| %219 = OpFunctionCall %int %tint_f32_to_i32 %scalar_f32 |
| %221 = OpIAdd %int %219 %scalar_i32 |
| %222 = OpBitcast %int %scalar_u32 |
| %223 = OpIAdd %int %221 %222 |
| %224 = OpCompositeExtract %float %vec2_f32 0 |
| %225 = OpFunctionCall %int %tint_f32_to_i32 %224 |
| %226 = OpIAdd %int %223 %225 |
| %227 = OpCompositeExtract %int %vec2_i32 0 |
| %228 = OpIAdd %int %226 %227 |
| %229 = OpCompositeExtract %uint %vec2_u32 0 |
| %230 = OpBitcast %int %229 |
| %231 = OpIAdd %int %228 %230 |
| %232 = OpCompositeExtract %float %vec3_f32 1 |
| %233 = OpFunctionCall %int %tint_f32_to_i32 %232 |
| %234 = OpIAdd %int %231 %233 |
| %235 = OpCompositeExtract %int %vec3_i32 1 |
| %236 = OpIAdd %int %234 %235 |
| %237 = OpCompositeExtract %uint %vec3_u32 1 |
| %238 = OpBitcast %int %237 |
| %239 = OpIAdd %int %236 %238 |
| %240 = OpCompositeExtract %float %vec4_f32 2 |
| %241 = OpFunctionCall %int %tint_f32_to_i32 %240 |
| %242 = OpIAdd %int %239 %241 |
| %243 = OpCompositeExtract %int %vec4_i32 2 |
| %244 = OpIAdd %int %242 %243 |
| %245 = OpCompositeExtract %uint %vec4_u32 2 |
| %246 = OpBitcast %int %245 |
| %247 = OpIAdd %int %244 %246 |
| %248 = OpCompositeExtract %float %mat2x2_f32 0 0 |
| %249 = OpFunctionCall %int %tint_f32_to_i32 %248 |
| %250 = OpIAdd %int %247 %249 |
| %251 = OpCompositeExtract %float %mat2x3_f32 0 0 |
| %252 = OpFunctionCall %int %tint_f32_to_i32 %251 |
| %253 = OpIAdd %int %250 %252 |
| %254 = OpCompositeExtract %float %mat2x4_f32 0 0 |
| %255 = OpFunctionCall %int %tint_f32_to_i32 %254 |
| %256 = OpIAdd %int %253 %255 |
| %257 = OpCompositeExtract %float %mat3x2_f32 0 0 |
| %258 = OpFunctionCall %int %tint_f32_to_i32 %257 |
| %259 = OpIAdd %int %256 %258 |
| %260 = OpCompositeExtract %float %mat3x3_f32 0 0 |
| %261 = OpFunctionCall %int %tint_f32_to_i32 %260 |
| %262 = OpIAdd %int %259 %261 |
| %263 = OpCompositeExtract %float %mat3x4_f32 0 0 |
| %264 = OpFunctionCall %int %tint_f32_to_i32 %263 |
| %265 = OpIAdd %int %262 %264 |
| %266 = OpCompositeExtract %float %mat4x2_f32 0 0 |
| %267 = OpFunctionCall %int %tint_f32_to_i32 %266 |
| %268 = OpIAdd %int %265 %267 |
| %269 = OpCompositeExtract %float %mat4x3_f32 0 0 |
| %270 = OpFunctionCall %int %tint_f32_to_i32 %269 |
| %271 = OpIAdd %int %268 %270 |
| %272 = OpCompositeExtract %float %mat4x4_f32 0 0 |
| %273 = OpFunctionCall %int %tint_f32_to_i32 %272 |
| %274 = OpIAdd %int %271 %273 |
| %275 = OpCompositeExtract %float %arr2_vec3_f32 0 0 |
| %276 = OpFunctionCall %int %tint_f32_to_i32 %275 |
| %277 = OpIAdd %int %274 %276 |
| %278 = OpAccessChain %_ptr_StorageBuffer_int_0 %29 %uint_0 |
| OpStore %278 %277 None |
| OpReturn |
| OpFunctionEnd |
| %tint_f32_to_i32 = OpFunction %int None %281 |
| %value = OpFunctionParameter %float |
| %282 = OpLabel |
| %283 = OpExtInst %float %46 NClamp %value %float_n2_14748365e_09 %float_2_14748352e_09 |
| %286 = OpConvertFToS %int %283 |
| OpReturnValue %286 |
| OpFunctionEnd |
| %main = OpFunction %void None %288 |
| %289 = OpLabel |
| %290 = OpLoad %uint %main_local_invocation_index_Input None |
| %291 = OpFunctionCall %void %main_inner %290 |
| OpReturn |
| OpFunctionEnd |
| %tint_convert_explicit_layout = OpFunction %_arr_v3float_uint_2_0 None %293 |
| %tint_source = OpFunctionParameter %_arr_v3float_uint_2 |
| %294 = OpLabel |
| %295 = OpVariable %_ptr_Function__arr_v3float_uint_2 Function |
| %297 = OpVariable %_ptr_Function__arr_v3float_uint_2_0 Function %299 |
| OpStore %295 %tint_source |
| OpBranch %300 |
| %300 = OpLabel |
| OpBranch %303 |
| %303 = OpLabel |
| %305 = OpPhi %uint %uint_0 %300 %306 %302 |
| OpLoopMerge %304 %302 None |
| OpBranch %301 |
| %301 = OpLabel |
| %308 = OpUGreaterThanEqual %bool %305 %uint_2 |
| OpSelectionMerge %310 None |
| OpBranchConditional %308 %311 %310 |
| %311 = OpLabel |
| OpBranch %304 |
| %310 = OpLabel |
| %312 = OpAccessChain %_ptr_Function_v3float %295 %305 |
| %314 = OpLoad %v3float %312 None |
| %315 = OpAccessChain %_ptr_Function_v3float %297 %305 |
| OpStore %315 %314 None |
| OpBranch %302 |
| %302 = OpLabel |
| %306 = OpIAdd %uint %305 %uint_1 |
| OpBranch %303 |
| %304 = OpLabel |
| %307 = OpLoad %_arr_v3float_uint_2_0 %297 None |
| OpReturnValue %307 |
| OpFunctionEnd |