| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 38 |
| ; Schema: 0 |
| OpCapability Shader |
| %32 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %f "f" |
| OpExecutionMode %f LocalSize 1 1 1 |
| OpMemberName %m_block 0 "inner" |
| OpName %m_block "m_block" |
| OpName %counter "counter" |
| OpName %i "i" |
| OpName %f "f" |
| OpName %p_m "p_m" |
| OpName %p_m_i "p_m_i" |
| OpName %l_m "l_m" |
| OpName %l_m_i "l_m_i" |
| OpMemberDecorate %m_block 0 Offset 0 |
| OpMemberDecorate %m_block 0 ColMajor |
| OpMemberDecorate %m_block 0 MatrixStride 16 |
| OpDecorate %m_block Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpDecorate %1 NonWritable |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %mat4v4float = OpTypeMatrix %v4float 4 |
| %m_block = OpTypeStruct %mat4v4float |
| %_ptr_Uniform_m_block = OpTypePointer Uniform %m_block |
| %1 = OpVariable %_ptr_Uniform_m_block Uniform |
| %int = OpTypeInt 32 1 |
| %_ptr_Private_int = OpTypePointer Private %int |
| %int_0 = OpConstant %int 0 |
| %counter = OpVariable %_ptr_Private_int Private %int_0 |
| %12 = OpTypeFunction %int |
| %uint = OpTypeInt 32 0 |
| %int_1 = OpConstant %int 1 |
| %void = OpTypeVoid |
| %24 = OpTypeFunction %void |
| %_ptr_Uniform_mat4v4float = OpTypePointer Uniform %mat4v4float |
| %uint_0 = OpConstant %uint 0 |
| %uint_3 = OpConstant %uint 3 |
| %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float |
| %i = OpFunction %int None %12 |
| %13 = OpLabel |
| %14 = OpLoad %int %counter None |
| %16 = OpBitcast %uint %14 |
| %17 = OpBitcast %uint %int_1 |
| %19 = OpIAdd %uint %16 %17 |
| %20 = OpBitcast %int %19 |
| OpStore %counter %20 None |
| %21 = OpLoad %int %counter None |
| OpReturnValue %21 |
| OpFunctionEnd |
| %f = OpFunction %void None %24 |
| %25 = OpLabel |
| %p_m = OpAccessChain %_ptr_Uniform_mat4v4float %1 %uint_0 |
| %29 = OpFunctionCall %int %i |
| %30 = OpBitcast %uint %29 |
| %31 = OpExtInst %uint %32 UMin %30 %uint_3 |
| %p_m_i = OpAccessChain %_ptr_Uniform_v4float %p_m %31 |
| %l_m = OpLoad %mat4v4float %p_m None |
| %l_m_i = OpLoad %v4float %p_m_i None |
| OpReturn |
| OpFunctionEnd |