blob: 138d236750ad9a4a6a8cbe1607e549e9cace017f [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 32
; Schema: 0
OpCapability Shader
%20 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpName %u_block "u_block"
OpMemberName %u_block 0 "inner"
OpName %u "u"
OpName %f "f"
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
%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
%void = OpTypeVoid
%7 = OpTypeFunction %void
%v2float = OpTypeVector %float 2
%mat3v2float = OpTypeMatrix %v2float 3
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_mat2v3float = OpTypePointer Uniform %mat2v3float
%int = OpTypeInt 32 1
%int_1 = OpConstant %int 1
%_ptr_Uniform_v3float = OpTypePointer Uniform %v3float
%27 = OpConstantNull %int
%f = OpFunction %void None %7
%10 = OpLabel
%17 = OpAccessChain %_ptr_Uniform_mat2v3float %u %uint_0
%18 = OpLoad %mat2v3float %17
%11 = OpTranspose %mat3v2float %18
%24 = OpAccessChain %_ptr_Uniform_v3float %u %uint_0 %int_1
%25 = OpLoad %v3float %24
%19 = OpExtInst %float %20 Length %25
%28 = OpAccessChain %_ptr_Uniform_v3float %u %uint_0 %27
%29 = OpLoad %v3float %28
%30 = OpVectorShuffle %v3float %29 %29 2 0 1
%31 = OpCompositeExtract %float %30 0
%26 = OpExtInst %float %20 FAbs %31
OpReturn
OpFunctionEnd