CircularBuffer remove Discard functionality and allow rotation

This commit is contained in:
Dr. Chat
2016-04-01 21:53:46 -05:00
parent 50f72b4e42
commit f9a634ad25
2 changed files with 10 additions and 19 deletions

View File

@@ -52,8 +52,10 @@ class CircularBuffer {
uint8_t* host_base() const { return host_base_; }
bool CanAcquire(VkDeviceSize length);
// Acquires space to hold memory. This allocation is only freed when the fence
// reaches the signaled state.
Allocation* Acquire(VkDeviceSize length, std::shared_ptr<Fence> fence);
void Discard(Allocation* allocation);
void Flush(Allocation* allocation);
// Clears all allocations, regardless of whether they've been consumed or not.