| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 7 |
| 4 |
; Bound: 42 |
| 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 |
%float = OpTypeFloat 32 |
| 20 |
%v4float = OpTypeVector %float 4 |
| 21 |
%_ptr_Input_v4float = OpTypePointer Input %v4float |
| 22 |
%gl_FragCoord = OpVariable %_ptr_Input_v4float Input |
| 23 |
%uint = OpTypeInt 32 0 |
| 24 |
%uint_0 = OpConstant %uint 0 |
| 25 |
%_ptr_Input_float = OpTypePointer Input %float |
| 26 |
%bool = OpTypeBool |
| 27 |
%false = OpConstantFalse %bool |
| 28 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 29 |
%_GLF_color = OpVariable %_ptr_Output_v4float Output |
| 30 |
%float_1 = OpConstant %float 1 |
| 31 |
%float_0 = OpConstant %float 0 |
| 32 |
%31 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1 |
| 33 |
%true = OpConstantTrue %bool |
| 34 |
%main = OpFunction %void None %3 |
| 35 |
%5 = OpLabel |
| 36 |
OpBranch %33 |
| 37 |
%33 = OpLabel |
| 38 |
OpLoopMerge %32 %35 None |
| 39 |
OpBranch %6 |
| 40 |
%6 = OpLabel |
| 41 |
OpLoopMerge %8 %24 None |
| 42 |
OpBranch %7 |
| 43 |
%7 = OpLabel |
| 44 |
%17 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_0 |
| 45 |
%18 = OpLoad %float %17 |
| 46 |
%22 = OpFOrdNotEqual %bool %18 %18 |
| 47 |
OpSelectionMerge %24 None |
| 48 |
OpBranchConditional %22 %23 %24 |
| 49 |
%23 = OpLabel |
| 50 |
OpBranch %8 |
| 51 |
%24 = OpLabel |
| 52 |
OpBranchConditional %false %6 %8 |
| 53 |
%8 = OpLabel |
| 54 |
%41 = OpPhi %bool %true %23 %false %24 |
| 55 |
OpSelectionMerge %39 None |
| 56 |
OpBranchConditional %41 %32 %39 |
| 57 |
%39 = OpLabel |
| 58 |
OpStore %_GLF_color %31 |
| 59 |
OpBranch %32 |
| 60 |
%35 = OpLabel |
| 61 |
OpBranch %33 |
| 62 |
%32 = OpLabel |
| 63 |
OpReturn |
| 64 |
OpFunctionEnd |