| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 88 |
| ; Schema: 0 |
| OpCapability Shader |
| %37 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %f "f" |
| OpExecutionMode %f LocalSize 1 1 1 |
| OpMemberName %a_block_tint_explicit_layout 0 "inner" |
| OpName %a_block_tint_explicit_layout "a_block_tint_explicit_layout" |
| OpMemberName %s_block 0 "inner" |
| OpName %s_block "s_block" |
| OpName %counter "counter" |
| OpName %i "i" |
| OpName %f "f" |
| OpName %p_a "p_a" |
| OpName %p_a_i "p_a_i" |
| OpName %p_a_i_i "p_a_i_i" |
| OpName %l_a "l_a" |
| OpName %l_a_i "l_a_i" |
| OpName %l_a_i_i "l_a_i_i" |
| OpName %tint_convert_explicit_layout "tint_convert_explicit_layout" |
| OpName %tint_source "tint_source" |
| OpDecorate %_arr_mat2v4float_uint_4 ArrayStride 32 |
| OpMemberDecorate %a_block_tint_explicit_layout 0 Offset 0 |
| OpMemberDecorate %a_block_tint_explicit_layout 0 ColMajor |
| OpMemberDecorate %a_block_tint_explicit_layout 0 MatrixStride 16 |
| OpDecorate %a_block_tint_explicit_layout Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpDecorate %1 NonWritable |
| OpMemberDecorate %s_block 0 Offset 0 |
| OpDecorate %s_block Block |
| OpDecorate %10 DescriptorSet 0 |
| OpDecorate %10 Binding 1 |
| OpDecorate %10 Coherent |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %mat2v4float = OpTypeMatrix %v4float 2 |
| %uint = OpTypeInt 32 0 |
| %uint_4 = OpConstant %uint 4 |
| %_arr_mat2v4float_uint_4 = OpTypeArray %mat2v4float %uint_4 |
| %a_block_tint_explicit_layout = OpTypeStruct %_arr_mat2v4float_uint_4 |
| %_ptr_Uniform_a_block_tint_explicit_layout = OpTypePointer Uniform %a_block_tint_explicit_layout |
| %1 = OpVariable %_ptr_Uniform_a_block_tint_explicit_layout Uniform |
| %s_block = OpTypeStruct %float |
| %_ptr_StorageBuffer_s_block = OpTypePointer StorageBuffer %s_block |
| %10 = OpVariable %_ptr_StorageBuffer_s_block StorageBuffer |
| %int = OpTypeInt 32 1 |
| %_ptr_Private_int = OpTypePointer Private %int |
| %int_0 = OpConstant %int 0 |
| %counter = OpVariable %_ptr_Private_int Private %int_0 |
| %18 = OpTypeFunction %int |
| %int_1 = OpConstant %int 1 |
| %void = OpTypeVoid |
| %29 = OpTypeFunction %void |
| %_ptr_Uniform__arr_mat2v4float_uint_4 = OpTypePointer Uniform %_arr_mat2v4float_uint_4 |
| %uint_0 = OpConstant %uint 0 |
| %uint_3 = OpConstant %uint 3 |
| %_ptr_Uniform_mat2v4float = OpTypePointer Uniform %mat2v4float |
| %uint_1 = OpConstant %uint 1 |
| %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float |
| %_arr_mat2v4float_uint_4_0 = OpTypeArray %mat2v4float %uint_4 |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| %65 = OpTypeFunction %_arr_mat2v4float_uint_4_0 %_arr_mat2v4float_uint_4 |
| %_ptr_Function__arr_mat2v4float_uint_4 = OpTypePointer Function %_arr_mat2v4float_uint_4 |
| %_ptr_Function__arr_mat2v4float_uint_4_0 = OpTypePointer Function %_arr_mat2v4float_uint_4_0 |
| %71 = OpConstantNull %_arr_mat2v4float_uint_4_0 |
| %bool = OpTypeBool |
| %_ptr_Function_mat2v4float = OpTypePointer Function %mat2v4float |
| %i = OpFunction %int None %18 |
| %19 = OpLabel |
| %20 = OpLoad %int %counter None |
| %21 = OpBitcast %uint %20 |
| %22 = OpBitcast %uint %int_1 |
| %24 = OpIAdd %uint %21 %22 |
| %25 = OpBitcast %int %24 |
| OpStore %counter %25 None |
| %26 = OpLoad %int %counter None |
| OpReturnValue %26 |
| OpFunctionEnd |
| %f = OpFunction %void None %29 |
| %30 = OpLabel |
| %p_a = OpAccessChain %_ptr_Uniform__arr_mat2v4float_uint_4 %1 %uint_0 |
| %34 = OpFunctionCall %int %i |
| %35 = OpBitcast %uint %34 |
| %36 = OpExtInst %uint %37 UMin %35 %uint_3 |
| %p_a_i = OpAccessChain %_ptr_Uniform_mat2v4float %p_a %36 |
| %41 = OpFunctionCall %int %i |
| %42 = OpBitcast %uint %41 |
| %43 = OpExtInst %uint %37 UMin %42 %uint_1 |
| %p_a_i_i = OpAccessChain %_ptr_Uniform_v4float %p_a_i %43 |
| %47 = OpLoad %_arr_mat2v4float_uint_4 %p_a None |
| %l_a = OpFunctionCall %_arr_mat2v4float_uint_4_0 %tint_convert_explicit_layout %47 |
| %l_a_i = OpLoad %mat2v4float %p_a_i None |
| %l_a_i_i = OpLoad %v4float %p_a_i_i None |
| %53 = OpAccessChain %_ptr_Uniform_float %p_a_i_i %uint_0 |
| %55 = OpLoad %float %53 None |
| %56 = OpCompositeExtract %float %l_a 0 0 0 |
| %57 = OpFAdd %float %55 %56 |
| %58 = OpCompositeExtract %float %l_a_i 0 0 |
| %59 = OpFAdd %float %57 %58 |
| %60 = OpCompositeExtract %float %l_a_i_i 0 |
| %61 = OpFAdd %float %59 %60 |
| %62 = OpAccessChain %_ptr_StorageBuffer_float %10 %uint_0 |
| OpStore %62 %61 None |
| OpReturn |
| OpFunctionEnd |
| %tint_convert_explicit_layout = OpFunction %_arr_mat2v4float_uint_4_0 None %65 |
| %tint_source = OpFunctionParameter %_arr_mat2v4float_uint_4 |
| %66 = OpLabel |
| %67 = OpVariable %_ptr_Function__arr_mat2v4float_uint_4 Function |
| %69 = OpVariable %_ptr_Function__arr_mat2v4float_uint_4_0 Function %71 |
| OpStore %67 %tint_source |
| OpBranch %72 |
| %72 = OpLabel |
| OpBranch %75 |
| %75 = OpLabel |
| %77 = OpPhi %uint %uint_0 %72 %78 %74 |
| OpLoopMerge %76 %74 None |
| OpBranch %73 |
| %73 = OpLabel |
| %80 = OpUGreaterThanEqual %bool %77 %uint_4 |
| OpSelectionMerge %82 None |
| OpBranchConditional %80 %83 %82 |
| %83 = OpLabel |
| OpBranch %76 |
| %82 = OpLabel |
| %84 = OpAccessChain %_ptr_Function_mat2v4float %67 %77 |
| %86 = OpLoad %mat2v4float %84 None |
| %87 = OpAccessChain %_ptr_Function_mat2v4float %69 %77 |
| OpStore %87 %86 None |
| OpBranch %74 |
| %74 = OpLabel |
| %78 = OpIAdd %uint %77 %uint_1 |
| OpBranch %75 |
| %76 = OpLabel |
| %79 = OpLoad %_arr_mat2v4float_uint_4_0 %69 None |
| OpReturnValue %79 |
| OpFunctionEnd |