blob: c733bfd43f9b138db9a8a82dc1c68ce9ea32aa24 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 55
; 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 %p "p"
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
%v3half = OpTypeVector %half 3
%u_block_std140 = OpTypeStruct %v3half %v3half %v3half %v3half
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%u = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%mat4v3half = OpTypeMatrix %v3half 4
%_ptr_Private_mat4v3half = OpTypePointer Private %mat4v3half
%9 = OpConstantNull %mat4v3half
%p = OpVariable %_ptr_Private_mat4v3half Private %9
%10 = OpTypeFunction %mat4v3half
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_v3half = OpTypePointer Uniform %v3half
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%uint_3 = OpConstant %uint 3
%void = OpTypeVoid
%33 = OpTypeFunction %void
%int = OpTypeInt 32 1
%int_1 = OpConstant %int 1
%_ptr_Private_v3half = OpTypePointer Private %v3half
%48 = OpConstantNull %int
%_ptr_Private_half = OpTypePointer Private %half
%51 = OpConstantNull %uint
%_ptr_Uniform_half = OpTypePointer Uniform %half
%load_u_inner = OpFunction %mat4v3half None %10
%12 = OpLabel
%18 = OpAccessChain %_ptr_Uniform_v3half %u %uint_0
%19 = OpLoad %v3half %18
%22 = OpAccessChain %_ptr_Uniform_v3half %u %uint_1
%23 = OpLoad %v3half %22
%26 = OpAccessChain %_ptr_Uniform_v3half %u %uint_2
%27 = OpLoad %v3half %26
%30 = OpAccessChain %_ptr_Uniform_v3half %u %uint_3
%31 = OpLoad %v3half %30
%32 = OpCompositeConstruct %mat4v3half %19 %23 %27 %31
OpReturnValue %32
OpFunctionEnd
%f = OpFunction %void None %33
%36 = OpLabel
%37 = OpFunctionCall %mat4v3half %load_u_inner
OpStore %p %37
%41 = OpAccessChain %_ptr_Private_v3half %p %int_1
%42 = OpAccessChain %_ptr_Uniform_v3half %u %uint_0
%43 = OpLoad %v3half %42
OpStore %41 %43
%44 = OpAccessChain %_ptr_Private_v3half %p %int_1
%45 = OpAccessChain %_ptr_Uniform_v3half %u %uint_0
%46 = OpLoad %v3half %45
%47 = OpVectorShuffle %v3half %46 %46 2 0 1
OpStore %44 %47
%50 = OpAccessChain %_ptr_Private_half %p %48 %int_1
%53 = OpAccessChain %_ptr_Uniform_half %u %uint_1 %51
%54 = OpLoad %half %53
OpStore %50 %54
OpReturn
OpFunctionEnd