Skip to content

GraphicsAPI reference

Enum CommandKind

Namespace: MicroEngine.Graphics.Devices
Assembly: MicroEngine.Graphics.dll
Guide: The graphics device

Kind of a recorded command (backend-facing; see Command for the fields each kind uses).

C#
public enum CommandKind

Fields

BeginPass = 0

Pass.

Draw = 9

Count vertices from First, Instances.

DrawIndexed = 10

Count indices from First, BaseVertex, Instances.

EndPass = 1

No fields.

SetIndices = 7

Resource (GpuBuffer), IndexSize.

SetPipeline = 4

Resource is the Pipeline.

SetScissor = 3

Rect (already clipped to the target).

SetTexture = 5

Slot, Resource (Texture), Sampler.

SetUniforms = 8

Stage, Slot, payload.

SetVertices = 6

Resource (GpuBuffer).

SetViewport = 2

Rect.

UpdateBuffer = 11

Resource (GpuBuffer), byte offset in First, payload.

UpdateTexture = 12

Resource (Texture), Rect region, payload.