A group of manually updated parameters that are shared between many parameter sets.
More...
|
| GpuSharedParameters (const String &name) |
|
const HardwareBufferPtr & | _getHardwareBuffer () const |
| Internal method that the RenderSystem might use to store optional data. More...
|
|
const Any & | _getRenderSystemData () const |
|
void | _markClean () |
| Mark the shared set as being clean (values successfully updated by the render system). More...
|
|
void | _markDirty () |
| Mark the shared set as being dirty (values modified and not yet updated in render system). More...
|
|
void | _setHardwareBuffer (const HardwareBufferPtr &data) |
| Internal method that the RenderSystem might use to store optional data. More...
|
|
void | _setRenderSystemData (const Any &data) const |
|
void | _upload () const |
| upload parameter data to GPU memory. Must have a HardwareBuffer More...
|
|
void | addConstantDefinition (const String &name, GpuConstantType constType, size_t arraySize=1) |
| Add a new constant definition to this shared set of parameters. More...
|
|
size_t | calculateSize (void) const |
| Calculate the expected size of the shared parameter buffer based on constant definition data types. More...
|
|
void | download () |
| download data from GPU memory. Must have a writable HardwareBuffer More...
|
|
const GpuConstantDefinition & | getConstantDefinition (const String &name) const |
| Get a specific GpuConstantDefinition for a named parameter. More...
|
|
GpuConstantDefinitionIterator | getConstantDefinitionIterator (void) const |
|
const GpuNamedConstants & | getConstantDefinitions () const |
| Get the full list of GpuConstantDefinition instances. More...
|
|
const DoubleConstantList & | getDoubleConstantList () const |
| Get a reference to the list of double constants. More...
|
|
double * | getDoublePointer (size_t pos) |
| Get a pointer to the 'nth' item in the double buffer. More...
|
|
const double * | getDoublePointer (size_t pos) const |
| Get a pointer to the 'nth' item in the double buffer. More...
|
|
const FloatConstantList & | getFloatConstantList () const |
| Get a reference to the list of float constants. More...
|
|
float * | getFloatPointer (size_t pos) |
| Get a pointer to the 'nth' item in the float buffer. More...
|
|
const float * | getFloatPointer (size_t pos) const |
| Get a pointer to the 'nth' item in the float buffer. More...
|
|
size_t | getFrameLastUpdated () const |
| Get the frame in which this shared parameter set was last updated. More...
|
|
const IntConstantList & | getIntConstantList () const |
| Get a reference to the list of int constants. More...
|
|
int * | getIntPointer (size_t pos) |
| Get a pointer to the 'nth' item in the int buffer. More...
|
|
const int * | getIntPointer (size_t pos) const |
| Get a pointer to the 'nth' item in the int buffer. More...
|
|
const String & | getName () |
| Get the name of this shared parameter set. More...
|
|
uint * | getUnsignedIntPointer (size_t pos) |
| Get a pointer to the 'nth' item in the uint buffer. More...
|
|
const uint * | getUnsignedIntPointer (size_t pos) const |
| Get a pointer to the 'nth' item in the uint buffer. More...
|
|
unsigned long | getVersion () const |
| Get the version number of this shared parameter set, can be used to identify when changes have occurred. More...
|
|
bool | isDirty () const |
| True if this parameter set is dirty (values have been modified, but the render system has not updated them yet). More...
|
|
void | removeAllConstantDefinitions () |
| Remove a constant definition from this shared set of parameters. More...
|
|
void | removeConstantDefinition (const String &name) |
|
void | setNamedConstant (const String &name, const ColourValue &colour) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
void | setNamedConstant (const String &name, const double *val, size_t count) |
|
void | setNamedConstant (const String &name, const float *val, size_t count) |
|
void | setNamedConstant (const String &name, const int *val, size_t count) |
|
void | setNamedConstant (const String &name, const Matrix4 &m) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
void | setNamedConstant (const String &name, const Matrix4 *m, size_t numEntries) |
| Sets a list of Matrix4 parameters to the program. More...
|
|
void | setNamedConstant (const String &name, const uint *val, size_t count) |
|
template<int dims, typename T > |
void | setNamedConstant (const String &name, const Vector< dims, T > &vec) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
|
|
template<typename T > |
void | setNamedConstant (const String &name, T val) |
| Sets a single value constant parameter to the program. More...
|
|
A group of manually updated parameters that are shared between many parameter sets.
- Parameters in a shared set are matched up with instances in a GpuProgramParameters structure by matching names. It is up to you to define the named parameters that a shared set contains, and ensuring the definition matches.
- Note
- Shared parameter sets can be named, and looked up using the GpuProgramManager.