panda3d.core.VertexDataBook

class VertexDataBook

A collection of VertexDataPages, which can be used to allocate new VertexDataBlock objects.

Inheritance diagram

Inheritance diagram of VertexDataBook

__init__(block_size: size_t) → None
alloc(size: size_t) → VertexDataBlock

Allocates and returns a new VertexDataBuffer of the requested size.

Return type

VertexDataBlock

getNumPages() → size_t

Returns the number of pages created for the book.

Return type

size_t

countTotalPageSize() → size_t

Returns the total size of all bytes owned by all pages owned by this book.

Return type

size_t

countTotalPageSize(ram_class: RamClass) → size_t

Returns the total size of all bytes owned by all pages owned by this book that have the indicated ram class.

Return type

size_t

countAllocatedSize() → size_t

Returns the total size of all bytes allocated within pages owned by this book.

Return type

size_t

countAllocatedSize(ram_class: RamClass) → size_t

Returns the total size of all bytes allocated within pages owned by this book that have the indicated ram class.

Return type

size_t

saveToDisk() → None

Writes all pages to disk immediately, just in case they get evicted later. It makes sense to make this call just before taking down a loading screen, to minimize chugs from saving pages inadvertently later.