Debian Codegraph @

third_party/spirv-cross/shaders/asm/frag/invalidation.asm.frag

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 1
4 ; Bound: 28
5 ; Schema: 0
6 OpCapability Shader
7 %1 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Fragment %4 "main" %v0 %v1 %FragColor
10 OpExecutionMode %4 OriginUpperLeft
11 OpSource GLSL 450
12 OpName %4 "main"
13 OpName %a "a"
14 OpName %v0 "v0"
15 OpName %b "b"
16 OpName %v1 "v1"
17 OpName %FragColor "FragColor"
18 OpDecorate %v0 Location 0
19 OpDecorate %v1 Location 1
20 OpDecorate %FragColor Location 0
21 %2 = OpTypeVoid
22 %3 = OpTypeFunction %2
23 %float = OpTypeFloat 32
24 %pfloat = OpTypePointer Function %float
25 %9 = OpTypePointer Input %float
26 %v0 = OpVariable %9 Input
27 %v1 = OpVariable %9 Input
28 %25 = OpTypePointer Output %float
29 %FragColor = OpVariable %25 Output
30 %4 = OpFunction %2 None %3
31 %5 = OpLabel
32 %a = OpVariable %pfloat Function
33 %b = OpVariable %pfloat Function
34 %v0_tmp = OpLoad %float %v0
35 %v1_tmp = OpLoad %float %v1
36 OpStore %a %v0_tmp
37 OpStore %b %v1_tmp
38
39 %a_tmp = OpLoad %float %a
40 %b_tmp = OpLoad %float %b
41 %res = OpFAdd %float %a_tmp %b_tmp
42 %res1 = OpFMul %float %res %b_tmp
43 OpStore %a %v1_tmp
44 OpStore %FragColor %res1
45 OpReturn
46 OpFunctionEnd