blob: b8b732c4820eb9d14e9c6ab3d9b1b3c169bbfc1b [file]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 38
; Schema: 0
OpCapability Shader
%32 = 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"
OpMemberName %u_block_std140 3 "inner_col3"
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 16
OpMemberDecorate %u_block_std140 2 Offset 32
OpMemberDecorate %u_block_std140 3 Offset 48
OpDecorate %u_block_std140 Block
OpDecorate %1 DescriptorSet 0
OpDecorate %1 Binding 0
OpDecorate %1 NonWritable
%float = OpTypeFloat 32
%v3float = OpTypeVector %float 3
%u_block_std140 = OpTypeStruct %v3float %v3float %v3float %v3float
%_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_v3float = OpTypePointer Uniform %v3float
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%uint_3 = OpConstant %uint 3
%mat4v3float = OpTypeMatrix %v3float 4
%v4float = OpTypeVector %float 4
%mat3v4float = OpTypeMatrix %v4float 3
%f = OpFunction %void None %8
%9 = OpLabel
%10 = OpAccessChain %_ptr_Uniform_v3float %1 %uint_0
%14 = OpLoad %v3float %10 None
%15 = OpAccessChain %_ptr_Uniform_v3float %1 %uint_1
%17 = OpLoad %v3float %15 None
%18 = OpAccessChain %_ptr_Uniform_v3float %1 %uint_2
%20 = OpLoad %v3float %18 None
%21 = OpAccessChain %_ptr_Uniform_v3float %1 %uint_3
%23 = OpLoad %v3float %21 None
%25 = OpCompositeConstruct %mat4v3float %14 %17 %20 %23
%t = OpTranspose %mat3v4float %25
%29 = OpAccessChain %_ptr_Uniform_v3float %1 %uint_1
%30 = OpLoad %v3float %29 None
%l = OpExtInst %float %32 Length %30
%33 = OpAccessChain %_ptr_Uniform_v3float %1 %uint_0
%34 = OpLoad %v3float %33 None
%35 = OpVectorShuffle %v3float %34 %34 2 0 1
%36 = OpCompositeExtract %float %35 0
%a = OpExtInst %float %32 FAbs %36
OpReturn
OpFunctionEnd