| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 56 |
| ; 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 "u_block" |
| OpMemberName %u_block 0 "inner" |
| OpName %u "u" |
| OpName %w "w" |
| OpName %tint_zero_workgroup_memory "tint_zero_workgroup_memory" |
| OpName %local_idx "local_idx" |
| OpName %f_inner "f_inner" |
| OpName %local_invocation_index "local_invocation_index" |
| OpName %f "f" |
| OpDecorate %local_invocation_index_1 BuiltIn LocalInvocationIndex |
| OpDecorate %u_block Block |
| OpMemberDecorate %u_block 0 Offset 0 |
| OpMemberDecorate %u_block 0 ColMajor |
| OpMemberDecorate %u_block 0 MatrixStride 16 |
| OpDecorate %u NonWritable |
| OpDecorate %u DescriptorSet 0 |
| OpDecorate %u Binding 0 |
| %uint = OpTypeInt 32 0 |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %local_invocation_index_1 = OpVariable %_ptr_Input_uint Input |
| %float = OpTypeFloat 32 |
| %v3float = OpTypeVector %float 3 |
| %mat2v3float = OpTypeMatrix %v3float 2 |
| %u_block = OpTypeStruct %mat2v3float |
| %_ptr_Uniform_u_block = OpTypePointer Uniform %u_block |
| %u = OpVariable %_ptr_Uniform_u_block Uniform |
| %_ptr_Workgroup_mat2v3float = OpTypePointer Workgroup %mat2v3float |
| %w = OpVariable %_ptr_Workgroup_mat2v3float Workgroup |
| %void = OpTypeVoid |
| %12 = OpTypeFunction %void %uint |
| %uint_1 = OpConstant %uint 1 |
| %bool = OpTypeBool |
| %22 = OpConstantNull %mat2v3float |
| %uint_2 = OpConstant %uint 2 |
| %uint_264 = OpConstant %uint 264 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform_mat2v3float = OpTypePointer Uniform %mat2v3float |
| %int = OpTypeInt 32 1 |
| %int_1 = OpConstant %int 1 |
| %_ptr_Workgroup_v3float = OpTypePointer Workgroup %v3float |
| %38 = OpConstantNull %int |
| %_ptr_Uniform_v3float = OpTypePointer Uniform %v3float |
| %_ptr_Workgroup_float = OpTypePointer Workgroup %float |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %51 = OpTypeFunction %void |
| %tint_zero_workgroup_memory = OpFunction %void None %12 |
| %local_idx = OpFunctionParameter %uint |
| %16 = OpLabel |
| %18 = OpULessThan %bool %local_idx %uint_1 |
| OpSelectionMerge %20 None |
| OpBranchConditional %18 %21 %20 |
| %21 = OpLabel |
| OpStore %w %22 |
| OpBranch %20 |
| %20 = OpLabel |
| OpControlBarrier %uint_2 %uint_2 %uint_264 |
| OpReturn |
| OpFunctionEnd |
| %f_inner = OpFunction %void None %12 |
| %local_invocation_index = OpFunctionParameter %uint |
| %28 = OpLabel |
| %29 = OpFunctionCall %void %tint_zero_workgroup_memory %local_invocation_index |
| %32 = OpAccessChain %_ptr_Uniform_mat2v3float %u %uint_0 |
| %33 = OpLoad %mat2v3float %32 |
| OpStore %w %33 |
| %37 = OpAccessChain %_ptr_Workgroup_v3float %w %int_1 |
| %40 = OpAccessChain %_ptr_Uniform_v3float %u %uint_0 %38 |
| %41 = OpLoad %v3float %40 |
| OpStore %37 %41 |
| %42 = OpAccessChain %_ptr_Workgroup_v3float %w %int_1 |
| %43 = OpAccessChain %_ptr_Uniform_v3float %u %uint_0 %38 |
| %44 = OpLoad %v3float %43 |
| %45 = OpVectorShuffle %v3float %44 %44 2 0 1 |
| OpStore %42 %45 |
| %47 = OpAccessChain %_ptr_Workgroup_float %w %38 %int_1 |
| %49 = OpAccessChain %_ptr_Uniform_float %u %uint_0 %int_1 %38 |
| %50 = OpLoad %float %49 |
| OpStore %47 %50 |
| OpReturn |
| OpFunctionEnd |
| %f = OpFunction %void None %51 |
| %53 = OpLabel |
| %55 = OpLoad %uint %local_invocation_index_1 |
| %54 = OpFunctionCall %void %f_inner %55 |
| OpReturn |
| OpFunctionEnd |