Flutter Engine
The Flutter Engine
|
#include <BufferManager.h>
Public Member Functions | |
ScratchBuffer ()=default | |
~ScratchBuffer () | |
ScratchBuffer (const ScratchBuffer &)=delete | |
ScratchBuffer & | operator= (const ScratchBuffer &)=delete |
ScratchBuffer (ScratchBuffer &&)=default | |
ScratchBuffer & | operator= (ScratchBuffer &&)=default |
bool | isValid () const |
operator bool () | |
size_t | size () const |
BindBufferInfo | suballocate (size_t requiredBytes) |
void | returnToPool () |
Friends | |
class | DrawBufferManager |
ScratchBuffer represents a GPU buffer object that is allowed to be reused across strictly sequential tasks within a Recording. It can be used to sub-allocate multiple bindings. When a ScratchBuffer gets deallocated, the underlying GPU buffer gets returned to the originating DrawBufferManager for reuse.
Definition at line 38 of file BufferManager.h.
|
default |
skgpu::graphite::ScratchBuffer::~ScratchBuffer | ( | ) |
Definition at line 90 of file BufferManager.cpp.
|
delete |
|
default |
|
inline |
Definition at line 57 of file BufferManager.h.
|
inlineexplicit |
Definition at line 60 of file BufferManager.h.
|
delete |
|
default |
void skgpu::graphite::ScratchBuffer::returnToPool | ( | ) |
Definition at line 104 of file BufferManager.cpp.
|
inline |
Definition at line 66 of file BufferManager.h.
BindBufferInfo skgpu::graphite::ScratchBuffer::suballocate | ( | size_t | requiredBytes | ) |
Definition at line 92 of file BufferManager.cpp.
|
friend |
Definition at line 81 of file BufferManager.h.