mirror of
https://github.com/rt64/rt64.git
synced 2025-01-06 01:02:50 +00:00
Explicit cast from size_t to uint64_t
This commit is contained in:
parent
a84e5f7b4b
commit
52ff2c65d6
@ -91,8 +91,8 @@ namespace RT64 {
|
|||||||
bufferPair.defaultViews.clear();
|
bufferPair.defaultViews.clear();
|
||||||
|
|
||||||
// Recreate the buffer pair.
|
// Recreate the buffer pair.
|
||||||
const size_t BlockAlignment = 256;
|
const uint64_t BlockAlignment = 256;
|
||||||
bufferPair.allocatedSize = std::max((requiredSize * 3) / 2, BlockAlignment);
|
bufferPair.allocatedSize = std::max(((uint64_t)requiredSize * 3) / 2, BlockAlignment);
|
||||||
bufferPair.allocatedSize = roundUp(bufferPair.allocatedSize, BlockAlignment);
|
bufferPair.allocatedSize = roundUp(bufferPair.allocatedSize, BlockAlignment);
|
||||||
bufferPair.uploadBuffer = worker->device->createBuffer(RenderBufferDesc::UploadBuffer(bufferPair.allocatedSize));
|
bufferPair.uploadBuffer = worker->device->createBuffer(RenderBufferDesc::UploadBuffer(bufferPair.allocatedSize));
|
||||||
bufferPair.defaultBuffer = worker->device->createBuffer(RenderBufferDesc::DefaultBuffer(bufferPair.allocatedSize, u.bufferFlags));
|
bufferPair.defaultBuffer = worker->device->createBuffer(RenderBufferDesc::DefaultBuffer(bufferPair.allocatedSize, u.bufferFlags));
|
||||||
|
Loading…
Reference in New Issue
Block a user