VertexDataBook
from panda3d.core import VertexDataBook
- class VertexDataBook
Bases:
A collection of
VertexDataPages
, which can be used to allocate newVertexDataBlock
objects.Inheritance diagram
- alloc(size: int) VertexDataBlock
Allocates and returns a new VertexDataBuffer of the requested size.
- count_allocated_size() int
Returns the total size of all bytes allocated within pages owned by this book.
- count_allocated_size(ram_class: RamClass) int
Returns the total size of all bytes allocated within pages owned by this book that have the indicated ram class.
- count_total_page_size() int
Returns the total size of all bytes owned by all pages owned by this book.
- count_total_page_size(ram_class: RamClass) int
Returns the total size of all bytes owned by all pages owned by this book that have the indicated ram class.
- save_to_disk()
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.