blob: 07f5e01b176b89133bb0675576dac38a22099174 [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %_GLF_color
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 310
OpName %main "main"
OpName %data "data"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "injectionSwitch"
OpName %_ ""
OpName %_GLF_color "_GLF_color"
OpDecorate %data RelaxedPrecision
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %_GLF_color Location 0
OpDecorate %7 RelaxedPrecision
OpDecorate %8 RelaxedPrecision
OpDecorate %9 RelaxedPrecision
OpDecorate %10 RelaxedPrecision
OpDecorate %11 RelaxedPrecision
%void = OpTypeVoid
%13 = OpTypeFunction %void
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%int_1 = OpConstant %int 1
%uint = OpTypeInt 32 0
%uint_10 = OpConstant %uint 10
%_arr_int_uint_10 = OpTypeArray %int %uint_10
%bool = OpTypeBool
%int_3 = OpConstant %int 3
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%buf0 = OpTypeStruct %v2float
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%int_0 = OpConstant %int 0
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_float = OpTypePointer Uniform %float
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%float_1 = OpConstant %float 1
%31 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
%float_0 = OpConstant %float 0
%33 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%_ptr_Function__arr_int_uint_10 = OpTypePointer Function %_arr_int_uint_10
%int_2 = OpConstant %int 2
%main = OpFunction %void None %13
%36 = OpLabel
%data = OpVariable %_ptr_Function__arr_int_uint_10 Function
%37 = OpAccessChain %_ptr_Function_int %data %int_1
%7 = OpLoad %int %37
%38 = OpSLessThan %bool %int_1 %7
%10 = OpSelect %int %38 %int_2 %int_1
OpBranch %39
%39 = OpLabel
%40 = OpPhi %int %int_1 %36 %41 %42
%11 = OpPhi %int %10 %36 %8 %42
%43 = OpSLessThan %bool %11 %int_3
OpLoopMerge %44 %42 None
OpBranchConditional %43 %45 %44
%45 = OpLabel
%8 = OpIAdd %int %11 %int_1
%46 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %uint_0
%47 = OpLoad %float %46
%48 = OpConvertFToS %int %47
OpSelectionMerge %49 None
OpSwitch %48 %50 19 %51 38 %52 23 %52 78 %53
%50 = OpLabel
OpBranch %42
%51 = OpLabel
%9 = OpIAdd %int %40 %int_1
OpBranch %52
%52 = OpLabel
%54 = OpPhi %int %40 %45 %9 %51
OpBranch %42
%53 = OpLabel
OpStore %_GLF_color %31
OpBranch %50
%49 = OpLabel
OpBranch %42
%42 = OpLabel
%41 = OpPhi %int %40 %50 %54 %52 %int_0 %49
OpBranch %39
%44 = OpLabel
%55 = OpAccessChain %_ptr_Function_int %data %40
OpStore %55 %int_1
OpStore %_GLF_color %33
OpReturn
OpFunctionEnd