blob: f854eb0011557e97d59fef20c54bb511cd656e07 [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %gl_FragCoord %_GLF_color
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 310
OpName %main "main"
OpName %nb_mod_f1_ "nb_mod(f1;"
OpName %limit "limit"
OpName %_injected_loop_counter "_injected_loop_counter"
OpName %_injected_loop_counter_0 "_injected_loop_counter"
OpName %gl_FragCoord "gl_FragCoord"
OpName %param "param"
OpName %_GLF_color "_GLF_color"
OpDecorate %_injected_loop_counter RelaxedPrecision
OpDecorate %_injected_loop_counter_0 RelaxedPrecision
OpDecorate %gl_FragCoord BuiltIn FragCoord
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%11 = OpTypeFunction %void
%float = OpTypeFloat 32
%_ptr_Function_float = OpTypePointer Function %float
%14 = OpTypeFunction %float %_ptr_Function_float
%float_1 = OpConstant %float 1
%bool = OpTypeBool
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%int_0 = OpConstant %int 0
%int_2 = OpConstant %int 2
%int_1 = OpConstant %int 1
%v4float = OpTypeVector %float 4
%_ptr_Input_v4float = OpTypePointer Input %v4float
%gl_FragCoord = OpVariable %_ptr_Input_v4float Input
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Input_float = OpTypePointer Input %float
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%float_0 = OpConstant %float 0
%29 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%30 = OpUndef %int
%true = OpConstantTrue %bool
%main = OpFunction %void None %11
%32 = OpLabel
%param = OpVariable %_ptr_Function_float Function
%33 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_0
%34 = OpLoad %float %33
OpStore %param %34
%35 = OpFunctionCall %float %nb_mod_f1_ %param
OpStore %_GLF_color %29
OpReturn
OpFunctionEnd
%nb_mod_f1_ = OpFunction %float None %14
%limit = OpFunctionParameter %_ptr_Function_float
%36 = OpLabel
%_injected_loop_counter = OpVariable %_ptr_Function_int Function
%_injected_loop_counter_0 = OpVariable %_ptr_Function_int Function
%37 = OpLoad %float %limit
%38 = OpFOrdGreaterThanEqual %bool %float_1 %37
OpSelectionMerge %39 None
OpBranchConditional %38 %40 %39
%40 = OpLabel
OpReturnValue %float_1
%39 = OpLabel
OpStore %_injected_loop_counter %int_0
OpBranch %41
%41 = OpLabel
%42 = OpSLessThan %bool %int_0 %int_2
OpLoopMerge %43 %44 None
OpBranch %45
%45 = OpLabel
OpStore %_injected_loop_counter_0 %int_0
OpBranch %46
%46 = OpLabel
%47 = OpSLessThan %bool %int_0 %int_1
OpLoopMerge %44 %48 None
OpBranch %49
%49 = OpLabel
OpReturnValue %float_1
%48 = OpLabel
OpBranch %46
%44 = OpLabel
OpBranch %41
%43 = OpLabel
OpUnreachable
OpFunctionEnd