Skip to content

Additional frustum culling events in order to better support indirect drawing #7778

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2025

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Jun 18, 2025

This PR:

  • fires existing EVENT_PRECULL and EVENT_POSTCULL events even for shadow cameras
  • fires new EVENT_CULL_END event when all culling is completed (scene + shadow cameras)

This along with Indirect Drawing can be used to implement instanced culling on GPU:

  1. Collect all cameras the scene uses for rendering of the frame (scene + shadow cameras)
  2. dispatch a Compute shader which culls instanced mesh instances, and uses indirect drawing to render visible instances per camera

@mvaligursky mvaligursky merged commit b7f9efb into main Jun 19, 2025
7 checks passed
@mvaligursky mvaligursky deleted the mv-culling-events branch June 19, 2025 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants