17 INLINE VertexBufferContext::
38 nassertr(reader->get_object() ==
get_data(),
false);
48 nassertr(reader->get_object() ==
get_data(),
false);
49 return _usage_hint != reader->get_usage_hint();
58 nassertr(reader->get_object() ==
get_data(),
false);
79 nassertv(reader->get_object() ==
get_data());
82 _usage_hint = reader->get_usage_hint();
bool was_modified(const GeomVertexArrayDataHandle *reader) const
Returns true if the data has been modified since the last time mark_loaded() was called.
void update_data_size_bytes(size_t new_data_size_bytes)
Should be called (usually by a derived class) when the on-card size of this object has changed.
This is a base class for those kinds of SavedContexts that occupy an easily-measured (and substantial...
void set_lru_size(size_t lru_size)
Specifies the size of this page, presumably in bytes, although any unit is possible.
void mark_unloaded()
Should be called after the buffer has been forced out of graphics memory.
This data object is returned by GeomVertexArrayData::get_handle() or modify_handle().
A table of objects that are saved within the graphics context for reference by handle later.
void mark_loaded(const GeomVertexArrayDataHandle *reader)
Should be called after the VertexBufferContext has been loaded into graphics memory,...
void update_data_size_bytes(size_t new_data_size_bytes)
Should be called (usually by a derived class) when the on-card size of this object has changed.
void set_resident(bool flag)
Changes the resident flag associated with this object.
One atomic piece that may be managed by a AdaptiveLru chain.
get_modified
Returns the UpdateSeq that was recorded the last time mark_loaded() was called.
bool changed_usage_hint(const GeomVertexArrayDataHandle *reader) const
Returns true if the data has changed its usage hint since the last time mark_loaded() was called.
GeomVertexArrayData * get_data() const
Returns the pointer to the client-side array data object.
bool changed_size(const GeomVertexArrayDataHandle *reader) const
Returns true if the data has changed size since the last time mark_loaded() was called.
void update_modified(UpdateSeq new_modified)
Should be called (usually by a derived class) when the modified counter for this object has changed.
get_data_size_bytes
Returns the number of bytes previously reported for the data object.
This is the data for one array of a GeomVertexData structure.