blob: 17e823218aa9260c08ab98b06f97cf36708f36c5 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 36
; Schema: 0
OpCapability Shader
%24 = 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 %_arr_mat2v4float_uint_4 ArrayStride 32
OpDecorate %u NonWritable
OpDecorate %u DescriptorSet 0
OpDecorate %u Binding 0
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%mat2v4float = OpTypeMatrix %v4float 2
%uint = OpTypeInt 32 0
%uint_4 = OpConstant %uint 4
%_arr_mat2v4float_uint_4 = OpTypeArray %mat2v4float %uint_4
%u_block = OpTypeStruct %_arr_mat2v4float_uint_4
%_ptr_Uniform_u_block = OpTypePointer Uniform %u_block
%u = OpVariable %_ptr_Uniform_u_block Uniform
%void = OpTypeVoid
%10 = OpTypeFunction %void
%v2float = OpTypeVector %float 2
%mat4v2float = OpTypeMatrix %v2float 4
%uint_0 = OpConstant %uint 0
%int = OpTypeInt 32 1
%int_2 = OpConstant %int 2
%_ptr_Uniform_mat2v4float = OpTypePointer Uniform %mat2v4float
%25 = OpConstantNull %int
%int_1 = OpConstant %int 1
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
%f = OpFunction %void None %10
%13 = OpLabel
%21 = OpAccessChain %_ptr_Uniform_mat2v4float %u %uint_0 %int_2
%22 = OpLoad %mat2v4float %21
%14 = OpTranspose %mat4v2float %22
%28 = OpAccessChain %_ptr_Uniform_v4float %u %uint_0 %25 %int_1
%29 = OpLoad %v4float %28
%30 = OpVectorShuffle %v4float %29 %29 1 3 0 2
%23 = OpExtInst %float %24 Length %30
%32 = OpAccessChain %_ptr_Uniform_v4float %u %uint_0 %25 %int_1
%33 = OpLoad %v4float %32
%34 = OpVectorShuffle %v4float %33 %33 1 3 0 2
%35 = OpCompositeExtract %float %34 0
%31 = OpExtInst %float %24 FAbs %35
OpReturn
OpFunctionEnd