| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 1 |
| 4 |
; Bound: 59 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint Fragment %4 "main" |
| 10 |
OpExecutionMode %4 OriginUpperLeft |
| 11 |
%void = OpTypeVoid |
| 12 |
%3 = OpTypeFunction %void |
| 13 |
%float = OpTypeFloat 32 |
| 14 |
%v2float = OpTypeVector %float 2 |
| 15 |
%mat2v2float = OpTypeMatrix %v2float 2 |
| 16 |
%_ptr_Function_mat2v2float = OpTypePointer Function %mat2v2float |
| 17 |
%v3float = OpTypeVector %float 3 |
| 18 |
%11 = OpTypeFunction %v3float %_ptr_Function_mat2v2float |
| 19 |
%_ptr_Function_v3float = OpTypePointer Function %v3float |
| 20 |
%float_1 = OpConstant %float 1 |
| 21 |
%18 = OpConstantComposite %v3float %float_1 %float_1 %float_1 |
| 22 |
%int = OpTypeInt 32 1 |
| 23 |
%_ptr_Function_int = OpTypePointer Function %int |
| 24 |
%int_35 = OpConstant %int 35 |
| 25 |
%int_0 = OpConstant %int 0 |
| 26 |
%bool = OpTypeBool |
| 27 |
%int_1 = OpConstant %int 1 |
| 28 |
%4 = OpFunction %void None %3 |
| 29 |
%5 = OpLabel |
| 30 |
OpBranch %48 |
| 31 |
%48 = OpLabel |
| 32 |
%58 = OpPhi %int %int_35 %5 %56 %50 |
| 33 |
OpLoopMerge %49 %50 None |
| 34 |
OpBranch %51 |
| 35 |
%51 = OpLabel |
| 36 |
%53 = OpSGreaterThanEqual %bool %58 %int_0 |
| 37 |
OpBranchConditional %53 %54 %49 |
| 38 |
%54 = OpLabel |
| 39 |
OpBranch %50 |
| 40 |
%50 = OpLabel |
| 41 |
%56 = OpISub %int %58 %int_1 |
| 42 |
OpBranch %48 |
| 43 |
%49 = OpLabel |
| 44 |
OpReturn |
| 45 |
OpFunctionEnd |
| 46 |
%13 = OpFunction %v3float None %11 |
| 47 |
%12 = OpFunctionParameter %_ptr_Function_mat2v2float |
| 48 |
%14 = OpLabel |
| 49 |
%16 = OpVariable %_ptr_Function_v3float Function |
| 50 |
%21 = OpVariable %_ptr_Function_int Function |
| 51 |
OpStore %16 %18 |
| 52 |
OpStore %21 %int_35 |
| 53 |
OpBranch %23 |
| 54 |
%23 = OpLabel |
| 55 |
OpLoopMerge %25 %26 None |
| 56 |
OpBranch %27 |
| 57 |
%27 = OpLabel |
| 58 |
%28 = OpLoad %int %21 |
| 59 |
%31 = OpSGreaterThanEqual %bool %28 %int_0 |
| 60 |
OpBranchConditional %31 %24 %25 |
| 61 |
%24 = OpLabel |
| 62 |
OpBranch %26 |
| 63 |
%26 = OpLabel |
| 64 |
%32 = OpLoad %int %21 |
| 65 |
%34 = OpISub %int %32 %int_1 |
| 66 |
OpStore %21 %34 |
| 67 |
OpBranch %23 |
| 68 |
%25 = OpLabel |
| 69 |
%35 = OpLoad %v3float %16 |
| 70 |
OpReturnValue %35 |
| 71 |
OpFunctionEnd |