File: function_group_by_mapped_id_src.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 (23 lines) | stat: -rw-r--r-- 753 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;; Don't forget to map between source and destination ids when grouping functions by return type.
                 OpCapability Shader
                 OpCapability Linkage
                 OpMemoryModel Logical GLSL450
         %void = OpTypeVoid               
            %1 = OpTypeInt 32 0
            %2 = OpTypeInt 32 1

      %fn_uint = OpTypeFunction %1
       %fn_int = OpTypeFunction %2

      %uint_42 = OpConstant %1 42
     %int_1729 = OpConstant %2 1729

            %f = OpFunction %1 None %fn_uint
   %f_prologue = OpLabel
                 OpReturnValue %uint_42
                 OpFunctionEnd

            %g = OpFunction %2 None %fn_int
   %g_prologue = OpLabel
                 OpReturnValue %int_1729
                 OpFunctionEnd