aboutsummaryrefslogtreecommitdiff
path: root/test/diff/diff_files/unrelated_shaders_src.spvasm
blob: e77b2d20420a4e1e763b831f3f906f576d0fe780 (plain)
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