blob: 0bb3c9d5ad0c2a6619843854422652eebc891fae [file]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 35
; Schema: 0
OpCapability Shader
%29 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpMemberName %u_block_std140 0 "inner_col0"
OpMemberName %u_block_std140 1 "inner_col1"
OpMemberName %u_block_std140 2 "inner_col2"
OpName %u_block_std140 "u_block_std140"
OpName %f "f"
OpName %t "t"
OpName %l "l"
OpName %a "a"
OpMemberDecorate %u_block_std140 0 Offset 0
OpMemberDecorate %u_block_std140 1 Offset 8
OpMemberDecorate %u_block_std140 2 Offset 16
OpDecorate %u_block_std140 Block
OpDecorate %1 DescriptorSet 0
OpDecorate %1 Binding 0
OpDecorate %1 NonWritable
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%u_block_std140 = OpTypeStruct %v2float %v2float %v2float
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%1 = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%void = OpTypeVoid
%8 = OpTypeFunction %void
%_ptr_Uniform_v2float = OpTypePointer Uniform %v2float
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%mat3v2float = OpTypeMatrix %v2float 3
%v3float = OpTypeVector %float 3
%mat2v3float = OpTypeMatrix %v3float 2
%f = OpFunction %void None %8
%9 = OpLabel
%10 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_0
%14 = OpLoad %v2float %10 None
%15 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_1
%17 = OpLoad %v2float %15 None
%18 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_2
%20 = OpLoad %v2float %18 None
%22 = OpCompositeConstruct %mat3v2float %14 %17 %20
%t = OpTranspose %mat2v3float %22
%26 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_1
%27 = OpLoad %v2float %26 None
%l = OpExtInst %float %29 Length %27
%30 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_0
%31 = OpLoad %v2float %30 None
%32 = OpVectorShuffle %v2float %31 %31 1 0
%33 = OpCompositeExtract %float %32 0
%a = OpExtInst %float %29 FAbs %33
OpReturn
OpFunctionEnd