| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 46 |
| ; Schema: 0 |
| OpCapability Shader |
| %42 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %f "f" |
| OpExecutionMode %f LocalSize 1 1 1 |
| OpMemberName %m_block_std140 0 "inner_col0" |
| OpMemberName %m_block_std140 1 "inner_col1" |
| OpMemberName %m_block_std140 2 "inner_col2" |
| OpName %m_block_std140 "m_block_std140" |
| OpName %counter "counter" |
| OpName %i "i" |
| OpName %f "f" |
| OpName %l_m "l_m" |
| OpName %l_m_i "l_m_i" |
| OpMemberDecorate %m_block_std140 0 Offset 0 |
| OpMemberDecorate %m_block_std140 1 Offset 8 |
| OpMemberDecorate %m_block_std140 2 Offset 16 |
| OpDecorate %m_block_std140 Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpDecorate %1 NonWritable |
| %float = OpTypeFloat 32 |
| %v2float = OpTypeVector %float 2 |
| %m_block_std140 = OpTypeStruct %v2float %v2float %v2float |
| %_ptr_Uniform_m_block_std140 = OpTypePointer Uniform %m_block_std140 |
| %1 = OpVariable %_ptr_Uniform_m_block_std140 Uniform |
| %int = OpTypeInt 32 1 |
| %_ptr_Private_int = OpTypePointer Private %int |
| %int_0 = OpConstant %int 0 |
| %counter = OpVariable %_ptr_Private_int Private %int_0 |
| %11 = OpTypeFunction %int |
| %uint = OpTypeInt 32 0 |
| %int_1 = OpConstant %int 1 |
| %void = OpTypeVoid |
| %23 = OpTypeFunction %void |
| %_ptr_Uniform_v2float = OpTypePointer Uniform %v2float |
| %uint_0 = OpConstant %uint 0 |
| %uint_1 = OpConstant %uint 1 |
| %uint_2 = OpConstant %uint 2 |
| %mat3v2float = OpTypeMatrix %v2float 3 |
| %_ptr_Function_mat3v2float = OpTypePointer Function %mat3v2float |
| %_ptr_Function_v2float = OpTypePointer Function %v2float |
| %i = OpFunction %int None %11 |
| %12 = OpLabel |
| %13 = OpLoad %int %counter None |
| %15 = OpBitcast %uint %13 |
| %16 = OpBitcast %uint %int_1 |
| %18 = OpIAdd %uint %15 %16 |
| %19 = OpBitcast %int %18 |
| OpStore %counter %19 None |
| %20 = OpLoad %int %counter None |
| OpReturnValue %20 |
| OpFunctionEnd |
| %f = OpFunction %void None %23 |
| %24 = OpLabel |
| %37 = OpVariable %_ptr_Function_mat3v2float Function |
| %25 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_0 |
| %28 = OpLoad %v2float %25 None |
| %29 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_1 |
| %31 = OpLoad %v2float %29 None |
| %32 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_2 |
| %34 = OpLoad %v2float %32 None |
| %l_m = OpCompositeConstruct %mat3v2float %28 %31 %34 |
| OpStore %37 %l_m |
| %39 = OpFunctionCall %int %i |
| %40 = OpBitcast %uint %39 |
| %41 = OpExtInst %uint %42 UMin %40 %uint_2 |
| %43 = OpAccessChain %_ptr_Function_v2float %37 %41 |
| %l_m_i = OpLoad %v2float %43 None |
| OpReturn |
| OpFunctionEnd |