Debian Codegraph @

third_party/spirv-tools/tools/sva/tests/simple.spv_asm

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 7
4 ; Bound: 14
5 ; Schema: 0
6 OpCapability Shader
7 %1 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Fragment %main "main" %gl_FragColor
10 OpExecutionMode %main OriginUpperLeft
11 OpSource GLSL 330
12 OpName %main "main"
13 OpName %gl_FragColor "gl_FragColor"
14 OpDecorate %gl_FragColor Location 0
15 %void = OpTypeVoid
16 %3 = OpTypeFunction %void
17 %float = OpTypeFloat 32
18 %v4float = OpTypeVector %float 4
19 %_ptr_Output_v4float = OpTypePointer Output %v4float
20 %gl_FragColor = OpVariable %_ptr_Output_v4float Output
21 %float_0_400000006 = OpConstant %float 0.400000006
22 %float_0_800000012 = OpConstant %float 0.800000012
23 %float_1 = OpConstant %float 1
24 %13 = OpConstantComposite %v4float %float_0_400000006 %float_0_400000006 %float_0_800000012 %float_1
25 %main = OpFunction %void None %3
26 %5 = OpLabel
27 OpStore %gl_FragColor %13
28 OpReturn
29 OpFunctionEnd
30