blob: 34680c693c5265264729ab9095eccf77645796ab [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 65
; 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"
OpMemberName %u_block_std140 2 "inner_2"
OpMemberName %u_block_std140 3 "inner_3"
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 8
OpMemberDecorate %u_block_std140 2 Offset 16
OpMemberDecorate %u_block_std140 3 Offset 24
OpDecorate %u NonWritable
OpDecorate %u DescriptorSet 0
OpDecorate %u Binding 0
%half = OpTypeFloat 16
%v4half = OpTypeVector %half 4
%u_block_std140 = OpTypeStruct %v4half %v4half %v4half %v4half
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%u = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%void = OpTypeVoid
%mat4v4half = OpTypeMatrix %v4half 4
%6 = OpTypeFunction %void %mat4v4half
%12 = OpTypeFunction %void %v4half
%16 = OpTypeFunction %void %half
%20 = OpTypeFunction %mat4v4half
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_v4half = OpTypePointer Uniform %v4half
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%uint_3 = OpConstant %uint 3
%43 = OpTypeFunction %void
%56 = OpConstantNull %uint
%_ptr_Uniform_half = OpTypePointer Uniform %half
%a = OpFunction %void None %6
%m = OpFunctionParameter %mat4v4half
%11 = OpLabel
OpReturn
OpFunctionEnd
%b = OpFunction %void None %12
%v = OpFunctionParameter %v4half
%15 = OpLabel
OpReturn
OpFunctionEnd
%c = OpFunction %void None %16
%f_1 = OpFunctionParameter %half
%19 = OpLabel
OpReturn
OpFunctionEnd
%load_u_inner = OpFunction %mat4v4half None %20
%22 = OpLabel
%28 = OpAccessChain %_ptr_Uniform_v4half %u %uint_0
%29 = OpLoad %v4half %28
%32 = OpAccessChain %_ptr_Uniform_v4half %u %uint_1
%33 = OpLoad %v4half %32
%36 = OpAccessChain %_ptr_Uniform_v4half %u %uint_2
%37 = OpLoad %v4half %36
%40 = OpAccessChain %_ptr_Uniform_v4half %u %uint_3
%41 = OpLoad %v4half %40
%42 = OpCompositeConstruct %mat4v4half %29 %33 %37 %41
OpReturnValue %42
OpFunctionEnd
%f = OpFunction %void None %43
%45 = OpLabel
%47 = OpFunctionCall %mat4v4half %load_u_inner
%46 = OpFunctionCall %void %a %47
%49 = OpAccessChain %_ptr_Uniform_v4half %u %uint_1
%50 = OpLoad %v4half %49
%48 = OpFunctionCall %void %b %50
%52 = OpAccessChain %_ptr_Uniform_v4half %u %uint_1
%53 = OpLoad %v4half %52
%54 = OpVectorShuffle %v4half %53 %53 1 3 0 2
%51 = OpFunctionCall %void %b %54
%58 = OpAccessChain %_ptr_Uniform_half %u %uint_1 %56
%59 = OpLoad %half %58
%55 = OpFunctionCall %void %c %59
%61 = OpAccessChain %_ptr_Uniform_v4half %u %uint_1
%62 = OpLoad %v4half %61
%63 = OpVectorShuffle %v4half %62 %62 1 3 0 2
%64 = OpCompositeExtract %half %63 0
%60 = OpFunctionCall %void %c %64
OpReturn
OpFunctionEnd