blob: a350fc2e096589400e00badaf692aadc8b379198 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 27
; 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"
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 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
%mat2v2half = OpTypeMatrix %v2half 2
%6 = OpTypeFunction %mat2v2half
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_v2half = OpTypePointer Uniform %v2half
%uint_1 = OpConstant %uint 1
%void = OpTypeVoid
%22 = OpTypeFunction %void
%load_u_inner = OpFunction %mat2v2half None %6
%9 = OpLabel
%15 = OpAccessChain %_ptr_Uniform_v2half %u %uint_0
%16 = OpLoad %v2half %15
%19 = OpAccessChain %_ptr_Uniform_v2half %u %uint_1
%20 = OpLoad %v2half %19
%21 = OpCompositeConstruct %mat2v2half %16 %20
OpReturnValue %21
OpFunctionEnd
%main = OpFunction %void None %22
%25 = OpLabel
%26 = OpFunctionCall %mat2v2half %load_u_inner
OpReturn
OpFunctionEnd