blob: 22a1399c135cf0a6ed638791c799092ccba39f09 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 31
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main 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 %load_u_inner "load_u_inner"
OpName %main "main"
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
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
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%u = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%mat3v4half = OpTypeMatrix %v4half 3
%6 = OpTypeFunction %mat3v4half
%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
%void = OpTypeVoid
%26 = OpTypeFunction %void
%load_u_inner = OpFunction %mat3v4half None %6
%9 = OpLabel
%15 = OpAccessChain %_ptr_Uniform_v4half %u %uint_0
%16 = OpLoad %v4half %15
%19 = OpAccessChain %_ptr_Uniform_v4half %u %uint_1
%20 = OpLoad %v4half %19
%23 = OpAccessChain %_ptr_Uniform_v4half %u %uint_2
%24 = OpLoad %v4half %23
%25 = OpCompositeConstruct %mat3v4half %16 %20 %24
OpReturnValue %25
OpFunctionEnd
%main = OpFunction %void None %26
%29 = OpLabel
%30 = OpFunctionCall %mat3v4half %load_u_inner
OpReturn
OpFunctionEnd