1 OpCapability Shader 2 %1 = OpExtInstImport "GLSL.std.450" 3 OpMemoryModel Logical GLSL450 4 OpEntryPoint Fragment %main "main" %_GLF_color 5 OpExecutionMode %main OriginUpperLeft 6 OpSource ESSL 310 7 OpName %main "main" 8 OpName %numbers "numbers" 9 OpName %buf1 "buf1" 10 OpMemberName %buf1 0 "_GLF_uniform_int_values" 11 OpName %_ "" 12 OpName %a "a" 13 OpName %buf0 "buf0" 14 OpMemberName %buf0 0 "_GLF_uniform_float_values" 15 OpName %__0 "" 16 OpName %b "b" 17 OpName %_GLF_color "_GLF_color" 18 OpDecorate %_arr_int_uint_3_0 ArrayStride 16 19 OpMemberDecorate %buf1 0 Offset 0 20 OpDecorate %buf1 Block 21 OpDecorate %_ DescriptorSet 0 22 OpDecorate %_ Binding 1 23 OpDecorate %_arr_float_uint_3 ArrayStride 16 24 OpMemberDecorate %buf0 0 Offset 0 25 OpDecorate %buf0 Block 26 OpDecorate %__0 DescriptorSet 0 27 OpDecorate %__0 Binding 0 28 OpDecorate %_GLF_color Location 0 29 %void = OpTypeVoid 30 %14 = OpTypeFunction %void 31 %int = OpTypeInt 32 1 32 %uint = OpTypeInt 32 0 33 %uint_3 = OpConstant %uint 3 34%_arr_int_uint_3 = OpTypeArray %int %uint_3 35%_ptr_Function__arr_int_uint_3 = OpTypePointer Function %_arr_int_uint_3 36%_arr_int_uint_3_0 = OpTypeArray %int %uint_3 37 %buf1 = OpTypeStruct %_arr_int_uint_3_0 38%_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1 39 %_ = OpVariable %_ptr_Uniform_buf1 Uniform 40 %int_0 = OpConstant %int 0 41%_ptr_Uniform_int = OpTypePointer Uniform %int 42%_ptr_Function_int = OpTypePointer Function %int 43 %int_1 = OpConstant %int 1 44 %int_2 = OpConstant %int 2 45 %float = OpTypeFloat 32 46 %v2float = OpTypeVector %float 2 47%_ptr_Function_v2float = OpTypePointer Function %v2float 48 %float_0 = OpConstant %float 0 49%_arr_float_uint_3 = OpTypeArray %float %uint_3 50 %buf0 = OpTypeStruct %_arr_float_uint_3 51%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0 52 %__0 = OpVariable %_ptr_Uniform_buf0 Uniform 53%_ptr_Uniform_float = OpTypePointer Uniform %float 54 %bool = OpTypeBool 55%_ptr_Function_float = OpTypePointer Function %float 56 %v4float = OpTypeVector %float 4 57%_ptr_Output_v4float = OpTypePointer Output %v4float 58 %_GLF_color = OpVariable %_ptr_Output_v4float Output 59 %main = OpFunction %void None %14 60 %36 = OpLabel 61 %numbers = OpVariable %_ptr_Function__arr_int_uint_3 Function 62 %a = OpVariable %_ptr_Function_v2float Function 63 %b = OpVariable %_ptr_Function_float Function 64 %37 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0 65 %38 = OpLoad %int %37 66 %39 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0 67 %40 = OpLoad %int %39 68 %41 = OpAccessChain %_ptr_Function_int %numbers %38 69 OpStore %41 %40 70 %42 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1 71 %43 = OpLoad %int %42 72 %44 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1 73 %45 = OpLoad %int %44 74 %46 = OpAccessChain %_ptr_Function_int %numbers %43 75 OpStore %46 %45 76 %47 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 77 %48 = OpLoad %int %47 78 %49 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 79 %50 = OpLoad %int %49 80 %51 = OpAccessChain %_ptr_Function_int %numbers %48 81 OpStore %51 %50 82 %52 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0 83 %53 = OpLoad %int %52 84 %54 = OpConvertSToF %float %53 85 %55 = OpAccessChain %_ptr_Uniform_float %__0 %int_0 %int_2 86 %56 = OpLoad %float %55 87 %57 = OpFOrdLessThan %bool %float_0 %56 88 %58 = OpSelect %int %57 %int_1 %int_2 89 %59 = OpAccessChain %_ptr_Function_int %numbers %58 90 %60 = OpLoad %int %59 91 %61 = OpConvertSToF %float %60 92 %62 = OpCompositeConstruct %v2float %54 %61 93 OpStore %a %62 94 %63 = OpLoad %v2float %a 95 %64 = OpAccessChain %_ptr_Uniform_float %__0 %int_0 %int_1 96 %65 = OpLoad %float %64 97 %66 = OpAccessChain %_ptr_Uniform_float %__0 %int_0 %int_1 98 %67 = OpLoad %float %66 99 %68 = OpCompositeConstruct %v2float %65 %67 100 %69 = OpDot %float %63 %68 101 OpStore %b %69 102 %70 = OpLoad %float %b 103 %71 = OpAccessChain %_ptr_Uniform_float %__0 %int_0 %int_0 104 %72 = OpLoad %float %71 105 %73 = OpFOrdEqual %bool %70 %72 106 OpSelectionMerge %74 None 107 OpBranchConditional %73 %75 %76 108 %75 = OpLabel 109 %77 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1 110 %78 = OpLoad %int %77 111 %79 = OpConvertSToF %float %78 112 %80 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0 113 %81 = OpLoad %int %80 114 %82 = OpConvertSToF %float %81 115 %83 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0 116 %84 = OpLoad %int %83 117 %85 = OpConvertSToF %float %84 118 %86 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1 119 %87 = OpLoad %int %86 120 %88 = OpConvertSToF %float %87 121 %89 = OpCompositeConstruct %v4float %79 %82 %85 %88 122 OpStore %_GLF_color %89 123 OpBranch %74 124 %76 = OpLabel 125 %90 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0 126 %91 = OpLoad %int %90 127 %92 = OpConvertSToF %float %91 128 %93 = OpCompositeConstruct %v4float %92 %92 %92 %92 129 OpStore %_GLF_color %93 130 OpBranch %74 131 %74 = OpLabel 132 OpReturn 133 OpFunctionEnd 134