OGRE-Next  4.0.0unstable
Object-Oriented Graphics Rendering Engine
Ogre::GpuConstantDefinition Struct Reference

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 isSubroutine () const
 
bool isUnsignedInt () const
 

Static Public Member Functions

static BaseConstantType getBaseType (GpuConstantType ctype)
 
static size_t getElementSize (GpuConstantType ctype, bool padToMultiplesOf4)
 Get the element size 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 isSubroutine (GpuConstantType c)
 
static bool isUnsignedInt (GpuConstantType c)
 

Public Attributes

size_t arraySize
 Length of array. More...
 
GpuConstantType constType
 Data type. More...
 
size_t elementSize
 Number of raw buffer 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 start index in buffer (either float, double, int, or uint buffer) More...
 
uint16 variability
 How this parameter varies (bitwise combination of GpuProgramVariability) More...
 

Detailed Description

Information about predefined program constants.

Note
Only available for high-level programs but is referenced generically by GpuProgramParameters.

Constructor & Destructor Documentation

◆ GpuConstantDefinition()

Ogre::GpuConstantDefinition::GpuConstantDefinition ( )
inline

Member Function Documentation

◆ getBaseType()

static BaseConstantType Ogre::GpuConstantDefinition::getBaseType ( GpuConstantType  ctype)
inlinestatic

◆ getElementSize()

◆ isBool() [1/2]

bool Ogre::GpuConstantDefinition::isBool ( ) const
inline

References isBool().

Referenced by isBool().

◆ isBool() [2/2]

static bool Ogre::GpuConstantDefinition::isBool ( GpuConstantType  c)
inlinestatic

◆ isDouble() [1/2]

bool Ogre::GpuConstantDefinition::isDouble ( ) const
inline

References isDouble().

Referenced by isDouble().

◆ isDouble() [2/2]

◆ isFloat() [1/2]

bool Ogre::GpuConstantDefinition::isFloat ( ) const
inline

References isFloat().

Referenced by isFloat().

◆ isFloat() [2/2]

◆ isInt() [1/2]

bool Ogre::GpuConstantDefinition::isInt ( ) const
inline

References isInt().

Referenced by isInt().

◆ isInt() [2/2]

static bool Ogre::GpuConstantDefinition::isInt ( GpuConstantType  c)
inlinestatic

◆ isSampler() [1/2]

bool Ogre::GpuConstantDefinition::isSampler ( ) const
inline

References isSampler().

Referenced by isSampler().

◆ isSampler() [2/2]

◆ isSubroutine() [1/2]

bool Ogre::GpuConstantDefinition::isSubroutine ( ) const
inline

References isSubroutine().

Referenced by isSubroutine().

◆ isSubroutine() [2/2]

static bool Ogre::GpuConstantDefinition::isSubroutine ( GpuConstantType  c)
inlinestatic

References Ogre::GCT_SUBROUTINE.

◆ isUnsignedInt() [1/2]

bool Ogre::GpuConstantDefinition::isUnsignedInt ( ) const
inline

References isUnsignedInt().

Referenced by isUnsignedInt().

◆ isUnsignedInt() [2/2]

static bool Ogre::GpuConstantDefinition::isUnsignedInt ( GpuConstantType  c)
inlinestatic

Member Data Documentation

◆ arraySize

size_t Ogre::GpuConstantDefinition::arraySize

Length of array.

◆ constType

GpuConstantType Ogre::GpuConstantDefinition::constType

Data type.

◆ elementSize

size_t Ogre::GpuConstantDefinition::elementSize

Number of raw buffer slots per element (some programs pack each array element to float4, some do not)

◆ logicalIndex

size_t Ogre::GpuConstantDefinition::logicalIndex

Logical index - used to communicate this constant to the rendersystem.

◆ physicalIndex

size_t Ogre::GpuConstantDefinition::physicalIndex

Physical start index in buffer (either float, double, int, or uint buffer)

◆ variability

uint16 Ogre::GpuConstantDefinition::variability
mutable

How this parameter varies (bitwise combination of GpuProgramVariability)


The documentation for this struct was generated from the following file: