blob: e4c71b7a40945a1845ccbb360572038d9c90dd97 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 52
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
%42 = 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"
OpName %S_std140 "S_std140"
OpMemberName %S_std140 0 "before"
OpMemberName %S_std140 1 "m_0"
OpMemberName %S_std140 2 "m_1"
OpMemberName %S_std140 3 "m_2"
OpMemberName %S_std140 4 "after"
OpName %u "u"
OpName %load_u_inner_2_m "load_u_inner_2_m"
OpName %f "f"
OpDecorate %u_block_std140 Block
OpMemberDecorate %u_block_std140 0 Offset 0
OpMemberDecorate %S_std140 0 Offset 0
OpMemberDecorate %S_std140 1 Offset 4
OpMemberDecorate %S_std140 2 Offset 8
OpMemberDecorate %S_std140 3 Offset 12
OpMemberDecorate %S_std140 4 Offset 64
OpDecorate %_arr_S_std140_uint_4 ArrayStride 128
OpDecorate %u NonWritable
OpDecorate %u DescriptorSet 0
OpDecorate %u Binding 0
%int = OpTypeInt 32 1
%half = OpTypeFloat 16
%v2half = OpTypeVector %half 2
%S_std140 = OpTypeStruct %int %v2half %v2half %v2half %int
%uint = OpTypeInt 32 0
%uint_4 = OpConstant %uint 4
%_arr_S_std140_uint_4 = OpTypeArray %S_std140 %uint_4
%u_block_std140 = OpTypeStruct %_arr_S_std140_uint_4
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%u = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%mat3v2half = OpTypeMatrix %v2half 3
%11 = OpTypeFunction %mat3v2half
%uint_0 = OpConstant %uint 0
%uint_2 = OpConstant %uint 2
%_ptr_Uniform_S_std140 = OpTypePointer Uniform %S_std140
%uint_1 = OpConstant %uint 1
%_ptr_Uniform_v2half = OpTypePointer Uniform %v2half
%uint_3 = OpConstant %uint 3
%void = OpTypeVoid
%33 = OpTypeFunction %void
%v3half = OpTypeVector %half 3
%mat2v3half = OpTypeMatrix %v3half 2
%43 = OpConstantNull %uint
%load_u_inner_2_m = OpFunction %mat3v2half None %11
%14 = OpLabel
%19 = OpAccessChain %_ptr_Uniform_S_std140 %u %uint_0 %uint_2
%23 = OpAccessChain %_ptr_Uniform_v2half %19 %uint_1
%24 = OpLoad %v2half %23
%26 = OpAccessChain %_ptr_Uniform_v2half %19 %uint_2
%27 = OpLoad %v2half %26
%30 = OpAccessChain %_ptr_Uniform_v2half %19 %uint_3
%31 = OpLoad %v2half %30
%32 = OpCompositeConstruct %mat3v2half %24 %27 %31
OpReturnValue %32
OpFunctionEnd
%f = OpFunction %void None %33
%36 = OpLabel
%40 = OpFunctionCall %mat3v2half %load_u_inner_2_m
%37 = OpTranspose %mat2v3half %40
%44 = OpAccessChain %_ptr_Uniform_v2half %u %uint_0 %43 %uint_2
%45 = OpLoad %v2half %44
%46 = OpVectorShuffle %v2half %45 %45 1 0
%41 = OpExtInst %half %42 Length %46
%48 = OpAccessChain %_ptr_Uniform_v2half %u %uint_0 %43 %uint_2
%49 = OpLoad %v2half %48
%50 = OpVectorShuffle %v2half %49 %49 1 0
%51 = OpCompositeExtract %half %50 0
%47 = OpExtInst %half %42 FAbs %51
OpReturn
OpFunctionEnd