blob: dedf489a2f26411eff1883ffa1c48479a8382b31 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 44
; Schema: 0
OpCapability Shader
%35 = 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_0"
OpMemberName %u_block_std140 1 "inner_1"
OpMemberName %u_block_std140 2 "inner_2"
OpName %u "u"
OpName %load_u_inner "load_u_inner"
OpName %f "f"
OpDecorate %u_block_std140 Block
OpMemberDecorate %u_block_std140 0 Offset 0
OpMemberDecorate %u_block_std140 1 Offset 8
OpMemberDecorate %u_block_std140 2 Offset 16
OpDecorate %u NonWritable
OpDecorate %u DescriptorSet 0
OpDecorate %u Binding 0
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%u_block_std140 = OpTypeStruct %v2float %v2float %v2float
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%u = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%mat3v2float = OpTypeMatrix %v2float 3
%6 = OpTypeFunction %mat3v2float
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_v2float = OpTypePointer Uniform %v2float
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%void = OpTypeVoid
%26 = OpTypeFunction %void
%v3float = OpTypeVector %float 3
%mat2v3float = OpTypeMatrix %v3float 2
%42 = OpConstantNull %uint
%load_u_inner = OpFunction %mat3v2float None %6
%9 = OpLabel
%15 = OpAccessChain %_ptr_Uniform_v2float %u %uint_0
%16 = OpLoad %v2float %15
%19 = OpAccessChain %_ptr_Uniform_v2float %u %uint_1
%20 = OpLoad %v2float %19
%23 = OpAccessChain %_ptr_Uniform_v2float %u %uint_2
%24 = OpLoad %v2float %23
%25 = OpCompositeConstruct %mat3v2float %16 %20 %24
OpReturnValue %25
OpFunctionEnd
%f = OpFunction %void None %26
%29 = OpLabel
%33 = OpFunctionCall %mat3v2float %load_u_inner
%30 = OpTranspose %mat2v3float %33
%36 = OpAccessChain %_ptr_Uniform_v2float %u %uint_1
%37 = OpLoad %v2float %36
%34 = OpExtInst %float %35 Length %37
%39 = OpAccessChain %_ptr_Uniform_v2float %u %uint_0
%40 = OpLoad %v2float %39
%41 = OpVectorShuffle %v2float %40 %40 1 0
%43 = OpCompositeExtract %float %41 0
%38 = OpExtInst %float %35 FAbs %43
OpReturn
OpFunctionEnd