Skip to content

MDI Compaction in ILoDAndCullingSystem #249

Open
@devshgraphicsprogramming

Description

Description

Right now the MDI ranges are not compacted (having the drawcalls with 0 instances removed).

But the DrawIndirectAllocator and all the resources in on the C++ side are already setup for this

Solution proposal

An additional Dispatch (direct, cause you can have a list of MDIs up front) over the drawcalls that prefix sums their boolean instanceCount!=0u flag

Then another dispatch that scatter counting sorts them onto compressed buffer of DrawIndirect and updates the drawcount for an associated MDI.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions