File: multiple_different_entry_points_dst.spvasm

package info (click to toggle)
spirv-tools 2025.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 28,588 kB
  • sloc: cpp: 470,407; javascript: 5,893; python: 3,326; ansic: 488; sh: 450; ruby: 88; makefile: 18; lisp: 9
file content (49 lines) | stat: -rw-r--r-- 1,764 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
               OpCapability Shader
          %1 = OpExtInstImport "GLSL.std.450"
               OpMemoryModel Logical GLSL450
               OpEntryPoint Fragment %frag "frag" %vi %color
               OpEntryPoint Vertex %vert "vert" %a %vo
	       OpExecutionMode %frag OriginUpperLeft
               OpSource ESSL 310
               OpName %frag "frag"
               OpName %vert "vert"
               OpName %vo "v"
               OpName %a "a"
               OpName %color "color"
               OpName %vi "v"
               OpDecorate %vi Location 0
               OpDecorate %color Location 0
               OpDecorate %a Location 0
               OpDecorate %vo Location 0
	       OpDecorate %color RelaxedPrecision
	       OpDecorate %vi RelaxedPrecision
               OpDecorate %14 RelaxedPrecision
               OpDecorate %17 RelaxedPrecision

      %float = OpTypeFloat 32
    %v4float = OpTypeVector %float 4
       %void = OpTypeVoid
          %3 = OpTypeFunction %void

%_ptr_Output_float = OpTypePointer Output %float
         %vo = OpVariable %_ptr_Output_float Output
%_ptr_Input_float = OpTypePointer Input %float
          %a = OpVariable %_ptr_Input_float Input
         %vi = OpVariable %_ptr_Input_float Input
%_ptr_Output_v4float = OpTypePointer Output %v4float
      %color = OpVariable %_ptr_Output_v4float Output

       %frag = OpFunction %void None %3
          %7 = OpLabel
         %14 = OpLoad %float %vi
	 %17 = OpCompositeConstruct %v4float %14 %14 %14 %14
               OpStore %color %17
               OpReturn
               OpFunctionEnd

       %vert = OpFunction %void None %3
          %8 = OpLabel
         %13 = OpLoad %float %a
               OpStore %vo %13
               OpReturn
               OpFunctionEnd