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 %_GLF_color "_GLF_color" 9 OpName %buf0 "buf0" 10 OpMemberName %buf0 0 "_GLF_uniform_int_values" 11 OpName %_ "" 12 OpDecorate %_GLF_color Location 0 13 OpDecorate %_arr_int_uint_3 ArrayStride 16 14 OpMemberDecorate %buf0 0 Offset 0 15 OpDecorate %buf0 Block 16 OpDecorate %_ DescriptorSet 0 17 OpDecorate %_ Binding 0 18 %void = OpTypeVoid 19 %8 = OpTypeFunction %void 20 %float = OpTypeFloat 32 21 %v4float = OpTypeVector %float 4 22%_ptr_Output_v4float = OpTypePointer Output %v4float 23 %_GLF_color = OpVariable %_ptr_Output_v4float Output 24 %int = OpTypeInt 32 1 25 %uint = OpTypeInt 32 0 26 %uint_3 = OpConstant %uint 3 27%_arr_int_uint_3 = OpTypeArray %int %uint_3 28 %buf0 = OpTypeStruct %_arr_int_uint_3 29%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0 30 %_ = OpVariable %_ptr_Uniform_buf0 Uniform 31 %int_0 = OpConstant %int 0 32 %int_1 = OpConstant %int 1 33%_ptr_Uniform_int = OpTypePointer Uniform %int 34 %int_10 = OpConstant %int 10 35 %bool = OpTypeBool 36 %int_2 = OpConstant %int 2 37 %main = OpFunction %void None %8 38 %22 = OpLabel 39 %23 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1 40 %24 = OpLoad %int %23 41 %25 = OpConvertSToF %float %24 42 %26 = OpCompositeConstruct %v4float %25 %25 %25 %25 43 OpStore %_GLF_color %26 44 %27 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0 45 %28 = OpLoad %int %27 46 %29 = OpShiftLeftLogical %int %28 %28 47 %30 = OpShiftRightArithmetic %int %29 %int_1 48 OpBranch %31 49 %31 = OpLabel 50 %32 = OpPhi %int %24 %22 %33 %34 51 %35 = OpSLessThan %bool %30 %int_10 52 OpLoopMerge %36 %34 None 53 OpBranchConditional %35 %37 %36 54 %37 = OpLabel 55 %33 = OpIAdd %int %32 %int_1 56 %38 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2 57 %39 = OpLoad %int %38 58 %40 = OpIEqual %bool %33 %39 59 OpSelectionMerge %41 None 60 OpBranchConditional %40 %42 %41 61 %42 = OpLabel 62 %43 = OpConvertSToF %float %28 63 %44 = OpCompositeConstruct %v4float %43 %25 %25 %43 64 OpStore %_GLF_color %44 65 OpBranch %36 66 %41 = OpLabel 67 OpBranch %34 68 %34 = OpLabel 69 OpBranch %31 70 %36 = OpLabel 71 OpReturn 72 OpFunctionEnd 73