blob: 547475f6e617415bb13ee696606dfbb89652b6ba [file]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 46
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
%42 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpMemberName %m_block_std140 0 "inner_col0"
OpMemberName %m_block_std140 1 "inner_col1"
OpMemberName %m_block_std140 2 "inner_col2"
OpName %m_block_std140 "m_block_std140"
OpName %counter "counter"
OpName %i "i"
OpName %f "f"
OpName %l_m "l_m"
OpName %l_m_i "l_m_i"
OpMemberDecorate %m_block_std140 0 Offset 0
OpMemberDecorate %m_block_std140 1 Offset 8
OpMemberDecorate %m_block_std140 2 Offset 16
OpDecorate %m_block_std140 Block
OpDecorate %1 DescriptorSet 0
OpDecorate %1 Binding 0
OpDecorate %1 NonWritable
%half = OpTypeFloat 16
%v4half = OpTypeVector %half 4
%m_block_std140 = OpTypeStruct %v4half %v4half %v4half
%_ptr_Uniform_m_block_std140 = OpTypePointer Uniform %m_block_std140
%1 = OpVariable %_ptr_Uniform_m_block_std140 Uniform
%int = OpTypeInt 32 1
%_ptr_Private_int = OpTypePointer Private %int
%int_0 = OpConstant %int 0
%counter = OpVariable %_ptr_Private_int Private %int_0
%11 = OpTypeFunction %int
%uint = OpTypeInt 32 0
%int_1 = OpConstant %int 1
%void = OpTypeVoid
%23 = OpTypeFunction %void
%_ptr_Uniform_v4half = OpTypePointer Uniform %v4half
%uint_0 = OpConstant %uint 0
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%mat3v4half = OpTypeMatrix %v4half 3
%_ptr_Function_mat3v4half = OpTypePointer Function %mat3v4half
%_ptr_Function_v4half = OpTypePointer Function %v4half
%i = OpFunction %int None %11
%12 = OpLabel
%13 = OpLoad %int %counter None
%15 = OpBitcast %uint %13
%16 = OpBitcast %uint %int_1
%18 = OpIAdd %uint %15 %16
%19 = OpBitcast %int %18
OpStore %counter %19 None
%20 = OpLoad %int %counter None
OpReturnValue %20
OpFunctionEnd
%f = OpFunction %void None %23
%24 = OpLabel
%37 = OpVariable %_ptr_Function_mat3v4half Function
%25 = OpAccessChain %_ptr_Uniform_v4half %1 %uint_0
%28 = OpLoad %v4half %25 None
%29 = OpAccessChain %_ptr_Uniform_v4half %1 %uint_1
%31 = OpLoad %v4half %29 None
%32 = OpAccessChain %_ptr_Uniform_v4half %1 %uint_2
%34 = OpLoad %v4half %32 None
%l_m = OpCompositeConstruct %mat3v4half %28 %31 %34
OpStore %37 %l_m
%39 = OpFunctionCall %int %i
%40 = OpBitcast %uint %39
%41 = OpExtInst %uint %42 UMin %40 %uint_2
%43 = OpAccessChain %_ptr_Function_v4half %37 %41
%l_m_i = OpLoad %v4half %43 None
OpReturn
OpFunctionEnd