Vixen
02b45cc4
csharp
public interface IDrawArgumentSource

Something that knows what its objects would be drawn with, for the pass that turns visibility into draw calls.

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

Remarks

An interface rather than a reference to the mesh feature, for the reason IInstanceSource is one: the argument pass needs five numbers per object and should not depend on the machinery that produces them. A feature that draws something other than meshes fills its own objects' records and nothing else changes.

Fields and properties (1)

  • GpuDrawArguments? Arguments

    Where this feature's draws read their arguments, or null to carry their own counts.

Methods (2)

  • void FillArguments(RenderSystem system, Span<DrawCommand> commands)

    Fills the records for this feature's objects, leaving every other slot alone.

  • void FillBatches(RenderSystem system, Span<uint> batches)

    Says which batch each of this feature's objects belongs to, for a compacted buffer.

Used by (3)

  • CompositorBuilderVixen.Rendering
  • GpuCullingRendererVixen.Rendering
  • MeshRenderFeatureVixen.Rendering