|
| | UniformParameter (GpuConstantType type, const String &name, const Semantic &semantic, int index, const Content &content, uint16 variability, size_t size) |
| | Class constructor.
|
| |
| | UniformParameter (GpuProgramParameters::AutoConstantType autoType, float fAutoConstantData, size_t size) |
| | Class constructor.
|
| |
| | UniformParameter (GpuProgramParameters::AutoConstantType autoType, float fAutoConstantData, size_t size, GpuConstantType type) |
| | Class constructor.
|
| |
| | UniformParameter (GpuProgramParameters::AutoConstantType autoType, uint32 nAutoConstantData, size_t size) |
| | Class constructor.
|
| |
| | UniformParameter (GpuProgramParameters::AutoConstantType autoType, uint32 nAutoConstantData, size_t size, GpuConstantType type) |
| | Class constructor.
|
| |
| void | bind (GpuProgramParametersSharedPtr paramsPtr) |
| | Bind this parameter to the corresponding GPU parameter.
|
| |
| uint32 | getAutoConstantIntData () const |
| | Get auto constant int data of this parameter, in case it is auto constant parameter.
|
| |
| float | getAutoConstantRealData () const |
| | Get auto constant real data of this parameter, in case it is auto constant parameter.
|
| |
| GpuProgramParameters::AutoConstantType | getAutoConstantType () const |
| | Return the auto constant type of this parameter.
|
| |
| uint16 | getVariability () const |
| | Return the variability of this parameter.
|
| |
| bool | isAutoConstantIntParameter () const |
| | Return true if this parameter an auto constant with int data type, false otherwise.
|
| |
| bool | isAutoConstantParameter () const |
| | Return true if this parameter is an auto constant parameter, false otherwise.
|
| |
| bool | isAutoConstantRealParameter () const |
| | Return true if this parameter an auto constant with real data type, false otherwise.
|
| |
| bool | isFloat () const |
| | Return true if this parameter is a floating point type, false otherwise.
|
| |
| bool | isSampler () const |
| | Return true if this parameter is a texture sampler type, false otherwise.
|
| |
| void | setGpuParameter (const ColourValue &val) |
| | Update the GPU parameter with the given value.
|
| |
| void | setGpuParameter (const double *val, size_t count, size_t multiple=4) |
| | Update the GPU parameter with the given value.
|
| |
| void | setGpuParameter (const float *val, size_t count, size_t multiple=4) |
| | Update the GPU parameter with the given value.
|
| |
| void | setGpuParameter (const int *val, size_t count, size_t multiple=4) |
| | Update the GPU parameter with the given value.
|
| |
| void | setGpuParameter (const Matrix3 &val) |
| |
| void | setGpuParameter (const Matrix4 &val) |
| | Update the GPU parameter with the given value.
|
| |
| void | setGpuParameter (const Vector2 &val) |
| | Update the GPU parameter with the given value.
|
| |
| void | setGpuParameter (const Vector3 &val) |
| | Update the GPU parameter with the given value.
|
| |
| void | setGpuParameter (const Vector4 &val) |
| | Update the GPU parameter with the given value.
|
| |
| void | setGpuParameter (int val) |
| | Update the GPU parameter with the given value.
|
| |
| void | setGpuParameter (Real val) |
| | Update the GPU parameter with the given value.
|
| |
| void | updateExtraInfo (uint32 data) |
| | light index or array size
|
| |
| | Parameter () |
| |
| | Parameter (GpuConstantType type, const String &name, const Semantic &semantic, int index, const Content &content, size_t size=0) |
| | Class constructor.
|
| |
| virtual | ~Parameter () |
| | Class destructor.
|
| |
| void | _rename (const String &newName, bool onlyLocal=false) |
| | internal function for aliasing to GLSL builtins e.g. gl_Position
|
| |
| Content | getContent () const |
| | Return the content of this parameter.
|
| |
| int | getIndex () const |
| | Get the index of this parameter.
|
| |
| const String & | getName () const |
| | Get the name of this parameter.
|
| |
| const Semantic & | getSemantic () const |
| | Get the semantic of this parameter.
|
| |
| size_t | getSize () const |
| | Returns the number of elements in the parameter (for arrays).
|
| |
| const String & | getStructType () const |
| |
| GpuConstantType | getType () const |
| | Get the type of this parameter.
|
| |
| bool | isArray () const |
| | Returns Whether this parameter is an array.
|
| |
| virtual bool | isConstParameter () const |
| | Returns true if this instance is a ConstParameter otherwise false.
|
| |
| bool | isHighP () const |
| | Is highp needed when using GLSL ES.
|
| |
| bool | isUsed () |
| |
| void | setHighP (bool highP) |
| |
| void | setSize (size_t size) |
| | Sets the number of elements in the parameter (for arrays).
|
| |
| void | setStructType (const String &structType) |
| |
| void | setUsed (bool used) |
| | track whether this was used
|
| |
| virtual String | toString () const |
| | Returns the string representation of this parameter.
|
| |
Uniform parameter class.
Allow fast access to GPU parameter updates.