21 INLINE VertexBufferContext::
48 nassertr(reader->get_object() == _data,
false);
60 nassertr(reader->get_object() == _data,
false);
61 return _usage_hint != reader->get_usage_hint();
72 nassertr(reader->get_object() == _data,
false);
97 nassertv(reader->get_object() == _data);
100 _usage_hint = reader->get_usage_hint();
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...
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, this updates the internal flags for changed_size() and modified().
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...
size_t get_data_size_bytes() const
Returns the number of bytes previously reported for the data object.
void set_resident(bool flag)
Changes the resident flag associated with this object.
One atomic piece that may be managed by a AdaptiveLru chain.
UpdateSeq get_modified() const
Returns the UpdateSeq that was recorded the last time mark_loaded() was called.
static UpdateSeq old()
Returns an UpdateSeq in the 'old' state.
void update_modified(UpdateSeq new_modified)
Should be called (usually by a derived class) when the modified counter for this object has changed...
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.
This is the data for one array of a GeomVertexData structure.
bool was_modified(const GeomVertexArrayDataHandle *reader) const
Returns true if the data has been modified since the last time mark_loaded() was called.