|
| 1 | +; SPIR-V |
| 2 | +; Version: 1.0 |
| 3 | +; Generator: Khronos Glslang Reference Front End; 7 |
| 4 | +; Bound: 54 |
| 5 | +; Schema: 0 |
| 6 | + OpCapability Shader |
| 7 | + %1 = OpExtInstImport "GLSL.std.450" |
| 8 | + OpMemoryModel Logical GLSL450 |
| 9 | + OpEntryPoint Fragment %main "main" %gl_FragCoord %_GLF_color |
| 10 | + OpExecutionMode %main OriginUpperLeft |
| 11 | + OpSource ESSL 310 |
| 12 | + OpName %main "main" |
| 13 | + OpName %gl_FragCoord "gl_FragCoord" |
| 14 | + OpName %_GLF_color "_GLF_color" |
| 15 | + OpDecorate %gl_FragCoord BuiltIn FragCoord |
| 16 | + OpDecorate %_GLF_color Location 0 |
| 17 | + %void = OpTypeVoid |
| 18 | + %3 = OpTypeFunction %void |
| 19 | + %int = OpTypeInt 32 1 |
| 20 | + %int_0 = OpConstant %int 0 |
| 21 | + %float = OpTypeFloat 32 |
| 22 | + %v4float = OpTypeVector %float 4 |
| 23 | +%_ptr_Input_v4float = OpTypePointer Input %v4float |
| 24 | +%gl_FragCoord = OpVariable %_ptr_Input_v4float Input |
| 25 | + %uint = OpTypeInt 32 0 |
| 26 | + %uint_0 = OpConstant %uint 0 |
| 27 | +%_ptr_Input_float = OpTypePointer Input %float |
| 28 | + %bool = OpTypeBool |
| 29 | + %v2float = OpTypeVector %float 2 |
| 30 | +%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 31 | + %_GLF_color = OpVariable %_ptr_Output_v4float Output |
| 32 | + %float_1 = OpConstant %float 1 |
| 33 | + %52 = OpUndef %v2float |
| 34 | + %main = OpFunction %void None %3 |
| 35 | + %5 = OpLabel |
| 36 | + OpSelectionMerge %9 None |
| 37 | + OpSwitch %int_0 %8 |
| 38 | + %8 = OpLabel |
| 39 | + %17 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_0 |
| 40 | + %18 = OpLoad %float %17 |
| 41 | + %22 = OpFOrdNotEqual %bool %18 %18 |
| 42 | + OpSelectionMerge %24 None |
| 43 | + OpBranchConditional %22 %23 %24 |
| 44 | + %23 = OpLabel |
| 45 | + OpBranch %9 |
| 46 | + %24 = OpLabel |
| 47 | + %33 = OpCompositeExtract %float %52 1 |
| 48 | + %51 = OpCompositeInsert %v2float %33 %52 1 |
| 49 | + OpBranch %9 |
| 50 | + %9 = OpLabel |
| 51 | + %53 = OpPhi %v2float %52 %23 %51 %24 |
| 52 | + %42 = OpCompositeExtract %float %53 0 |
| 53 | + %43 = OpCompositeExtract %float %53 1 |
| 54 | + %48 = OpCompositeConstruct %v4float %42 %43 %float_1 %float_1 |
| 55 | + OpStore %_GLF_color %48 |
| 56 | + OpReturn |
| 57 | + OpFunctionEnd |
0 commit comments