Fix MetalBumpAllocator (#7951)

This commit is contained in:
Ben Doherty
2024-06-28 13:09:01 -07:00
committed by Benjamin Doherty
parent 55173efc2c
commit 786b7ec7ae

View File

@@ -145,6 +145,7 @@ std::pair<id<MTLBuffer>, size_t> MetalBumpAllocator::allocateStagingArea(size_t
// We're finished with the current allocation.
mCurrentUploadBuffer = { [mDevice newBufferWithLength:mCapacity options:MTLStorageModeShared],
TrackedMetalBuffer::Type::STAGING };
mHead = size;
return { mCurrentUploadBuffer.get(), 0 };
}