blob: 07fdde30a8cac4dad47e7d0183a27e7dd1f13145 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 40
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
%31 = 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"
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
OpDecorate %u NonWritable
OpDecorate %u DescriptorSet 0
OpDecorate %u Binding 0
%half = OpTypeFloat 16
%v3half = OpTypeVector %half 3
%u_block_std140 = OpTypeStruct %v3half %v3half
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%u = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%mat2v3half = OpTypeMatrix %v3half 2
%6 = OpTypeFunction %mat2v3half
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_v3half = OpTypePointer Uniform %v3half
%uint_1 = OpConstant %uint 1
%void = OpTypeVoid
%22 = OpTypeFunction %void
%v2half = OpTypeVector %half 2
%mat3v2half = OpTypeMatrix %v2half 3
%38 = OpConstantNull %uint
%load_u_inner = OpFunction %mat2v3half None %6
%9 = OpLabel
%15 = OpAccessChain %_ptr_Uniform_v3half %u %uint_0
%16 = OpLoad %v3half %15
%19 = OpAccessChain %_ptr_Uniform_v3half %u %uint_1
%20 = OpLoad %v3half %19
%21 = OpCompositeConstruct %mat2v3half %16 %20
OpReturnValue %21
OpFunctionEnd
%f = OpFunction %void None %22
%25 = OpLabel
%29 = OpFunctionCall %mat2v3half %load_u_inner
%26 = OpTranspose %mat3v2half %29
%32 = OpAccessChain %_ptr_Uniform_v3half %u %uint_1
%33 = OpLoad %v3half %32
%30 = OpExtInst %half %31 Length %33
%35 = OpAccessChain %_ptr_Uniform_v3half %u %uint_0
%36 = OpLoad %v3half %35
%37 = OpVectorShuffle %v3half %36 %36 2 0 1
%39 = OpCompositeExtract %half %37 0
%34 = OpExtInst %half %31 FAbs %39
OpReturn
OpFunctionEnd