Debian Codegraph @

third_party/spirv-cross/shaders-msl-no-opt/asm/frag/private-initializer-direct-store.asm.frag

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 8
4 ; Bound: 17
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 %b "b"
14 OpName %FragColor "FragColor"
15 OpDecorate %FragColor Location 0
16 %void = OpTypeVoid
17 %3 = OpTypeFunction %void
18 %float = OpTypeFloat 32
19 %_ptr_Private_float = OpTypePointer Private %float
20 %float_10 = OpConstant %float 10
21 %float_20 = OpConstant %float 20
22 %b = OpVariable %_ptr_Private_float Private %float_10
23 %_ptr_Output_float = OpTypePointer Output %float
24 %FragColor = OpVariable %_ptr_Output_float Output
25 %main = OpFunction %void None %3
26 %5 = OpLabel
27 OpStore %b %float_20
28 %15 = OpLoad %float %b
29 %16 = OpFAdd %float %15 %15
30 OpStore %FragColor %16
31 OpReturn
32 OpFunctionEnd