Debian Codegraph @

test/diff/diff_files/multiple_different_entry_points_dst.spvasm

raw
1 OpCapability Shader
2 %1 = OpExtInstImport "GLSL.std.450"
3 OpMemoryModel Logical GLSL450
4 OpEntryPoint Fragment %frag "frag" %vi %color
5 OpEntryPoint Vertex %vert "vert" %a %vo
6 OpExecutionMode %frag OriginUpperLeft
7 OpSource ESSL 310
8 OpName %frag "frag"
9 OpName %vert "vert"
10 OpName %vo "v"
11 OpName %a "a"
12 OpName %color "color"
13 OpName %vi "v"
14 OpDecorate %vi Location 0
15 OpDecorate %color Location 0
16 OpDecorate %a Location 0
17 OpDecorate %vo Location 0
18 OpDecorate %color RelaxedPrecision
19 OpDecorate %vi RelaxedPrecision
20 OpDecorate %14 RelaxedPrecision
21 OpDecorate %17 RelaxedPrecision
22
23 %float = OpTypeFloat 32
24 %v4float = OpTypeVector %float 4
25 %void = OpTypeVoid
26 %3 = OpTypeFunction %void
27
28 %_ptr_Output_float = OpTypePointer Output %float
29 %vo = OpVariable %_ptr_Output_float Output
30 %_ptr_Input_float = OpTypePointer Input %float
31 %a = OpVariable %_ptr_Input_float Input
32 %vi = OpVariable %_ptr_Input_float Input
33 %_ptr_Output_v4float = OpTypePointer Output %v4float
34 %color = OpVariable %_ptr_Output_v4float Output
35
36 %frag = OpFunction %void None %3
37 %7 = OpLabel
38 %14 = OpLoad %float %vi
39 %17 = OpCompositeConstruct %v4float %14 %14 %14 %14
40 OpStore %color %17
41 OpReturn
42 OpFunctionEnd
43
44 %vert = OpFunction %void None %3
45 %8 = OpLabel
46 %13 = OpLoad %float %a
47 OpStore %vo %13
48 OpReturn
49 OpFunctionEnd