OGRE 1.12.10
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::GpuNamedConstants Struct Reference

Struct collecting together the information for named constants. More...

#include <OgreGpuProgramParams.h>

Inheritance diagram for Ogre::GpuNamedConstants:

Public Member Functions

 GpuNamedConstants ()
 ~GpuNamedConstants ()
size_t calculateSize (void) const
void generateConstantDefinitionArrayEntries (const String &paramName, const GpuConstantDefinition &baseDef)
void load (DataStreamPtr &stream)
 Loads constant definitions from a stream, compatible with GpuProgram::setManualNamedConstantsFile.
void save (const String &filename) const
 Saves constant definitions to a file, compatible with GpuProgram::setManualNamedConstantsFile.

Static Public Member Functions

static bool getGenerateAllConstantDefinitionArrayEntries ()
static void setGenerateAllConstantDefinitionArrayEntries (bool generateAll)

Public Attributes

size_t doubleBufferSize
 Total size of the double buffer required.
size_t floatBufferSize
 Total size of the float buffer required.
size_t intBufferSize
 Total size of the int buffer required.
GpuConstantDefinitionMap map
 Map of parameter names to GpuConstantDefinition.

Detailed Description

Struct collecting together the information for named constants.

Constructor & Destructor Documentation

◆ GpuNamedConstants()

Ogre::GpuNamedConstants::GpuNamedConstants ( )

◆ ~GpuNamedConstants()

Ogre::GpuNamedConstants::~GpuNamedConstants ( )

Member Function Documentation

◆ generateConstantDefinitionArrayEntries()

void Ogre::GpuNamedConstants::generateConstantDefinitionArrayEntries ( const String & paramName,
const GpuConstantDefinition & baseDef )
Deprecated
obsolete

◆ getGenerateAllConstantDefinitionArrayEntries()

bool Ogre::GpuNamedConstants::getGenerateAllConstantDefinitionArrayEntries ( )
static
Deprecated
obsolete

◆ setGenerateAllConstantDefinitionArrayEntries()

void Ogre::GpuNamedConstants::setGenerateAllConstantDefinitionArrayEntries ( bool generateAll)
static
Deprecated
obsolete

◆ save()

void Ogre::GpuNamedConstants::save ( const String & filename) const

Saves constant definitions to a file, compatible with GpuProgram::setManualNamedConstantsFile.

See also
GpuProgram::setManualNamedConstantsFile

◆ load()

void Ogre::GpuNamedConstants::load ( DataStreamPtr & stream)

Loads constant definitions from a stream, compatible with GpuProgram::setManualNamedConstantsFile.

See also
GpuProgram::setManualNamedConstantsFile

◆ calculateSize()

size_t Ogre::GpuNamedConstants::calculateSize ( void ) const

Member Data Documentation

◆ floatBufferSize

size_t Ogre::GpuNamedConstants::floatBufferSize

Total size of the float buffer required.

◆ doubleBufferSize

size_t Ogre::GpuNamedConstants::doubleBufferSize

Total size of the double buffer required.

◆ intBufferSize

size_t Ogre::GpuNamedConstants::intBufferSize

Total size of the int buffer required.

◆ map

GpuConstantDefinitionMap Ogre::GpuNamedConstants::map

Map of parameter names to GpuConstantDefinition.


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