| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 3 |
| 4 |
; Bound: 47 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint Fragment %main "main" %counter %FragColor |
| 10 |
OpExecutionMode %main OriginUpperLeft |
| 11 |
OpSource GLSL 450 |
| 12 |
OpName %main "main" |
| 13 |
OpName %counter "counter" |
| 14 |
OpName %FragColor "FragColor" |
| 15 |
OpDecorate %counter Flat |
| 16 |
OpDecorate %counter Location 0 |
| 17 |
OpDecorate %FragColor Location 0 |
| 18 |
%void = OpTypeVoid |
| 19 |
%3 = OpTypeFunction %void |
| 20 |
%float = OpTypeFloat 32 |
| 21 |
%v4float = OpTypeVector %float 4 |
| 22 |
%8 = OpTypeFunction %v4float |
| 23 |
%int = OpTypeInt 32 1 |
| 24 |
%_ptr_Input_int = OpTypePointer Input %int |
| 25 |
%counter = OpVariable %_ptr_Input_int Input |
| 26 |
%int_10 = OpConstant %int 10 |
| 27 |
%bool = OpTypeBool |
| 28 |
%float_10 = OpConstant %float 10 |
| 29 |
%21 = OpConstantComposite %v4float %float_10 %float_10 %float_10 %float_10 |
| 30 |
%float_30 = OpConstant %float 30 |
| 31 |
%25 = OpConstantComposite %v4float %float_30 %float_30 %float_30 %float_30 |
| 32 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 33 |
%FragColor = OpVariable %_ptr_Output_v4float Output |
| 34 |
%_ptr_Function_v4float = OpTypePointer Function %v4float |
| 35 |
%false = OpConstantFalse %bool |
| 36 |
%44 = OpUndef %v4float |
| 37 |
%main = OpFunction %void None %3 |
| 38 |
%5 = OpLabel |
| 39 |
OpBranch %33 |
| 40 |
%33 = OpLabel |
| 41 |
%45 = OpPhi %v4float %44 %5 %44 %35 |
| 42 |
OpLoopMerge %34 %35 None |
| 43 |
OpBranch %36 |
| 44 |
%36 = OpLabel |
| 45 |
%37 = OpLoad %int %counter |
| 46 |
%38 = OpIEqual %bool %37 %int_10 |
| 47 |
OpSelectionMerge %39 None |
| 48 |
OpBranchConditional %38 %40 %41 |
| 49 |
%40 = OpLabel |
| 50 |
OpBranch %34 |
| 51 |
%41 = OpLabel |
| 52 |
OpBranch %34 |
| 53 |
%39 = OpLabel |
| 54 |
OpUnreachable |
| 55 |
%35 = OpLabel |
| 56 |
OpBranchConditional %false %33 %34 |
| 57 |
%34 = OpLabel |
| 58 |
%46 = OpPhi %v4float %21 %40 %25 %41 %44 %35 |
| 59 |
OpStore %FragColor %46 |
| 60 |
OpReturn |
| 61 |
OpFunctionEnd |