1 OpCapability Shader 2 %1 = OpExtInstImport "GLSL.std.450" 3 OpMemoryModel Logical GLSL450 4 OpEntryPoint Fragment %main "main" %sk_FragColor 5 OpExecutionMode %main OriginUpperLeft 6 OpName %testPushConstants "testPushConstants" 7 OpMemberName %testPushConstants 0 "pushConstantArray" 8 OpName %testUniforms "testUniforms" 9 OpMemberName %testUniforms 0 "uniformArray" 10 OpName %testStorageBuffer "testStorageBuffer" 11 OpMemberName %testStorageBuffer 0 "ssboArray" 12 OpName %sk_FragColor "sk_FragColor" 13 OpName %main "main" 14 OpName %localArray "localArray" 15 OpDecorate %_arr_float_int_2 ArrayStride 4 16 OpMemberDecorate %testPushConstants 0 Offset 0 17 OpDecorate %testPushConstants Block 18 OpDecorate %_arr_float_int_2_0 ArrayStride 16 19 OpMemberDecorate %testUniforms 0 Offset 0 20 OpDecorate %testUniforms Block 21 OpDecorate %10 Binding 0 22 OpDecorate %10 DescriptorSet 0 23 OpMemberDecorate %testStorageBuffer 0 Offset 0 24 OpDecorate %testStorageBuffer BufferBlock 25 OpDecorate %14 Binding 1 26 OpDecorate %14 DescriptorSet 0 27 OpDecorate %sk_FragColor RelaxedPrecision 28 OpDecorate %sk_FragColor Location 0 29 OpDecorate %sk_FragColor Index 0 30 OpDecorate %77 RelaxedPrecision 31 %float = OpTypeFloat 32 32 %int = OpTypeInt 32 1 33 %int_2 = OpConstant %int 2 34%_arr_float_int_2 = OpTypeArray %float %int_2 35%testPushConstants = OpTypeStruct %_arr_float_int_2 36%_ptr_PushConstant_testPushConstants = OpTypePointer PushConstant %testPushConstants 37 %3 = OpVariable %_ptr_PushConstant_testPushConstants PushConstant 38%_arr_float_int_2_0 = OpTypeArray %float %int_2 39%testUniforms = OpTypeStruct %_arr_float_int_2_0 40%_ptr_Uniform_testUniforms = OpTypePointer Uniform %testUniforms 41 %10 = OpVariable %_ptr_Uniform_testUniforms Uniform 42%testStorageBuffer = OpTypeStruct %_arr_float_int_2 43%_ptr_Uniform_testStorageBuffer = OpTypePointer Uniform %testStorageBuffer 44 %14 = OpVariable %_ptr_Uniform_testStorageBuffer Uniform 45 %v4float = OpTypeVector %float 4 46%_ptr_Output_v4float = OpTypePointer Output %v4float 47%sk_FragColor = OpVariable %_ptr_Output_v4float Output 48 %void = OpTypeVoid 49 %21 = OpTypeFunction %void 50%_ptr_Function__arr_float_int_2_0 = OpTypePointer Function %_arr_float_int_2_0 51 %float_1 = OpConstant %float 1 52 %float_2 = OpConstant %float 2 53 %bool = OpTypeBool 54 %false = OpConstantFalse %bool 55 %int_0 = OpConstant %int 0 56%_ptr_Uniform__arr_float_int_2_0 = OpTypePointer Uniform %_arr_float_int_2_0 57%_ptr_PushConstant__arr_float_int_2 = OpTypePointer PushConstant %_arr_float_int_2 58%_ptr_Uniform__arr_float_int_2 = OpTypePointer Uniform %_arr_float_int_2 59%_ptr_Function_v4float = OpTypePointer Function %v4float 60 %74 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1 61 %float_0 = OpConstant %float 0 62 %76 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0 63 %main = OpFunction %void None %21 64 %22 = OpLabel 65 %localArray = OpVariable %_ptr_Function__arr_float_int_2_0 Function 66 %69 = OpVariable %_ptr_Function_v4float Function 67 %27 = OpCompositeConstruct %_arr_float_int_2_0 %float_1 %float_2 68 OpStore %localArray %27 69 %31 = OpAccessChain %_ptr_Uniform__arr_float_int_2_0 %10 %int_0 70 %33 = OpLoad %_arr_float_int_2_0 %31 71 %34 = OpCompositeExtract %float %33 0 72 %35 = OpFOrdEqual %bool %float_1 %34 73 %36 = OpCompositeExtract %float %33 1 74 %37 = OpFOrdEqual %bool %float_2 %36 75 %38 = OpLogicalAnd %bool %37 %35 76 OpSelectionMerge %40 None 77 OpBranchConditional %38 %39 %40 78 %39 = OpLabel 79 %41 = OpAccessChain %_ptr_Uniform__arr_float_int_2_0 %10 %int_0 80 %42 = OpLoad %_arr_float_int_2_0 %41 81 %43 = OpAccessChain %_ptr_PushConstant__arr_float_int_2 %3 %int_0 82 %45 = OpLoad %_arr_float_int_2 %43 83 %46 = OpCompositeExtract %float %42 0 84 %47 = OpCompositeExtract %float %45 0 85 %48 = OpFOrdEqual %bool %46 %47 86 %49 = OpCompositeExtract %float %42 1 87 %50 = OpCompositeExtract %float %45 1 88 %51 = OpFOrdEqual %bool %49 %50 89 %52 = OpLogicalAnd %bool %51 %48 90 OpBranch %40 91 %40 = OpLabel 92 %53 = OpPhi %bool %false %22 %52 %39 93 OpSelectionMerge %55 None 94 OpBranchConditional %53 %54 %55 95 %54 = OpLabel 96 %56 = OpAccessChain %_ptr_Uniform__arr_float_int_2_0 %10 %int_0 97 %57 = OpLoad %_arr_float_int_2_0 %56 98 %58 = OpAccessChain %_ptr_Uniform__arr_float_int_2 %14 %int_0 99 %60 = OpLoad %_arr_float_int_2 %58 100 %61 = OpCompositeExtract %float %57 0 101 %62 = OpCompositeExtract %float %60 0 102 %63 = OpFOrdEqual %bool %61 %62 103 %64 = OpCompositeExtract %float %57 1 104 %65 = OpCompositeExtract %float %60 1 105 %66 = OpFOrdEqual %bool %64 %65 106 %67 = OpLogicalAnd %bool %66 %63 107 OpBranch %55 108 %55 = OpLabel 109 %68 = OpPhi %bool %false %40 %67 %54 110 OpSelectionMerge %73 None 111 OpBranchConditional %68 %71 %72 112 %71 = OpLabel 113 OpStore %69 %74 114 OpBranch %73 115 %72 = OpLabel 116 OpStore %69 %76 117 OpBranch %73 118 %73 = OpLabel 119 %77 = OpLoad %v4float %69 120 OpStore %sk_FragColor %77 121 OpReturn 122 OpFunctionEnd 123