#include <ShaderCache.hpp>
◆ ShaderProgramCache()
C3D_API castor3d::ShaderProgramCache::ShaderProgramCache |
( |
Engine & |
engine | ) |
|
|
explicit |
◆ ~ShaderProgramCache()
C3D_API castor3d::ShaderProgramCache::~ShaderProgramCache |
( |
| ) |
|
◆ begin() [1/2]
ShaderProgramPtrArray::iterator castor3d::ShaderProgramCache::begin |
( |
| ) |
|
|
inline |
Retrieves an iterator to the beginning of the shaders list.
- Returns
- The iterator
◆ begin() [2/2]
ShaderProgramPtrArray::const_iterator castor3d::ShaderProgramCache::begin |
( |
| ) |
const |
|
inline |
Retrieves an iterator to the beginning of the shaders list.
- Returns
- The iterator
◆ clear()
C3D_API void castor3d::ShaderProgramCache::clear |
( |
| ) |
|
Destroys all the shaders of the array of shaders to destroy.
◆ end() [1/2]
ShaderProgramPtrArray::iterator castor3d::ShaderProgramCache::end |
( |
| ) |
|
|
inline |
Retrieves an iterator to the end of the shaders list.
- Returns
- The iterator
◆ end() [2/2]
ShaderProgramPtrArray::const_iterator castor3d::ShaderProgramCache::end |
( |
| ) |
const |
|
inline |
Retrieves an iterator to the end of the shaders list.
- Returns
- The iterator
◆ getAutomaticProgram()
Looks for an automatically generated program corresponding to given flags.
- Parameters
-
[in] | renderPass | The pass from which the program code is retrieved. |
[in] | flags | The pipeline flags. |
- Returns
- The found or created program.
◆ getNewProgram()
C3D_API ShaderProgramSPtr castor3d::ShaderProgramCache::getNewProgram |
( |
castor::String const & |
name, |
|
|
bool |
initialise |
|
) |
| |
Creates a new program.
- Parameters
-
[in] | name | The program name. |
[in] | initialise | Tells if we want the program to be initialised. |
- Returns
- The newly created program.
◆ lock()
void castor3d::ShaderProgramCache::lock |
( |
| ) |
const |
|
inline |
Locks the collection mutex.
◆ unlock()
void castor3d::ShaderProgramCache::unlock |
( |
| ) |
const |
|
inline |
Unlocks the collection mutex.
The documentation for this class was generated from the following file: