fix: those uavs don't need clear, they are discarded and fully overwritten

This commit is contained in:
Turánszki János
2024-10-05 13:32:29 +02:00
parent 0d7a77abc5
commit 683f7eb7e0
-14
View File
@@ -10923,20 +10923,6 @@ void Visibility_Prepare(
}
barrier_stack_flush(cmd);
if (res.depthbuffer)
{
device->ClearUAV(res.depthbuffer, 0, cmd);
}
if (res.lineardepth)
{
device->ClearUAV(res.lineardepth, 0, cmd);
}
if (res.primitiveID_resolved)
{
device->ClearUAV(res.primitiveID_resolved, 0, cmd);
}
device->Barrier(GPUBarrier::Memory(), cmd);
device->BindComputeShader(&shaders[msaa ? CSTYPE_VISIBILITY_RESOLVE_MSAA : CSTYPE_VISIBILITY_RESOLVE], cmd);
device->Dispatch(