Vixen
02b45cc4
csharp
public record class GpuCullingAsset

The culling dispatch, and the draw arguments it feeds.

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

Remarks

Placed at the head of the frame, before anything it decides for is drawn. The node is what makes ReadBack false usable at all: with no wait, the only ordering this RHI can express is a barrier between two things in one queue, so the dispatch has to be recorded where the draws are.

What the document decides is placement; what the host supplies is the resources. A visibility group holds device memory across frames and a pyramid holds a frame of depth, neither of which a file can create — the same division Descriptors and Samplers already have on CompositorBuilder. Building this node with none of them supplied is how a document says "cull on the GPU" to a host that has decided not to, and it is a node that then does nothing.

Fields and properties (6)

  • public string Name

    The node's name, for debug groups and for a human reading the file.

  • public bool Enabled

    Whether the node runs.

  • public bool ReadBack

    Whether the bits come back to the host, which is what the interface's promise costs.

  • public bool IndirectDraws

    Whether the pass also turns the bits into indirect draw arguments.

  • public bool Compact

    Whether the survivors are packed into a run per batch rather than left at their slot.

  • public CullPhase Phase

    Which of a two-phase cull's dispatches this node is.

Used by (5)

  • CompositorAssetTestsVixen.Rendering.Tests
  • CompositorBuilderVixen.Rendering
  • TypeRegistrationVixen.Rendering
  • Vixen_Rendering_Compositor_GpuCullingAssetSerializerVixen.Rendering
  • GpuCullingNodeVixen.Editor.AssetEditors