OGRE
13.6
Object-Oriented Graphics Rendering Engine
|
Information about predefined program constants. More...
#include <OgreGpuProgramParams.h>
Public Member Functions | |
GpuConstantDefinition () | |
bool | isBool () const |
bool | isDouble () const |
bool | isFloat () const |
bool | isInt () const |
bool | isSampler () const |
bool | isSpecialization () const |
bool | isUnsignedInt () const |
Static Public Member Functions | |
static BaseConstantType | getBaseType (GpuConstantType ctype) |
static uint32 | getElementSize (GpuConstantType ctype, bool padToMultiplesOf4) |
Get the number of elements of a given type, including whether to pad the elements into multiples of 4 (e.g. More... | |
static bool | isBool (GpuConstantType c) |
static bool | isDouble (GpuConstantType c) |
static bool | isFloat (GpuConstantType c) |
static bool | isInt (GpuConstantType c) |
static bool | isSampler (GpuConstantType c) |
static bool | isSpecialization (GpuConstantType c) |
static bool | isUnsignedInt (GpuConstantType c) |
Public Attributes | |
uint32 | arraySize |
Length of array. More... | |
GpuConstantType | constType |
Data type. More... | |
uint32 | elementSize |
Number of typed slots per element (some programs pack each array element to float4, some do not) More... | |
size_t | logicalIndex |
Logical index - used to communicate this constant to the rendersystem. More... | |
size_t | physicalIndex |
Physical byte offset in buffer. More... | |
uint16 | variability |
How this parameter varies (bitwise combination of GpuProgramVariability) More... | |
Information about predefined program constants.
|
inline |
|
inline |
References isFloat().
Referenced by Ogre::RTShader::UniformParameter::isFloat(), and isFloat().
|
inlinestatic |
References Ogre::BCT_FLOAT.
|
inline |
References isDouble().
Referenced by isDouble().
|
inlinestatic |
References Ogre::BCT_DOUBLE.
|
inlinestatic |
References Ogre::BCT_INT.
|
inline |
References isUnsignedInt().
Referenced by isUnsignedInt().
|
inlinestatic |
References Ogre::BCT_UINT.
|
inline |
|
inlinestatic |
References Ogre::BCT_BOOL.
|
inline |
References isSampler().
Referenced by Ogre::RTShader::UniformParameter::isSampler(), and isSampler().
|
inlinestatic |
References Ogre::BCT_SAMPLER.
|
inline |
References isSpecialization().
Referenced by isSpecialization().
|
inlinestatic |
References Ogre::BCT_SPECIALIZATION.
|
inlinestatic |
|
inlinestatic |
Get the number of elements of a given type, including whether to pad the elements into multiples of 4 (e.g.
SM1 and D3D does, GLSL doesn't)
References Ogre::GCT_BOOL1, Ogre::GCT_BOOL2, Ogre::GCT_BOOL3, Ogre::GCT_BOOL4, Ogre::GCT_DOUBLE1, Ogre::GCT_DOUBLE2, Ogre::GCT_DOUBLE3, Ogre::GCT_DOUBLE4, Ogre::GCT_FLOAT1, Ogre::GCT_FLOAT2, Ogre::GCT_FLOAT3, Ogre::GCT_FLOAT4, Ogre::GCT_INT1, Ogre::GCT_INT2, Ogre::GCT_INT3, Ogre::GCT_INT4, Ogre::GCT_MATRIX_2X2, Ogre::GCT_MATRIX_2X3, Ogre::GCT_MATRIX_2X4, Ogre::GCT_MATRIX_3X2, Ogre::GCT_MATRIX_3X3, Ogre::GCT_MATRIX_3X4, Ogre::GCT_MATRIX_4X2, Ogre::GCT_MATRIX_4X3, Ogre::GCT_MATRIX_4X4, Ogre::GCT_MATRIX_DOUBLE_2X2, Ogre::GCT_MATRIX_DOUBLE_2X3, Ogre::GCT_MATRIX_DOUBLE_2X4, Ogre::GCT_MATRIX_DOUBLE_3X2, Ogre::GCT_MATRIX_DOUBLE_3X3, Ogre::GCT_MATRIX_DOUBLE_3X4, Ogre::GCT_MATRIX_DOUBLE_4X2, Ogre::GCT_MATRIX_DOUBLE_4X3, Ogre::GCT_MATRIX_DOUBLE_4X4, Ogre::GCT_SAMPLER1D, Ogre::GCT_SAMPLER1DSHADOW, Ogre::GCT_SAMPLER2D, Ogre::GCT_SAMPLER2DARRAY, Ogre::GCT_SAMPLER2DSHADOW, Ogre::GCT_SAMPLER3D, Ogre::GCT_SAMPLERCUBE, Ogre::GCT_UINT1, Ogre::GCT_UINT2, Ogre::GCT_UINT3, and Ogre::GCT_UINT4.
size_t Ogre::GpuConstantDefinition::physicalIndex |
Physical byte offset in buffer.
size_t Ogre::GpuConstantDefinition::logicalIndex |
Logical index - used to communicate this constant to the rendersystem.
uint32 Ogre::GpuConstantDefinition::elementSize |
Number of typed slots per element (some programs pack each array element to float4, some do not)
uint32 Ogre::GpuConstantDefinition::arraySize |
Length of array.
GpuConstantType Ogre::GpuConstantDefinition::constType |
Data type.
|
mutable |
How this parameter varies (bitwise combination of GpuProgramVariability)