blob: e5673eb2462ee8db2e617957fbc951e7312701c4 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 57
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
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 %a "a"
OpName %m "m"
OpName %b "b"
OpName %v "v"
OpName %c "c"
OpName %f_1 "f_1"
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 4
OpDecorate %u NonWritable
OpDecorate %u DescriptorSet 0
OpDecorate %u Binding 0
%half = OpTypeFloat 16
%v2half = OpTypeVector %half 2
%u_block_std140 = OpTypeStruct %v2half %v2half
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%u = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%void = OpTypeVoid
%mat2v2half = OpTypeMatrix %v2half 2
%6 = OpTypeFunction %void %mat2v2half
%12 = OpTypeFunction %void %v2half
%16 = OpTypeFunction %void %half
%20 = OpTypeFunction %mat2v2half
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_v2half = OpTypePointer Uniform %v2half
%uint_1 = OpConstant %uint 1
%35 = OpTypeFunction %void
%48 = OpConstantNull %uint
%_ptr_Uniform_half = OpTypePointer Uniform %half
%a = OpFunction %void None %6
%m = OpFunctionParameter %mat2v2half
%11 = OpLabel
OpReturn
OpFunctionEnd
%b = OpFunction %void None %12
%v = OpFunctionParameter %v2half
%15 = OpLabel
OpReturn
OpFunctionEnd
%c = OpFunction %void None %16
%f_1 = OpFunctionParameter %half
%19 = OpLabel
OpReturn
OpFunctionEnd
%load_u_inner = OpFunction %mat2v2half None %20
%22 = OpLabel
%28 = OpAccessChain %_ptr_Uniform_v2half %u %uint_0
%29 = OpLoad %v2half %28
%32 = OpAccessChain %_ptr_Uniform_v2half %u %uint_1
%33 = OpLoad %v2half %32
%34 = OpCompositeConstruct %mat2v2half %29 %33
OpReturnValue %34
OpFunctionEnd
%f = OpFunction %void None %35
%37 = OpLabel
%39 = OpFunctionCall %mat2v2half %load_u_inner
%38 = OpFunctionCall %void %a %39
%41 = OpAccessChain %_ptr_Uniform_v2half %u %uint_1
%42 = OpLoad %v2half %41
%40 = OpFunctionCall %void %b %42
%44 = OpAccessChain %_ptr_Uniform_v2half %u %uint_1
%45 = OpLoad %v2half %44
%46 = OpVectorShuffle %v2half %45 %45 1 0
%43 = OpFunctionCall %void %b %46
%50 = OpAccessChain %_ptr_Uniform_half %u %uint_1 %48
%51 = OpLoad %half %50
%47 = OpFunctionCall %void %c %51
%53 = OpAccessChain %_ptr_Uniform_v2half %u %uint_1
%54 = OpLoad %v2half %53
%55 = OpVectorShuffle %v2half %54 %54 1 0
%56 = OpCompositeExtract %half %55 0
%52 = OpFunctionCall %void %c %56
OpReturn
OpFunctionEnd