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