DRW: View: Allow the possibility to disable the visibility test

This is useful when we know that everything will be inside the view
frustum.
This commit is contained in:
Clément Foucault
2023-03-19 21:08:14 +01:00
parent 65b2aed14b
commit 0c2299e6b1

View File

@@ -75,6 +75,12 @@ class View {
/** Disable a range in the multi-view array. Disabled view will not produce any instances. */
void disable(IndexRange range);
/** Enable or disable every visibility test (frustum culling, HiZ culling). */
void visibility_test(bool enable)
{
do_visibility_ = enable;
}
/**
* Update culling data using a compute shader.
* This is to be used if the matrices were updated externally