Vixen
02b45cc4
csharp
public readonly record struct UiDraw

A run of vertices a renderer can draw with one pipeline and one state.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ The clip is carried on the draw rather than replayed as commands. A draw list pushes and pops; a renderer sets a scissor. Resolving the stack here means the renderer never holds one — and never has to be told that a batch it skipped had left a clip behind.

Fields and properties (6)

  • public BatchKind Kind

    Which shader draws it.

  • public int First

    The index of its first index, in the index buffer.

  • public int Count

    How many indices it covers.

  • public int Font

    Which font, for text. Zero and unread otherwise.

  • public Rectangle Clip

    The scissor rectangle in force, in document pixels.

  • public ulong Image

    Which texture, for Image. Zero and unread otherwise.

Methods (1)

  • public UiDraw(BatchKind Kind, int First, int Count, int Font, Rectangle Clip)

    A run of vertices a renderer can draw with one pipeline and one state.

Used by (7)

  • IconAtlasTestsVixen.Ui.Tests
  • NineSliceImageTestsVixen.Ui.Tests
  • SoftwareUiRasterizerVixen.Ui.Testing
  • UiGeometryVixen.Ui
  • UiGeometryBuilderVixen.Ui
  • UiGeometryTestsVixen.Ui.Tests
  • UiRendererVixen.Ui.Renderer