File: spec_constant_op_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 (18 lines) | stat: -rw-r--r-- 701 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
;; Tests OpSpecConstantOp matching.
               OpCapability Shader
               OpMemoryModel Logical GLSL450
               OpEntryPoint GLCompute %1 "main"
               OpExecutionMode %1 LocalSize 1 1 1
          %2 = OpTypeVoid
          %3 = OpTypeFunction %2
          %4 = OpTypeInt 32 0
          %5 = OpTypeVector %4 3
          %6 = OpConstant %4 1
          %7 = OpSpecConstantComposite %5 %6 %6 %6
          %8 = OpSpecConstantOp %4 CompositeExtract %7 2
          %9 = OpSpecConstantOp %4 CompositeExtract %7 1
         %10 = OpSpecConstantOp %4 CompositeExtract %7 0
          %1 = OpFunction %2 None %3
         %11 = OpLabel
               OpReturn
               OpFunctionEnd