Fix NanoVDB upload buffer early release causing white screen
This commit is contained in:
@@ -92,7 +92,11 @@ bool LoadNanoVDB(const char* filePath, NanoVDBData& outData, ID3D12GraphicsComma
|
||||
barrier.Transition.StateAfter = D3D12_RESOURCE_STATE_GENERIC_READ;
|
||||
cmdList->ResourceBarrier(1, &barrier);
|
||||
|
||||
EndCommandList();
|
||||
WaitForCompletionOfCommandList();
|
||||
uploadBuffer->Release();
|
||||
GetCommandAllocator()->Reset();
|
||||
cmdList->Reset(GetCommandAllocator(), nullptr);
|
||||
}
|
||||
|
||||
std::cout << "[NanoVDB] Loaded: " << byteSize << " bytes, " << elementCount << " elements" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user