Public Member Functions | Static Public Member Functions | Public Attributes
Ogre::GpuConstantDefinition Struct Reference

Information about predefined program constants. More...

#include <OgreGpuProgramParams.h>

List of all members.

Public Member Functions

bool isFloat () const
bool isSampler () const
 GpuConstantDefinition ()

Static Public Member Functions

static bool isFloat (GpuConstantType c)
static bool isSampler (GpuConstantType c)
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.

Public Attributes

GpuConstantType constType
 Data type.
size_t physicalIndex
 Physical start index in buffer (either float or int buffer)
size_t logicalIndex
 Logical index - used to communicate this constant to the rendersystem.
size_t elementSize
 Number of raw buffer slots per element (some programs pack each array element to float4, some do not)
size_t arraySize
 Length of array.
uint16 variability
 How this parameter varies (bitwise combination of GpuProgramVariability)

Detailed Description

Information about predefined program constants.

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

Definition at line 104 of file OgreGpuProgramParams.h.


Constructor & Destructor Documentation

Ogre::GpuConstantDefinition::GpuConstantDefinition ( )

Definition at line 253 of file OgreGpuProgramParams.h.


Member Function Documentation

static size_t Ogre::GpuConstantDefinition::getElementSize ( GpuConstantType  ctype,
bool  padToMultiplesOf4 
) [static]
static bool Ogre::GpuConstantDefinition::isFloat ( GpuConstantType  c) [static]
bool Ogre::GpuConstantDefinition::isFloat ( ) const

Definition at line 120 of file OgreGpuProgramParams.h.

bool Ogre::GpuConstantDefinition::isSampler ( ) const

Definition at line 146 of file OgreGpuProgramParams.h.

static bool Ogre::GpuConstantDefinition::isSampler ( GpuConstantType  c) [static]

Member Data Documentation

Length of array.

Definition at line 116 of file OgreGpuProgramParams.h.

Data type.

Definition at line 107 of file OgreGpuProgramParams.h.

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

Definition at line 114 of file OgreGpuProgramParams.h.

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

Definition at line 111 of file OgreGpuProgramParams.h.

Physical start index in buffer (either float or int buffer)

Definition at line 109 of file OgreGpuProgramParams.h.

How this parameter varies (bitwise combination of GpuProgramVariability)

Definition at line 118 of file OgreGpuProgramParams.h.


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

Copyright © 2008 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Sat Jan 14 2012 18:40:47