| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 73 |
| ; Schema: 0 |
| OpCapability Shader |
| %48 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %unused_entry_point "unused_entry_point" |
| OpExecutionMode %unused_entry_point LocalSize 1 1 1 |
| OpMemberName %S 0 "a" |
| OpMemberName %S 1 "b" |
| OpMemberName %S 2 "c" |
| OpName %S "S" |
| OpMemberName %v_block 0 "inner" |
| OpName %v_block "v_block" |
| OpName %i "i" |
| OpName %idx1 "idx1" |
| OpName %idx2 "idx2" |
| OpName %idx3 "idx3" |
| OpName %foo "foo" |
| OpName %a "a" |
| OpName %unused_entry_point "unused_entry_point" |
| OpMemberDecorate %S 0 Offset 0 |
| OpMemberDecorate %S 1 Offset 16 |
| OpMemberDecorate %S 2 Offset 32 |
| OpMemberDecorate %S 2 ColMajor |
| OpMemberDecorate %S 2 MatrixStride 8 |
| OpMemberDecorate %v_block 0 Offset 0 |
| OpDecorate %v_block Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpDecorate %1 Coherent |
| OpDecorate %_arr_float_uint_4 ArrayStride 4 |
| %int = OpTypeInt 32 1 |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %v2float = OpTypeVector %float 2 |
| %mat2v2float = OpTypeMatrix %v2float 2 |
| %S = OpTypeStruct %int %v4float %mat2v2float |
| %v_block = OpTypeStruct %S |
| %_ptr_StorageBuffer_v_block = OpTypePointer StorageBuffer %v_block |
| %1 = OpVariable %_ptr_StorageBuffer_v_block StorageBuffer |
| %uint = OpTypeInt 32 0 |
| %_ptr_Private_uint = OpTypePointer Private %uint |
| %13 = OpConstantNull %uint |
| %i = OpVariable %_ptr_Private_uint Private %13 |
| %15 = OpTypeFunction %int |
| %uint_1 = OpConstant %uint 1 |
| %int_1 = OpConstant %int 1 |
| %uint_2 = OpConstant %uint 2 |
| %uint_3 = OpConstant %uint 3 |
| %void = OpTypeVoid |
| %33 = OpTypeFunction %void |
| %uint_4 = OpConstant %uint 4 |
| %_arr_float_uint_4 = OpTypeArray %float %uint_4 |
| %_ptr_Function__arr_float_uint_4 = OpTypePointer Function %_arr_float_uint_4 |
| %39 = OpConstantNull %_arr_float_uint_4 |
| %_ptr_Function_float = OpTypePointer Function %float |
| %float_2 = OpConstant %float 2 |
| %float_10 = OpConstant %float 10 |
| %bool = OpTypeBool |
| %float_1 = OpConstant %float 1 |
| %idx1 = OpFunction %int None %15 |
| %16 = OpLabel |
| %17 = OpLoad %uint %i None |
| %18 = OpIAdd %uint %17 %uint_1 |
| OpStore %i %18 None |
| OpReturnValue %int_1 |
| OpFunctionEnd |
| %idx2 = OpFunction %int None %15 |
| %22 = OpLabel |
| %23 = OpLoad %uint %i None |
| %24 = OpIAdd %uint %23 %uint_2 |
| OpStore %i %24 None |
| OpReturnValue %int_1 |
| OpFunctionEnd |
| %idx3 = OpFunction %int None %15 |
| %27 = OpLabel |
| %28 = OpLoad %uint %i None |
| %29 = OpIAdd %uint %28 %uint_3 |
| OpStore %i %29 None |
| OpReturnValue %int_1 |
| OpFunctionEnd |
| %foo = OpFunction %void None %33 |
| %34 = OpLabel |
| %a = OpVariable %_ptr_Function__arr_float_uint_4 Function |
| OpStore %a %39 |
| OpBranch %40 |
| %40 = OpLabel |
| %45 = OpFunctionCall %int %idx1 |
| %46 = OpBitcast %uint %45 |
| %47 = OpExtInst %uint %48 UMin %46 %uint_3 |
| %49 = OpAccessChain %_ptr_Function_float %a %47 |
| %51 = OpLoad %float %49 None |
| %52 = OpFMul %float %51 %float_2 |
| OpStore %49 %52 None |
| OpBranch %43 |
| %43 = OpLabel |
| OpLoopMerge %44 %42 None |
| OpBranch %41 |
| %41 = OpLabel |
| %54 = OpFunctionCall %int %idx2 |
| %55 = OpBitcast %uint %54 |
| %56 = OpExtInst %uint %48 UMin %55 %uint_3 |
| %57 = OpAccessChain %_ptr_Function_float %a %56 |
| %58 = OpLoad %float %57 None |
| %59 = OpFOrdLessThan %bool %58 %float_10 |
| OpSelectionMerge %62 None |
| OpBranchConditional %59 %62 %63 |
| %63 = OpLabel |
| OpBranch %44 |
| %62 = OpLabel |
| OpBranch %42 |
| %42 = OpLabel |
| %64 = OpFunctionCall %int %idx3 |
| %65 = OpBitcast %uint %64 |
| %66 = OpExtInst %uint %48 UMin %65 %uint_3 |
| %67 = OpAccessChain %_ptr_Function_float %a %66 |
| %68 = OpLoad %float %67 None |
| %69 = OpFAdd %float %68 %float_1 |
| OpStore %67 %69 None |
| OpBranch %43 |
| %44 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %unused_entry_point = OpFunction %void None %33 |
| %72 = OpLabel |
| OpReturn |
| OpFunctionEnd |