blob: 56ca4987995e92c3423749710ab5e5af87c9cbf4 [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %_GLF_color
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 320
OpName %main "main"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "_GLF_uniform_int_values"
OpName %_ ""
OpName %_GLF_color "_GLF_color"
OpDecorate %_arr_int_uint_2 ArrayStride 16
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%8 = OpTypeFunction %void
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%int_1 = OpConstant %int 1
%int_100 = OpConstant %int 100
%uint = OpTypeInt 32 0
%uint_2 = OpConstant %uint 2
%_arr_int_uint_2 = OpTypeArray %int %uint_2
%buf0 = OpTypeStruct %_arr_int_uint_2
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%_ptr_Uniform_int = OpTypePointer Uniform %int
%bool = OpTypeBool
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%main = OpFunction %void None %8
%21 = OpLabel
OpBranch %22
%22 = OpLabel
%23 = OpPhi %int %int_0 %21 %24 %25
%26 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%27 = OpLoad %int %26
%28 = OpISub %int %int_100 %27
%29 = OpSLessThan %bool %23 %28
OpLoopMerge %30 %25 None
OpBranchConditional %29 %25 %30
%25 = OpLabel
%24 = OpIAdd %int %23 %int_1
OpBranch %22
%30 = OpLabel
%31 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%32 = OpLoad %int %31
%33 = OpIEqual %bool %32 %int_0
OpSelectionMerge %34 None
OpBranchConditional %33 %35 %34
%35 = OpLabel
OpBranch %36
%36 = OpLabel
%37 = OpPhi %int %int_1 %35 %38 %39
%40 = OpPhi %int %23 %35 %41 %39
%42 = OpSLessThan %bool %40 %int_100
OpLoopMerge %43 %39 None
OpBranchConditional %42 %39 %43
%39 = OpLabel
%41 = OpIAdd %int %40 %int_1
%44 = OpISub %int %int_1 %37
%38 = OpIMul %int %37 %44
OpBranch %36
%43 = OpLabel
OpBranch %34
%34 = OpLabel
%45 = OpPhi %int %int_1 %30 %37 %43
%46 = OpIEqual %bool %45 %32
OpSelectionMerge %47 None
OpBranchConditional %46 %48 %49
%48 = OpLabel
%50 = OpConvertSToF %float %27
%51 = OpConvertSToF %float %32
%52 = OpCompositeConstruct %v4float %50 %51 %51 %50
OpStore %_GLF_color %52
OpBranch %47
%49 = OpLabel
%53 = OpConvertSToF %float %32
%54 = OpCompositeConstruct %v4float %53 %53 %53 %53
OpStore %_GLF_color %54
OpBranch %47
%47 = OpLabel
OpReturn
OpFunctionEnd