84 INLINE
bool PreparedGraphicsObjects::BufferCacheKey::
85 operator < (
const PreparedGraphicsObjects::BufferCacheKey &other)
const {
86 if (_data_size_bytes != other._data_size_bytes) {
87 return _data_size_bytes < other._data_size_bytes;
89 return (
int)_usage_hint < (int)other._usage_hint;
95 INLINE
bool PreparedGraphicsObjects::BufferCacheKey::
96 operator == (
const PreparedGraphicsObjects::BufferCacheKey &other)
const {
97 return (_data_size_bytes == other._data_size_bytes &&
98 _usage_hint == other._usage_hint);
104 INLINE
bool PreparedGraphicsObjects::BufferCacheKey::
105 operator != (
const PreparedGraphicsObjects::BufferCacheKey &other)
const {
106 return !operator == (other);
int release_all_shaders()
Releases all shaders at once.
int get_num_queued_vertex_buffers() const
Returns the number of vertex buffers that have been enqueued to be prepared on this GSG.
size_t get_graphics_memory_limit() const
Returns the artificial cap on graphics memory that will be imposed on this GSG.
const std::string & get_name() const
Returns the name of the PreparedGraphicsObjects structure.
int get_num_queued_geoms() const
Returns the number of geoms that have been enqueued to be prepared on this GSG.
int release_all_vertex_buffers()
Releases all datas at once.
int get_num_prepared_textures() const
Returns the number of textures that have already been prepared on this GSG.
int get_num_prepared_vertex_buffers() const
Returns the number of vertex buffers that have already been prepared on this GSG.
void set_levels()
Resets the pstats levels to their appropriate values, possibly in the middle of a frame.
int get_num_queued_shader_buffers() const
Returns the number of index buffers that have been enqueued to be prepared on this GSG.
int get_num_queued_textures() const
Returns the number of textures that have been enqueued to be prepared on this GSG.
int get_num_prepared_index_buffers() const
Returns the number of index buffers that have already been prepared on this GSG.
int get_num_queued_index_buffers() const
Returns the number of index buffers that have been enqueued to be prepared on this GSG.
int get_num_prepared_shader_buffers() const
Returns the number of index buffers that have already been prepared on this GSG.
size_t get_max_size() const
Returns the max size of all objects that are allowed to be active on the LRU.
int get_num_queued_samplers() const
Returns the number of samplers that have been enqueued to be prepared on this GSG.
int get_num_queued_shaders() const
Returns the number of shaders that have been enqueued to be prepared on this GSG.
int release_all_textures()
Releases all textures at once.
int release_all_geoms()
Releases all geoms at once.
int get_num_prepared_shaders() const
Returns the number of shaders that have already been prepared on this GSG.
int get_num_queued() const
Returns the number of objects of any kind that have been enqueued to be prepared on this GSG.
int get_num_prepared() const
Returns the number of objects of any kind that have already been prepared on this GSG.
int get_num_prepared_geoms() const
Returns the number of geoms that have already been prepared on this GSG.
int release_all_samplers()
Releases all samplers at once.
int get_num_prepared_samplers() const
Returns the number of samplers that have already been prepared on this GSG.
int release_all_index_buffers()
Releases all datas at once.
void release_all()
Releases all prepared objects of all kinds at once.