Implemented basic occlusions queries

This commit is contained in:
Dynamitos committed 2024-06-11 16:55:20 +02:00
1 parent 52c4f11d28
commit df7fbef8bd
20 files changed
+221 -156

No files matched your search

+2
View File
@@ -26,7 +26,9 @@ void taskMain(
uint cull = p.cullingOffset + i;
MeshletDescription meshlet = pScene.meshletInfos[m];
MeshletCullingInfo culling = pScene.cullingInfos[cull];
#ifdef DEPTH_CULLING
if(culling.anyVisible())
#endif
{
uint index;
InterlockedAdd(head, 1, index);