Fix threading issues with GPU buffers mapping

This commit is contained in:
Wojciech Figat
2023-01-04 12:06:56 +01:00
committed by Wojtek Figat
parent e2aa6b8970
commit 0595f38fe4
6 changed files with 15 additions and 6 deletions

View File

@@ -77,9 +77,10 @@ void GPUBufferDX12::Unmap()
writtenRangePtr = nullptr;
break;
default:
CRASH;
return;
}
_resource->Unmap(0, writtenRangePtr);
_lastMapMode = (GPUResourceMapMode)255;
}
GPUResource* GPUBufferDX12::AsGPUResource() const