| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 58 |
| ; Schema: 0 |
| OpCapability Shader |
| OpCapability Float16 |
| OpCapability UniformAndStorageBuffer16BitAccess |
| OpCapability StorageBuffer16BitAccess |
| OpCapability StorageInputOutput16 |
| 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_0" |
| OpMemberName %u_block_std140 1 "inner_1" |
| OpName %u "u" |
| OpName %w "w" |
| OpName %load_u_inner "load_u_inner" |
| 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_std140 Block |
| OpMemberDecorate %u_block_std140 0 Offset 0 |
| OpMemberDecorate %u_block_std140 1 Offset 4 |
| 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 |
| %half = OpTypeFloat 16 |
| %v2half = OpTypeVector %half 2 |
| %u_block_std140 = OpTypeStruct %v2half %v2half |
| %_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140 |
| %u = OpVariable %_ptr_Uniform_u_block_std140 Uniform |
| %mat2v2half = OpTypeMatrix %v2half 2 |
| %_ptr_Workgroup_mat2v2half = OpTypePointer Workgroup %mat2v2half |
| %w = OpVariable %_ptr_Workgroup_mat2v2half Workgroup |
| %12 = OpTypeFunction %mat2v2half |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform_v2half = OpTypePointer Uniform %v2half |
| %uint_1 = OpConstant %uint 1 |
| %void = OpTypeVoid |
| %26 = OpTypeFunction %void %uint |
| %31 = OpConstantNull %mat2v2half |
| %uint_2 = OpConstant %uint 2 |
| %uint_264 = OpConstant %uint 264 |
| %int = OpTypeInt 32 1 |
| %int_1 = OpConstant %int 1 |
| %_ptr_Workgroup_v2half = OpTypePointer Workgroup %v2half |
| %46 = OpConstantNull %int |
| %_ptr_Workgroup_half = OpTypePointer Workgroup %half |
| %49 = OpConstantNull %uint |
| %_ptr_Uniform_half = OpTypePointer Uniform %half |
| %53 = OpTypeFunction %void |
| %load_u_inner = OpFunction %mat2v2half None %12 |
| %14 = OpLabel |
| %19 = OpAccessChain %_ptr_Uniform_v2half %u %uint_0 |
| %20 = OpLoad %v2half %19 |
| %23 = OpAccessChain %_ptr_Uniform_v2half %u %uint_1 |
| %24 = OpLoad %v2half %23 |
| %25 = OpCompositeConstruct %mat2v2half %20 %24 |
| OpReturnValue %25 |
| OpFunctionEnd |
| %f_inner = OpFunction %void None %26 |
| %local_invocation_index = OpFunctionParameter %uint |
| %30 = OpLabel |
| OpStore %w %31 |
| OpControlBarrier %uint_2 %uint_2 %uint_264 |
| %35 = OpFunctionCall %mat2v2half %load_u_inner |
| OpStore %w %35 |
| %39 = OpAccessChain %_ptr_Workgroup_v2half %w %int_1 |
| %40 = OpAccessChain %_ptr_Uniform_v2half %u %uint_0 |
| %41 = OpLoad %v2half %40 |
| OpStore %39 %41 |
| %42 = OpAccessChain %_ptr_Workgroup_v2half %w %int_1 |
| %43 = OpAccessChain %_ptr_Uniform_v2half %u %uint_0 |
| %44 = OpLoad %v2half %43 |
| %45 = OpVectorShuffle %v2half %44 %44 1 0 |
| OpStore %42 %45 |
| %48 = OpAccessChain %_ptr_Workgroup_half %w %46 %int_1 |
| %51 = OpAccessChain %_ptr_Uniform_half %u %uint_1 %49 |
| %52 = OpLoad %half %51 |
| OpStore %48 %52 |
| OpReturn |
| OpFunctionEnd |
| %f = OpFunction %void None %53 |
| %55 = OpLabel |
| %57 = OpLoad %uint %local_invocation_index_1 |
| %56 = OpFunctionCall %void %f_inner %57 |
| OpReturn |
| OpFunctionEnd |