| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 49 |
| ; Schema: 0 |
| OpCapability Shader |
| OpCapability Float16 |
| OpCapability UniformAndStorageBuffer16BitAccess |
| OpCapability StorageBuffer16BitAccess |
| %45 = 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" |
| OpMemberName %m_block_std140 3 "inner_col3" |
| 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 |
| OpMemberDecorate %m_block_std140 3 Offset 24 |
| OpDecorate %m_block_std140 Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpDecorate %1 NonWritable |
| %half = OpTypeFloat 16 |
| %v4half = OpTypeVector %half 4 |
| %m_block_std140 = OpTypeStruct %v4half %v4half %v4half %v4half |
| %_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_v4half = OpTypePointer Uniform %v4half |
| %uint_0 = OpConstant %uint 0 |
| %uint_1 = OpConstant %uint 1 |
| %uint_2 = OpConstant %uint 2 |
| %uint_3 = OpConstant %uint 3 |
| %mat4v4half = OpTypeMatrix %v4half 4 |
| %_ptr_Function_mat4v4half = OpTypePointer Function %mat4v4half |
| %_ptr_Function_v4half = OpTypePointer Function %v4half |
| %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 |
| %40 = OpVariable %_ptr_Function_mat4v4half Function |
| %25 = OpAccessChain %_ptr_Uniform_v4half %1 %uint_0 |
| %28 = OpLoad %v4half %25 None |
| %29 = OpAccessChain %_ptr_Uniform_v4half %1 %uint_1 |
| %31 = OpLoad %v4half %29 None |
| %32 = OpAccessChain %_ptr_Uniform_v4half %1 %uint_2 |
| %34 = OpLoad %v4half %32 None |
| %35 = OpAccessChain %_ptr_Uniform_v4half %1 %uint_3 |
| %37 = OpLoad %v4half %35 None |
| %l_m = OpCompositeConstruct %mat4v4half %28 %31 %34 %37 |
| OpStore %40 %l_m |
| %42 = OpFunctionCall %int %i |
| %43 = OpBitcast %uint %42 |
| %44 = OpExtInst %uint %45 UMin %43 %uint_3 |
| %46 = OpAccessChain %_ptr_Function_v4half %40 %44 |
| %l_m_i = OpLoad %v4half %46 None |
| OpReturn |
| OpFunctionEnd |