This is a special class object that holds a handle to the sampler state object given by the graphics back-end for a particular combination of texture sampling settings.
More...
|
| SamplerContext (const SamplerState &sampler) |
|
virtual TypeHandle | force_init_type () |
|
virtual TypeHandle | get_type () const |
|
virtual void | output (std::ostream &out) const |
|
virtual void | write (std::ostream &out, int indent_level) const |
|
| TypedObject (const TypedObject ©)=default |
|
TypedObject * | as_typed_object () |
| Returns the object, upcast (if necessary) to a TypedObject pointer.
|
|
const TypedObject * | as_typed_object () const |
| Returns the object, upcast (if necessary) to a TypedObject pointer.
|
|
int | get_best_parent_from_Set (const std::set< int > &) const |
|
int | get_type_index () const |
| Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.
|
|
bool | is_exact_type (TypeHandle handle) const |
| Returns true if the current object is the indicated type exactly.
|
|
bool | is_of_type (TypeHandle handle) const |
| Returns true if the current object is or derives from the indicated type.
|
|
TypedObject & | operator= (const TypedObject ©)=default |
|
void | operator delete (void *, void *) |
|
void | operator delete (void *ptr) |
|
void | operator delete[] (void *, void *) |
|
void | operator delete[] (void *ptr) |
|
void * | operator new (size_t size) |
|
void * | operator new (size_t size, void *ptr) |
|
void * | operator new[] (size_t size) |
|
void * | operator new[] (size_t size, void *ptr) |
|
| SimpleLruPage (const SimpleLruPage ©) |
|
| SimpleLruPage (size_t lru_size) |
|
void | dequeue_lru () |
| Removes the page from its SimpleLru.
|
|
void | enqueue_lru (SimpleLru *lru) |
| Adds the page to the LRU for the first time, or marks it recently-accessed if it has already been added.
|
|
virtual void | evict_lru () |
| Evicts the page from the LRU.
|
|
SimpleLru * | get_lru () const |
| Returns the LRU that manages this page, or NULL if it is not currently managed by any LRU.
|
|
size_t | get_lru_size () const |
| Returns the size of this page as reported to the LRU, presumably in bytes.
|
|
void | mark_used_lru () const |
| To be called when the page is used; this will move it to the tail of the SimpleLru queue it is already on.
|
|
void | mark_used_lru (SimpleLru *lru) |
| To be called when the page is used; this will move it to the tail of the specified SimpleLru queue.
|
|
void | operator= (const SimpleLruPage ©) |
|
void | set_lru_size (size_t lru_size) |
| Specifies the size of this page, presumably in bytes, although any unit is possible.
|
|
This is a special class object that holds a handle to the sampler state object given by the graphics back-end for a particular combination of texture sampling settings.
Some graphics back-ends (like OpenGL) use mutable sampler objects, whereas others (Direct3D 10+) use immutable ones. In Panda3D, each unique sampler state has its own SamplerContext, which simplifies the implementation and makes redundant sampler objects impossible.
Definition at line 34 of file samplerContext.h.