| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 131 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %f "f" %local_invocation_index_1 |
| OpExecutionMode %f LocalSize 1 1 1 |
| OpName %local_invocation_index_1 "local_invocation_index_1" |
| OpName %u_block_std140 "u_block_std140" |
| OpMemberName %u_block_std140 0 "inner" |
| OpName %S_std140 "S_std140" |
| OpMemberName %S_std140 0 "before" |
| OpMemberName %S_std140 1 "m_0" |
| OpMemberName %S_std140 2 "m_1" |
| OpMemberName %S_std140 3 "m_2" |
| OpMemberName %S_std140 4 "after" |
| OpName %u "u" |
| OpName %S "S" |
| OpMemberName %S 0 "before" |
| OpMemberName %S 1 "m" |
| OpMemberName %S 2 "after" |
| OpName %w "w" |
| OpName %conv_S "conv_S" |
| OpName %val "val" |
| OpName %conv_arr4_S "conv_arr4_S" |
| OpName %val_0 "val" |
| OpName %arr "arr" |
| OpName %i "i" |
| OpName %var_for_index "var_for_index" |
| OpName %load_u_inner_2_m "load_u_inner_2_m" |
| OpName %f_inner "f_inner" |
| OpName %local_invocation_index "local_invocation_index" |
| OpName %idx "idx" |
| OpName %f "f" |
| OpDecorate %local_invocation_index_1 BuiltIn LocalInvocationIndex |
| OpDecorate %u_block_std140 Block |
| OpMemberDecorate %u_block_std140 0 Offset 0 |
| OpMemberDecorate %S_std140 0 Offset 0 |
| OpMemberDecorate %S_std140 1 Offset 8 |
| OpMemberDecorate %S_std140 2 Offset 16 |
| OpMemberDecorate %S_std140 3 Offset 24 |
| OpMemberDecorate %S_std140 4 Offset 72 |
| OpDecorate %_arr_S_std140_uint_4 ArrayStride 80 |
| OpDecorate %u NonWritable |
| OpDecorate %u DescriptorSet 0 |
| OpDecorate %u Binding 0 |
| OpMemberDecorate %S 0 Offset 0 |
| OpMemberDecorate %S 1 Offset 8 |
| OpMemberDecorate %S 1 ColMajor |
| OpMemberDecorate %S 1 MatrixStride 8 |
| OpMemberDecorate %S 2 Offset 72 |
| OpDecorate %_arr_S_uint_4 ArrayStride 80 |
| %uint = OpTypeInt 32 0 |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %local_invocation_index_1 = OpVariable %_ptr_Input_uint Input |
| %int = OpTypeInt 32 1 |
| %float = OpTypeFloat 32 |
| %v2float = OpTypeVector %float 2 |
| %S_std140 = OpTypeStruct %int %v2float %v2float %v2float %int |
| %uint_4 = OpConstant %uint 4 |
| %_arr_S_std140_uint_4 = OpTypeArray %S_std140 %uint_4 |
| %u_block_std140 = OpTypeStruct %_arr_S_std140_uint_4 |
| %_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140 |
| %u = OpVariable %_ptr_Uniform_u_block_std140 Uniform |
| %mat3v2float = OpTypeMatrix %v2float 3 |
| %S = OpTypeStruct %int %mat3v2float %int |
| %_arr_S_uint_4 = OpTypeArray %S %uint_4 |
| %_ptr_Workgroup__arr_S_uint_4 = OpTypePointer Workgroup %_arr_S_uint_4 |
| %w = OpVariable %_ptr_Workgroup__arr_S_uint_4 Workgroup |
| %18 = OpTypeFunction %S %S_std140 |
| %29 = OpTypeFunction %_arr_S_uint_4 %_arr_S_std140_uint_4 |
| %_ptr_Function__arr_S_uint_4 = OpTypePointer Function %_arr_S_uint_4 |
| %35 = OpConstantNull %_arr_S_uint_4 |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %38 = OpConstantNull %uint |
| %bool = OpTypeBool |
| %_ptr_Function__arr_S_std140_uint_4 = OpTypePointer Function %_arr_S_std140_uint_4 |
| %51 = OpConstantNull %_arr_S_std140_uint_4 |
| %_ptr_Function_S = OpTypePointer Function %S |
| %_ptr_Function_S_std140 = OpTypePointer Function %S_std140 |
| %uint_1 = OpConstant %uint 1 |
| %64 = OpTypeFunction %mat3v2float |
| %uint_0 = OpConstant %uint 0 |
| %uint_2 = OpConstant %uint 2 |
| %_ptr_Uniform_S_std140 = OpTypePointer Uniform %S_std140 |
| %_ptr_Uniform_v2float = OpTypePointer Uniform %v2float |
| %uint_3 = OpConstant %uint 3 |
| %void = OpTypeVoid |
| %84 = OpTypeFunction %void %uint |
| %_ptr_Workgroup_S = OpTypePointer Workgroup %S |
| %102 = OpConstantNull %S |
| %uint_264 = OpConstant %uint 264 |
| %_ptr_Uniform__arr_S_std140_uint_4 = OpTypePointer Uniform %_arr_S_std140_uint_4 |
| %int_1 = OpConstant %int 1 |
| %int_3 = OpConstant %int 3 |
| %_ptr_Workgroup_mat3v2float = OpTypePointer Workgroup %mat3v2float |
| %120 = OpConstantNull %int |
| %_ptr_Workgroup_v2float = OpTypePointer Workgroup %v2float |
| %126 = OpTypeFunction %void |
| %conv_S = OpFunction %S None %18 |
| %val = OpFunctionParameter %S_std140 |
| %21 = OpLabel |
| %22 = OpCompositeExtract %int %val 0 |
| %23 = OpCompositeExtract %v2float %val 1 |
| %24 = OpCompositeExtract %v2float %val 2 |
| %25 = OpCompositeExtract %v2float %val 3 |
| %26 = OpCompositeConstruct %mat3v2float %23 %24 %25 |
| %27 = OpCompositeExtract %int %val 4 |
| %28 = OpCompositeConstruct %S %22 %26 %27 |
| OpReturnValue %28 |
| OpFunctionEnd |
| %conv_arr4_S = OpFunction %_arr_S_uint_4 None %29 |
| %val_0 = OpFunctionParameter %_arr_S_std140_uint_4 |
| %32 = OpLabel |
| %arr = OpVariable %_ptr_Function__arr_S_uint_4 Function %35 |
| %i = OpVariable %_ptr_Function_uint Function %38 |
| %var_for_index = OpVariable %_ptr_Function__arr_S_std140_uint_4 Function %51 |
| OpBranch %39 |
| %39 = OpLabel |
| OpLoopMerge %40 %41 None |
| OpBranch %42 |
| %42 = OpLabel |
| %44 = OpLoad %uint %i |
| %45 = OpULessThan %bool %44 %uint_4 |
| %43 = OpLogicalNot %bool %45 |
| OpSelectionMerge %47 None |
| OpBranchConditional %43 %48 %47 |
| %48 = OpLabel |
| OpBranch %40 |
| %47 = OpLabel |
| OpStore %var_for_index %val_0 |
| %52 = OpLoad %uint %i |
| %54 = OpAccessChain %_ptr_Function_S %arr %52 |
| %56 = OpLoad %uint %i |
| %58 = OpAccessChain %_ptr_Function_S_std140 %var_for_index %56 |
| %59 = OpLoad %S_std140 %58 |
| %55 = OpFunctionCall %S %conv_S %59 |
| OpStore %54 %55 |
| OpBranch %41 |
| %41 = OpLabel |
| %60 = OpLoad %uint %i |
| %62 = OpIAdd %uint %60 %uint_1 |
| OpStore %i %62 |
| OpBranch %39 |
| %40 = OpLabel |
| %63 = OpLoad %_arr_S_uint_4 %arr |
| OpReturnValue %63 |
| OpFunctionEnd |
| %load_u_inner_2_m = OpFunction %mat3v2float None %64 |
| %66 = OpLabel |
| %71 = OpAccessChain %_ptr_Uniform_S_std140 %u %uint_0 %uint_2 |
| %74 = OpAccessChain %_ptr_Uniform_v2float %71 %uint_1 |
| %75 = OpLoad %v2float %74 |
| %77 = OpAccessChain %_ptr_Uniform_v2float %71 %uint_2 |
| %78 = OpLoad %v2float %77 |
| %81 = OpAccessChain %_ptr_Uniform_v2float %71 %uint_3 |
| %82 = OpLoad %v2float %81 |
| %83 = OpCompositeConstruct %mat3v2float %75 %78 %82 |
| OpReturnValue %83 |
| OpFunctionEnd |
| %f_inner = OpFunction %void None %84 |
| %local_invocation_index = OpFunctionParameter %uint |
| %88 = OpLabel |
| %idx = OpVariable %_ptr_Function_uint Function %38 |
| OpStore %idx %local_invocation_index |
| OpBranch %90 |
| %90 = OpLabel |
| OpLoopMerge %91 %92 None |
| OpBranch %93 |
| %93 = OpLabel |
| %95 = OpLoad %uint %idx |
| %96 = OpULessThan %bool %95 %uint_4 |
| %94 = OpLogicalNot %bool %96 |
| OpSelectionMerge %97 None |
| OpBranchConditional %94 %98 %97 |
| %98 = OpLabel |
| OpBranch %91 |
| %97 = OpLabel |
| %99 = OpLoad %uint %idx |
| %101 = OpAccessChain %_ptr_Workgroup_S %w %99 |
| OpStore %101 %102 |
| OpBranch %92 |
| %92 = OpLabel |
| %103 = OpLoad %uint %idx |
| %104 = OpIAdd %uint %103 %uint_1 |
| OpStore %idx %104 |
| OpBranch %90 |
| %91 = OpLabel |
| OpControlBarrier %uint_2 %uint_2 %uint_264 |
| %109 = OpAccessChain %_ptr_Uniform__arr_S_std140_uint_4 %u %uint_0 |
| %110 = OpLoad %_arr_S_std140_uint_4 %109 |
| %107 = OpFunctionCall %_arr_S_uint_4 %conv_arr4_S %110 |
| OpStore %w %107 |
| %112 = OpAccessChain %_ptr_Workgroup_S %w %int_1 |
| %114 = OpAccessChain %_ptr_Uniform_S_std140 %u %uint_0 %uint_2 |
| %115 = OpLoad %S_std140 %114 |
| %113 = OpFunctionCall %S %conv_S %115 |
| OpStore %112 %113 |
| %118 = OpAccessChain %_ptr_Workgroup_mat3v2float %w %int_3 %uint_1 |
| %119 = OpFunctionCall %mat3v2float %load_u_inner_2_m |
| OpStore %118 %119 |
| %122 = OpAccessChain %_ptr_Workgroup_v2float %w %int_1 %uint_1 %120 |
| %123 = OpAccessChain %_ptr_Uniform_v2float %u %uint_0 %38 %uint_2 |
| %124 = OpLoad %v2float %123 |
| %125 = OpVectorShuffle %v2float %124 %124 1 0 |
| OpStore %122 %125 |
| OpReturn |
| OpFunctionEnd |
| %f = OpFunction %void None %126 |
| %128 = OpLabel |
| %130 = OpLoad %uint %local_invocation_index_1 |
| %129 = OpFunctionCall %void %f_inner %130 |
| OpReturn |
| OpFunctionEnd |