File: unrelated_shaders_src.spvasm

package info (click to toggle)
spirv-tools 2026.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 28,900 kB
  • sloc: cpp: 477,281; javascript: 5,908; python: 3,326; ansic: 488; sh: 450; ruby: 88; makefile: 18; lisp: 9
file content (25 lines) | stat: -rw-r--r-- 863 bytes parent folder | download | duplicates (16)
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
;; Tests diff of unrelated shaders (with different execution models).
               OpCapability Shader
          %1 = OpExtInstImport "GLSL.std.450"
               OpMemoryModel Logical GLSL450
               OpEntryPoint Vertex %4 "main" %8 %10
               OpSource ESSL 310
               OpName %4 "main"
               OpName %8 "v"
               OpName %10 "a"
               OpDecorate %8 Location 0
               OpDecorate %10 Location 0
          %2 = OpTypeVoid
          %3 = OpTypeFunction %2
          %6 = OpTypeFloat 32
          %7 = OpTypePointer Output %6
          %8 = OpVariable %7 Output
          %9 = OpTypePointer Input %6
         %10 = OpVariable %9 Input
          %4 = OpFunction %2 None %3
          %5 = OpLabel
         %11 = OpLoad %6 %10
               OpStore %8 %11
               OpReturn
               OpFunctionEnd