blob: 34d2034f1e0724004232bbaa9c48f9da512a6381 [file]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 43
; Schema: 0
OpCapability Shader
%39 = 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"
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
OpDecorate %m_block_std140 Block
OpDecorate %1 DescriptorSet 0
OpDecorate %1 Binding 0
OpDecorate %1 NonWritable
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%m_block_std140 = OpTypeStruct %v2float %v2float
%_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_v2float = OpTypePointer Uniform %v2float
%uint_0 = OpConstant %uint 0
%uint_1 = OpConstant %uint 1
%mat2v2float = OpTypeMatrix %v2float 2
%_ptr_Function_mat2v2float = OpTypePointer Function %mat2v2float
%_ptr_Function_v2float = OpTypePointer Function %v2float
%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
%34 = OpVariable %_ptr_Function_mat2v2float Function
%25 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_0
%28 = OpLoad %v2float %25 None
%29 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_1
%31 = OpLoad %v2float %29 None
%l_m = OpCompositeConstruct %mat2v2float %28 %31
OpStore %34 %l_m
%36 = OpFunctionCall %int %i
%37 = OpBitcast %uint %36
%38 = OpExtInst %uint %39 UMin %37 %uint_1
%40 = OpAccessChain %_ptr_Function_v2float %34 %38
%l_m_i = OpLoad %v2float %40 None
OpReturn
OpFunctionEnd