| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 88 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %f_0 "f" |
| OpExecutionMode %f_0 LocalSize 1 1 1 |
| OpMemberName %u_block_tint_explicit_layout 0 "inner" |
| OpName %u_block_tint_explicit_layout "u_block_tint_explicit_layout" |
| OpMemberName %s_block 0 "inner" |
| OpName %s_block "s_block" |
| OpName %a "a" |
| OpName %a_0 "a" |
| OpName %b "b" |
| OpName %m "m" |
| OpName %c "c" |
| OpName %v "v" |
| OpName %d "d" |
| OpName %f "f" |
| OpName %f_0 "f" |
| OpName %tint_convert_explicit_layout "tint_convert_explicit_layout" |
| OpName %tint_source "tint_source" |
| OpDecorate %_arr_mat3v4float_uint_4 ArrayStride 48 |
| OpMemberDecorate %u_block_tint_explicit_layout 0 Offset 0 |
| OpMemberDecorate %u_block_tint_explicit_layout 0 ColMajor |
| OpMemberDecorate %u_block_tint_explicit_layout 0 MatrixStride 16 |
| OpDecorate %u_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 |
| %u_block_tint_explicit_layout = OpTypeStruct %_arr_mat3v4float_uint_4 |
| %_ptr_Uniform_u_block_tint_explicit_layout = OpTypePointer Uniform %u_block_tint_explicit_layout |
| %1 = OpVariable %_ptr_Uniform_u_block_tint_explicit_layout Uniform |
| %s_block = OpTypeStruct %float |
| %_ptr_StorageBuffer_s_block = OpTypePointer StorageBuffer %s_block |
| %10 = OpVariable %_ptr_StorageBuffer_s_block StorageBuffer |
| %_arr_mat3v4float_uint_4_0 = OpTypeArray %mat3v4float %uint_4 |
| %16 = OpTypeFunction %float %_arr_mat3v4float_uint_4_0 |
| %21 = OpTypeFunction %float %mat3v4float |
| %26 = OpTypeFunction %float %v4float |
| %31 = OpTypeFunction %float %float |
| %void = OpTypeVoid |
| %35 = 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_1 = OpConstant %uint 1 |
| %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| %65 = 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 |
| %71 = OpConstantNull %_arr_mat3v4float_uint_4_0 |
| %bool = OpTypeBool |
| %_ptr_Function_mat3v4float = OpTypePointer Function %mat3v4float |
| %a = OpFunction %float None %16 |
| %a_0 = OpFunctionParameter %_arr_mat3v4float_uint_4_0 |
| %17 = OpLabel |
| %18 = OpCompositeExtract %float %a_0 0 0 0 |
| OpReturnValue %18 |
| OpFunctionEnd |
| %b = OpFunction %float None %21 |
| %m = OpFunctionParameter %mat3v4float |
| %22 = OpLabel |
| %23 = OpCompositeExtract %float %m 0 0 |
| OpReturnValue %23 |
| OpFunctionEnd |
| %c = OpFunction %float None %26 |
| %v = OpFunctionParameter %v4float |
| %27 = OpLabel |
| %28 = OpCompositeExtract %float %v 0 |
| OpReturnValue %28 |
| OpFunctionEnd |
| %d = OpFunction %float None %31 |
| %f = OpFunctionParameter %float |
| %32 = OpLabel |
| OpReturnValue %f |
| OpFunctionEnd |
| %f_0 = OpFunction %void None %35 |
| %36 = OpLabel |
| %37 = OpAccessChain %_ptr_Uniform__arr_mat3v4float_uint_4 %1 %uint_0 |
| %40 = OpLoad %_arr_mat3v4float_uint_4 %37 None |
| %41 = OpFunctionCall %_arr_mat3v4float_uint_4_0 %tint_convert_explicit_layout %40 |
| %43 = OpFunctionCall %float %a %41 |
| %44 = OpAccessChain %_ptr_Uniform_mat3v4float %1 %uint_0 %uint_1 |
| %47 = OpLoad %mat3v4float %44 None |
| %48 = OpFunctionCall %float %b %47 |
| %49 = OpFAdd %float %43 %48 |
| %50 = OpAccessChain %_ptr_Uniform_v4float %1 %uint_0 %uint_1 %uint_0 |
| %52 = OpLoad %v4float %50 None |
| %53 = OpVectorShuffle %v4float %52 %52 1 3 0 2 |
| %54 = OpFunctionCall %float %c %53 |
| %55 = OpFAdd %float %49 %54 |
| %56 = OpAccessChain %_ptr_Uniform_v4float %1 %uint_0 %uint_1 %uint_0 |
| %57 = OpLoad %v4float %56 None |
| %58 = OpVectorShuffle %v4float %57 %57 1 3 0 2 |
| %59 = OpCompositeExtract %float %58 0 |
| %60 = OpFunctionCall %float %d %59 |
| %61 = OpFAdd %float %55 %60 |
| %62 = OpAccessChain %_ptr_StorageBuffer_float %10 %uint_0 |
| OpStore %62 %61 None |
| OpReturn |
| OpFunctionEnd |
| %tint_convert_explicit_layout = OpFunction %_arr_mat3v4float_uint_4_0 None %65 |
| %tint_source = OpFunctionParameter %_arr_mat3v4float_uint_4 |
| %66 = OpLabel |
| %67 = OpVariable %_ptr_Function__arr_mat3v4float_uint_4 Function |
| %69 = OpVariable %_ptr_Function__arr_mat3v4float_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_mat3v4float %67 %77 |
| %86 = OpLoad %mat3v4float %84 None |
| %87 = OpAccessChain %_ptr_Function_mat3v4float %69 %77 |
| OpStore %87 %86 None |
| OpBranch %74 |
| %74 = OpLabel |
| %78 = OpIAdd %uint %77 %uint_1 |
| OpBranch %75 |
| %76 = OpLabel |
| %79 = OpLoad %_arr_mat3v4float_uint_4_0 %69 None |
| OpReturnValue %79 |
| OpFunctionEnd |