blob: 1fa7ee6767273bfd4a10d8a94dfb69c8c24424a1 [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 %a "a"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "_GLF_uniform_int_values"
OpName %_ ""
OpName %b "b"
OpName %_GLF_color "_GLF_color"
OpName %i "i"
OpName %i_0 "i"
OpName %i_1 "i"
OpName %indexable "indexable"
OpDecorate %_arr_int_uint_5 ArrayStride 16
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%14 = OpTypeFunction %void
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%uint = OpTypeInt 32 0
%uint_5 = OpConstant %uint 5
%_arr_int_uint_5 = OpTypeArray %int %uint_5
%buf0 = OpTypeStruct %_arr_int_uint_5
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%int_0 = OpConstant %int 0
%int_2 = OpConstant %int 2
%_ptr_Uniform_int = OpTypePointer Uniform %int
%int_3 = OpConstant %int 3
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%bool = OpTypeBool
%int_1 = OpConstant %int 1
%false = OpConstantFalse %bool
%int_4 = OpConstant %int 4
%uint_2 = OpConstant %uint 2
%_arr_int_uint_2 = OpTypeArray %int %uint_2
%_ptr_Function__arr_int_uint_2 = OpTypePointer Function %_arr_int_uint_2
%main = OpFunction %void None %14
%34 = OpLabel
%a = OpVariable %_ptr_Function_int Function
%b = OpVariable %_ptr_Function_int Function
%i = OpVariable %_ptr_Function_int Function
%i_0 = OpVariable %_ptr_Function_int Function
%i_1 = OpVariable %_ptr_Function_int Function
%indexable = OpVariable %_ptr_Function__arr_int_uint_2 Function
%35 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
%36 = OpLoad %int %35
OpStore %a %36
%37 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_3
%38 = OpLoad %int %37
OpStore %b %38
%39 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
%40 = OpLoad %int %39
%41 = OpConvertSToF %float %40
%42 = OpCompositeConstruct %v4float %41 %41 %41 %41
OpStore %_GLF_color %42
%43 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
%44 = OpLoad %int %43
OpStore %i %44
OpBranch %45
%45 = OpLabel
OpLoopMerge %46 %47 None
OpBranch %48
%48 = OpLabel
%49 = OpLoad %int %i
%50 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%51 = OpLoad %int %50
%52 = OpSLessThan %bool %49 %51
OpBranchConditional %52 %53 %46
%53 = OpLabel
%54 = OpLoad %int %i
%55 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_3
%56 = OpLoad %int %55
%57 = OpSGreaterThan %bool %54 %56
OpSelectionMerge %58 None
OpBranchConditional %57 %59 %58
%59 = OpLabel
%60 = OpLoad %int %a
%61 = OpIAdd %int %60 %int_1
OpStore %a %61
OpSelectionMerge %62 None
OpBranchConditional %false %63 %62
%63 = OpLabel
%64 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
%65 = OpLoad %int %64
OpStore %i_0 %65
OpBranch %66
%66 = OpLabel
OpLoopMerge %67 %68 None
OpBranch %69
%69 = OpLabel
%70 = OpLoad %int %i_0
%71 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%72 = OpLoad %int %71
%73 = OpSLessThan %bool %70 %72
OpBranchConditional %73 %74 %67
%74 = OpLabel
OpReturn
%68 = OpLabel
OpBranch %66
%67 = OpLabel
OpBranch %62
%62 = OpLabel
OpBranch %58
%58 = OpLabel
OpBranch %47
%47 = OpLabel
%75 = OpLoad %int %i
%76 = OpIAdd %int %75 %int_1
OpStore %i %76
OpBranch %45
%46 = OpLabel
%77 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
%78 = OpLoad %int %77
OpStore %i_1 %78
OpBranch %79
%79 = OpLabel
OpLoopMerge %80 %81 None
OpBranch %82
%82 = OpLabel
%83 = OpLoad %int %i_1
%84 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%85 = OpLoad %int %84
%86 = OpSLessThan %bool %83 %85
OpBranchConditional %86 %87 %80
%87 = OpLabel
%88 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_3
%89 = OpLoad %int %88
%90 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_4
%91 = OpLoad %int %90
%92 = OpCompositeConstruct %_arr_int_uint_2 %89 %91
%93 = OpLoad %int %b
OpStore %indexable %92
%94 = OpAccessChain %_ptr_Function_int %indexable %93
%95 = OpLoad %int %94
%96 = OpLoad %int %a
%97 = OpIAdd %int %96 %95
OpStore %a %97
OpBranch %81
%81 = OpLabel
%98 = OpLoad %int %i_1
%99 = OpIAdd %int %98 %int_1
OpStore %i_1 %99
OpBranch %79
%80 = OpLabel
%100 = OpLoad %int %a
%101 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%102 = OpLoad %int %101
%103 = OpIEqual %bool %100 %102
OpSelectionMerge %104 None
OpBranchConditional %103 %105 %104
%105 = OpLabel
%106 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_3
%107 = OpLoad %int %106
%108 = OpConvertSToF %float %107
%109 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
%110 = OpLoad %int %109
%111 = OpConvertSToF %float %110
%112 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
%113 = OpLoad %int %112
%114 = OpConvertSToF %float %113
%115 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_3
%116 = OpLoad %int %115
%117 = OpConvertSToF %float %116
%118 = OpCompositeConstruct %v4float %108 %111 %114 %117
OpStore %_GLF_color %118
OpBranch %104
%104 = OpLabel
OpReturn
OpFunctionEnd