blob: a12759dc194f900268a030916d0b413849c651fb [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 320
OpName %main "main"
OpName %gl_FragCoord "gl_FragCoord"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "resolution"
OpName %_ ""
OpName %_GLF_color "_GLF_color"
OpName %indexable "indexable"
OpDecorate %gl_FragCoord BuiltIn FragCoord
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%9 = OpTypeFunction %void
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%v4float = OpTypeVector %float 4
%_ptr_Input_v4float = OpTypePointer Input %v4float
%gl_FragCoord = OpVariable %_ptr_Input_v4float Input
%buf0 = OpTypeStruct %v2float
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%_ptr_Uniform_v2float = OpTypePointer Uniform %v2float
%uint = OpTypeInt 32 0
%float_10 = OpConstant %float 10
%int_10 = OpConstant %int 10
%int_100 = OpConstant %int 100
%bool = OpTypeBool
%int_4 = OpConstant %int 4
%int_1000 = OpConstant %int 1000
%int_1 = OpConstant %int 1
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%uint_16 = OpConstant %uint 16
%_arr_v4float_uint_16 = OpTypeArray %v4float %uint_16
%float_0 = OpConstant %float 0
%float_1 = OpConstant %float 1
%31 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_1
%float_0_5 = OpConstant %float 0.5
%33 = OpConstantComposite %v4float %float_0_5 %float_0 %float_0 %float_1
%34 = OpConstantComposite %v4float %float_0 %float_0_5 %float_0 %float_1
%35 = OpConstantComposite %v4float %float_0_5 %float_0_5 %float_0 %float_1
%36 = OpConstantComposite %v4float %float_0 %float_0 %float_0_5 %float_1
%37 = OpConstantComposite %v4float %float_0_5 %float_0 %float_0_5 %float_1
%38 = OpConstantComposite %v4float %float_0 %float_0_5 %float_0_5 %float_1
%39 = OpConstantComposite %v4float %float_0_5 %float_0_5 %float_0_5 %float_1
%40 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%41 = OpConstantComposite %v4float %float_0 %float_1 %float_0 %float_1
%42 = OpConstantComposite %v4float %float_1 %float_1 %float_0 %float_1
%43 = OpConstantComposite %v4float %float_0 %float_0 %float_1 %float_1
%44 = OpConstantComposite %v4float %float_1 %float_0 %float_1 %float_1
%45 = OpConstantComposite %v4float %float_0 %float_1 %float_1 %float_1
%46 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
%47 = OpConstantComposite %_arr_v4float_uint_16 %31 %33 %34 %35 %36 %37 %38 %39 %31 %40 %41 %42 %43 %44 %45 %46
%int_16 = OpConstant %int 16
%_ptr_Function__arr_v4float_uint_16 = OpTypePointer Function %_arr_v4float_uint_16
%_ptr_Function_v4float = OpTypePointer Function %v4float
%main = OpFunction %void None %9
%51 = OpLabel
%indexable = OpVariable %_ptr_Function__arr_v4float_uint_16 Function
%52 = OpLoad %v4float %gl_FragCoord
%53 = OpVectorShuffle %v2float %52 %52 0 1
%54 = OpAccessChain %_ptr_Uniform_v2float %_ %int_0
%55 = OpLoad %v2float %54
%56 = OpFDiv %v2float %53 %55
%57 = OpCompositeExtract %float %56 0
%58 = OpFMul %float %57 %float_10
%59 = OpConvertFToS %int %58
%60 = OpCompositeExtract %float %56 1
%61 = OpFMul %float %60 %float_10
%62 = OpConvertFToS %int %61
%63 = OpIMul %int %62 %int_10
%64 = OpIAdd %int %59 %63
OpBranch %65
%65 = OpLabel
%66 = OpPhi %int %int_100 %51 %67 %68
%69 = OpPhi %int %int_0 %51 %70 %68
%71 = OpSLessThan %bool %69 %64
OpLoopMerge %72 %68 None
OpBranchConditional %71 %68 %72
%68 = OpLabel
%73 = OpIMul %int %int_4 %66
%74 = OpISub %int %int_1000 %66
%75 = OpIMul %int %73 %74
%67 = OpSDiv %int %75 %int_1000
%70 = OpIAdd %int %69 %int_1
OpBranch %65
%72 = OpLabel
%76 = OpSMod %int %66 %int_16
OpStore %indexable %47
%77 = OpAccessChain %_ptr_Function_v4float %indexable %76
%78 = OpLoad %v4float %77
OpStore %_GLF_color %78
OpReturn
OpFunctionEnd