blob: 0f299f0887807b714de3f9a5eea78a97bff37354 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 51
; 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"
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 4
OpMemberDecorate %u_block_std140 2 Offset 8
OpDecorate %u NonWritable
OpDecorate %u DescriptorSet 0
OpDecorate %u Binding 0
%half = OpTypeFloat 16
%v2half = OpTypeVector %half 2
%u_block_std140 = OpTypeStruct %v2half %v2half %v2half
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%u = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%mat3v2half = OpTypeMatrix %v2half 3
%_ptr_Private_mat3v2half = OpTypePointer Private %mat3v2half
%9 = OpConstantNull %mat3v2half
%p = OpVariable %_ptr_Private_mat3v2half Private %9
%10 = OpTypeFunction %mat3v2half
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_v2half = OpTypePointer Uniform %v2half
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%void = OpTypeVoid
%29 = OpTypeFunction %void
%int = OpTypeInt 32 1
%int_1 = OpConstant %int 1
%_ptr_Private_v2half = OpTypePointer Private %v2half
%44 = OpConstantNull %int
%_ptr_Private_half = OpTypePointer Private %half
%47 = OpConstantNull %uint
%_ptr_Uniform_half = OpTypePointer Uniform %half
%load_u_inner = OpFunction %mat3v2half None %10
%12 = OpLabel
%18 = OpAccessChain %_ptr_Uniform_v2half %u %uint_0
%19 = OpLoad %v2half %18
%22 = OpAccessChain %_ptr_Uniform_v2half %u %uint_1
%23 = OpLoad %v2half %22
%26 = OpAccessChain %_ptr_Uniform_v2half %u %uint_2
%27 = OpLoad %v2half %26
%28 = OpCompositeConstruct %mat3v2half %19 %23 %27
OpReturnValue %28
OpFunctionEnd
%f = OpFunction %void None %29
%32 = OpLabel
%33 = OpFunctionCall %mat3v2half %load_u_inner
OpStore %p %33
%37 = OpAccessChain %_ptr_Private_v2half %p %int_1
%38 = OpAccessChain %_ptr_Uniform_v2half %u %uint_0
%39 = OpLoad %v2half %38
OpStore %37 %39
%40 = OpAccessChain %_ptr_Private_v2half %p %int_1
%41 = OpAccessChain %_ptr_Uniform_v2half %u %uint_0
%42 = OpLoad %v2half %41
%43 = OpVectorShuffle %v2half %42 %42 1 0
OpStore %40 %43
%46 = OpAccessChain %_ptr_Private_half %p %44 %int_1
%49 = OpAccessChain %_ptr_Uniform_half %u %uint_1 %47
%50 = OpLoad %half %49
OpStore %46 %50
OpReturn
OpFunctionEnd