| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 67 |
| ; Schema: 0 |
| OpCapability Shader |
| 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 %f "f" |
| OpName %p_a "p_a" |
| OpName %p_a_2 "p_a_2" |
| OpName %p_a_2_1 "p_a_2_1" |
| 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_mat3v4float_uint_4 ArrayStride 48 |
| 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 |
| %mat3v4float = OpTypeMatrix %v4float 3 |
| %uint = OpTypeInt 32 0 |
| %uint_4 = OpConstant %uint 4 |
| %_arr_mat3v4float_uint_4 = OpTypeArray %mat3v4float %uint_4 |
| %a_block_tint_explicit_layout = OpTypeStruct %_arr_mat3v4float_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 |
| %void = OpTypeVoid |
| %15 = OpTypeFunction %void |
| %_ptr_Uniform__arr_mat3v4float_uint_4 = OpTypePointer Uniform %_arr_mat3v4float_uint_4 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform_mat3v4float = OpTypePointer Uniform %mat3v4float |
| %uint_2 = OpConstant %uint 2 |
| %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float |
| %uint_1 = OpConstant %uint 1 |
| %_arr_mat3v4float_uint_4_0 = OpTypeArray %mat3v4float %uint_4 |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| %44 = OpTypeFunction %_arr_mat3v4float_uint_4_0 %_arr_mat3v4float_uint_4 |
| %_ptr_Function__arr_mat3v4float_uint_4 = OpTypePointer Function %_arr_mat3v4float_uint_4 |
| %_ptr_Function__arr_mat3v4float_uint_4_0 = OpTypePointer Function %_arr_mat3v4float_uint_4_0 |
| %50 = OpConstantNull %_arr_mat3v4float_uint_4_0 |
| %bool = OpTypeBool |
| %_ptr_Function_mat3v4float = OpTypePointer Function %mat3v4float |
| %f = OpFunction %void None %15 |
| %16 = OpLabel |
| %p_a = OpAccessChain %_ptr_Uniform__arr_mat3v4float_uint_4 %1 %uint_0 |
| %p_a_2 = OpAccessChain %_ptr_Uniform_mat3v4float %p_a %uint_2 |
| %p_a_2_1 = OpAccessChain %_ptr_Uniform_v4float %p_a_2 %uint_1 |
| %26 = OpLoad %_arr_mat3v4float_uint_4 %p_a None |
| %l_a = OpFunctionCall %_arr_mat3v4float_uint_4_0 %tint_convert_explicit_layout %26 |
| %l_a_i = OpLoad %mat3v4float %p_a_2 None |
| %l_a_i_i = OpLoad %v4float %p_a_2_1 None |
| %32 = OpAccessChain %_ptr_Uniform_float %p_a_2_1 %uint_0 |
| %34 = OpLoad %float %32 None |
| %35 = OpCompositeExtract %float %l_a 0 0 0 |
| %36 = OpFAdd %float %34 %35 |
| %37 = OpCompositeExtract %float %l_a_i 0 0 |
| %38 = OpFAdd %float %36 %37 |
| %39 = OpCompositeExtract %float %l_a_i_i 0 |
| %40 = OpFAdd %float %38 %39 |
| %41 = OpAccessChain %_ptr_StorageBuffer_float %10 %uint_0 |
| OpStore %41 %40 None |
| OpReturn |
| OpFunctionEnd |
| %tint_convert_explicit_layout = OpFunction %_arr_mat3v4float_uint_4_0 None %44 |
| %tint_source = OpFunctionParameter %_arr_mat3v4float_uint_4 |
| %45 = OpLabel |
| %46 = OpVariable %_ptr_Function__arr_mat3v4float_uint_4 Function |
| %48 = OpVariable %_ptr_Function__arr_mat3v4float_uint_4_0 Function %50 |
| OpStore %46 %tint_source |
| OpBranch %51 |
| %51 = OpLabel |
| OpBranch %54 |
| %54 = OpLabel |
| %56 = OpPhi %uint %uint_0 %51 %57 %53 |
| OpLoopMerge %55 %53 None |
| OpBranch %52 |
| %52 = OpLabel |
| %59 = OpUGreaterThanEqual %bool %56 %uint_4 |
| OpSelectionMerge %61 None |
| OpBranchConditional %59 %62 %61 |
| %62 = OpLabel |
| OpBranch %55 |
| %61 = OpLabel |
| %63 = OpAccessChain %_ptr_Function_mat3v4float %46 %56 |
| %65 = OpLoad %mat3v4float %63 None |
| %66 = OpAccessChain %_ptr_Function_mat3v4float %48 %56 |
| OpStore %66 %65 None |
| OpBranch %53 |
| %53 = OpLabel |
| %57 = OpIAdd %uint %56 %uint_1 |
| OpBranch %54 |
| %55 = OpLabel |
| %58 = OpLoad %_arr_mat3v4float_uint_4_0 %48 None |
| OpReturnValue %58 |
| OpFunctionEnd |