Debian Codegraph @

third_party/spirv-cross/shaders/asm/frag/op-phi-swap-continue-block.asm.frag

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 7
4 ; Bound: 55
5 ; Schema: 0
6 OpCapability Shader
7 %1 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Fragment %main "main" %FragColor
10 OpExecutionMode %main OriginUpperLeft
11 OpSource GLSL 450
12 OpName %main "main"
13 OpName %UBO "UBO"
14 OpMemberName %UBO 0 "uCount"
15 OpMemberName %UBO 1 "uJ"
16 OpMemberName %UBO 2 "uK"
17 OpName %_ ""
18 OpName %FragColor "FragColor"
19 OpMemberDecorate %UBO 0 Offset 0
20 OpMemberDecorate %UBO 1 Offset 4
21 OpMemberDecorate %UBO 2 Offset 8
22 OpDecorate %UBO Block
23 OpDecorate %_ DescriptorSet 0
24 OpDecorate %_ Binding 0
25 OpDecorate %FragColor Location 0
26 %void = OpTypeVoid
27 %3 = OpTypeFunction %void
28 %int = OpTypeInt 32 1
29 %UBO = OpTypeStruct %int %int %int
30 %_ptr_Uniform_UBO = OpTypePointer Uniform %UBO
31 %_ = OpVariable %_ptr_Uniform_UBO Uniform
32 %int_1 = OpConstant %int 1
33 %_ptr_Uniform_int = OpTypePointer Uniform %int
34 %int_2 = OpConstant %int 2
35 %int_0 = OpConstant %int 0
36 %bool = OpTypeBool
37 %float = OpTypeFloat 32
38 %_ptr_Output_float = OpTypePointer Output %float
39 %FragColor = OpVariable %_ptr_Output_float Output
40 %main = OpFunction %void None %3
41 %5 = OpLabel
42 %14 = OpAccessChain %_ptr_Uniform_int %_ %int_1
43 %15 = OpLoad %int %14
44 %18 = OpAccessChain %_ptr_Uniform_int %_ %int_2
45 %19 = OpLoad %int %18
46 OpBranch %22
47 %22 = OpLabel
48 %54 = OpPhi %int %19 %5 %53 %23
49 %53 = OpPhi %int %15 %5 %54 %23
50 %52 = OpPhi %int %int_0 %5 %37 %23
51 %28 = OpAccessChain %_ptr_Uniform_int %_ %int_0
52 %29 = OpLoad %int %28
53 %31 = OpSLessThan %bool %52 %29
54 OpLoopMerge %24 %23 None
55 OpBranchConditional %31 %inbetween %24
56 %inbetween = OpLabel
57 OpBranch %23
58 %23 = OpLabel
59 %37 = OpIAdd %int %52 %int_1
60 OpBranch %22
61 %24 = OpLabel
62 %43 = OpISub %int %53 %54
63 %44 = OpConvertSToF %float %43
64 %49 = OpIMul %int %15 %19
65 %50 = OpConvertSToF %float %49
66 %51 = OpFMul %float %44 %50
67 OpStore %FragColor %51
68 OpReturn
69 OpFunctionEnd