| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 53 |
| ; Schema: 0 |
| OpCapability Shader |
| OpCapability Float16 |
| OpCapability UniformAndStorageBuffer16BitAccess |
| OpCapability StorageBuffer16BitAccess |
| %43 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %f "f" |
| OpExecutionMode %f LocalSize 1 1 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 "m_3" |
| OpMemberName %S_std140 5 "after" |
| OpName %u "u" |
| OpName %load_u_inner_2_m "load_u_inner_2_m" |
| OpName %f "f" |
| 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 32 |
| OpMemberDecorate %S_std140 5 Offset 64 |
| OpDecorate %_arr_S_std140_uint_4 ArrayStride 128 |
| OpDecorate %u NonWritable |
| OpDecorate %u DescriptorSet 0 |
| OpDecorate %u Binding 0 |
| %int = OpTypeInt 32 1 |
| %half = OpTypeFloat 16 |
| %v4half = OpTypeVector %half 4 |
| %S_std140 = OpTypeStruct %int %v4half %v4half %v4half %v4half %int |
| %uint = OpTypeInt 32 0 |
| %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 |
| %mat4v4half = OpTypeMatrix %v4half 4 |
| %11 = OpTypeFunction %mat4v4half |
| %uint_0 = OpConstant %uint 0 |
| %uint_2 = OpConstant %uint 2 |
| %_ptr_Uniform_S_std140 = OpTypePointer Uniform %S_std140 |
| %uint_1 = OpConstant %uint 1 |
| %_ptr_Uniform_v4half = OpTypePointer Uniform %v4half |
| %uint_3 = OpConstant %uint 3 |
| %void = OpTypeVoid |
| %36 = OpTypeFunction %void |
| %44 = OpConstantNull %uint |
| %load_u_inner_2_m = OpFunction %mat4v4half None %11 |
| %14 = OpLabel |
| %19 = OpAccessChain %_ptr_Uniform_S_std140 %u %uint_0 %uint_2 |
| %23 = OpAccessChain %_ptr_Uniform_v4half %19 %uint_1 |
| %24 = OpLoad %v4half %23 |
| %26 = OpAccessChain %_ptr_Uniform_v4half %19 %uint_2 |
| %27 = OpLoad %v4half %26 |
| %30 = OpAccessChain %_ptr_Uniform_v4half %19 %uint_3 |
| %31 = OpLoad %v4half %30 |
| %33 = OpAccessChain %_ptr_Uniform_v4half %19 %uint_4 |
| %34 = OpLoad %v4half %33 |
| %35 = OpCompositeConstruct %mat4v4half %24 %27 %31 %34 |
| OpReturnValue %35 |
| OpFunctionEnd |
| %f = OpFunction %void None %36 |
| %39 = OpLabel |
| %41 = OpFunctionCall %mat4v4half %load_u_inner_2_m |
| %40 = OpTranspose %mat4v4half %41 |
| %45 = OpAccessChain %_ptr_Uniform_v4half %u %uint_0 %44 %uint_2 |
| %46 = OpLoad %v4half %45 |
| %47 = OpVectorShuffle %v4half %46 %46 1 3 0 2 |
| %42 = OpExtInst %half %43 Length %47 |
| %49 = OpAccessChain %_ptr_Uniform_v4half %u %uint_0 %44 %uint_2 |
| %50 = OpLoad %v4half %49 |
| %51 = OpVectorShuffle %v4half %50 %50 1 3 0 2 |
| %52 = OpCompositeExtract %half %51 0 |
| %48 = OpExtInst %half %43 FAbs %52 |
| OpReturn |
| OpFunctionEnd |