microZEUS
The whole stack, hand-drawn.

◄ Wiki / Graphics

OpEmitVertex / OpEndPrimitive

The GPU shader instructions that output a vertex and finish a shape inside a geometry shader.

In SPIR-V (the low-level shader language Vulkan uses), a geometry shader can generate new geometry on the fly: OpEmitVertex pushes out one vertex, and OpEndPrimitive closes off the current strip so the next vertices start a fresh shape. Together they let a shader turn one input primitive into several output ones. They are the emit-and-cut controls of geometry generation.

See also

  • OpKillThe GPU shader instruction that throws away the current pixel so it's never drawn.
  • OpPhiA shader instruction that picks a value depending on which code path was taken to reach it.
  • MRTWriting to several output images at once in a single rendering pass.

Referenced by

OpKill · OpPhi