Debian Codegraph @

third_party/spirv-cross/shaders/asm/comp/op-phi-swap.asm.comp

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos SPIR-V Tools Assembler; 0
4 ; Bound: 39
5 ; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
8 OpEntryPoint GLCompute %main "main" %gl_GlobalInvocationID
9 OpExecutionMode %main LocalSize 1 1 1
10 OpName %main "main"
11 OpName %gl_GlobalInvocationID "gl_GlobalInvocationID"
12 OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId
13 OpDecorate %_struct_3 BufferBlock
14 OpDecorate %4 DescriptorSet 0
15 OpDecorate %4 Binding 0
16 OpDecorate %5 DescriptorSet 0
17 OpDecorate %5 Binding 1
18 OpDecorate %_runtimearr_float ArrayStride 4
19 OpMemberDecorate %_struct_3 0 Offset 0
20 %bool = OpTypeBool
21 %void = OpTypeVoid
22 %9 = OpTypeFunction %void
23 %uint = OpTypeInt 32 0
24 %int = OpTypeInt 32 1
25 %float = OpTypeFloat 32
26 %v3uint = OpTypeVector %uint 3
27 %v3float = OpTypeVector %float 3
28 %_ptr_Input_v3uint = OpTypePointer Input %v3uint
29 %_ptr_Uniform_int = OpTypePointer Uniform %int
30 %_ptr_Uniform_float = OpTypePointer Uniform %float
31 %_runtimearr_int = OpTypeRuntimeArray %int
32 %_runtimearr_float = OpTypeRuntimeArray %float
33 %_struct_3 = OpTypeStruct %_runtimearr_float
34 %_ptr_Uniform__struct_3 = OpTypePointer Uniform %_struct_3
35 %4 = OpVariable %_ptr_Uniform__struct_3 Uniform
36 %5 = OpVariable %_ptr_Uniform__struct_3 Uniform
37 %_ptr_Function_float = OpTypePointer Function %float
38 %gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input
39 %true = OpConstantTrue %bool
40 %false = OpConstantFalse %bool
41 %int_0 = OpConstant %int 0
42 %float_8_5 = OpConstant %float 8.5
43 %main = OpFunction %void None %9
44 %25 = OpLabel
45 %26 = OpVariable %_ptr_Function_float Function %float_8_5
46 %27 = OpLoad %v3uint %gl_GlobalInvocationID
47 %28 = OpCompositeExtract %uint %27 0
48 %29 = OpAccessChain %_ptr_Uniform_float %4 %int_0 %28
49 %30 = OpAccessChain %_ptr_Uniform_float %5 %int_0 %28
50 %31 = OpLoad %float %29
51 %32 = OpLoad %float %26
52 OpBranch %33
53 %33 = OpLabel
54 %34 = OpPhi %bool %true %25 %false %33
55 %35 = OpPhi %float %31 %25 %36 %33
56 %36 = OpPhi %float %32 %25 %35 %33
57 OpLoopMerge %37 %33 None
58 OpBranchConditional %34 %33 %37
59 %37 = OpLabel
60 %38 = OpFSub %float %35 %36
61 OpStore %30 %38
62 OpReturn
63 OpFunctionEnd