Ogre::RTShader::ShaderGenerator::SGTechnique Class Reference

Shader generator technique wrapper class. More...

#include <OgreShaderGenerator.h>

Inheritance diagram for Ogre::RTShader::ShaderGenerator::SGTechnique:

Public Member Functions

 SGTechnique (SGMaterial *parent, Technique *srcTechnique, const String &dstTechniqueSchemeName)
 ~SGTechnique ()
void acquirePrograms ()
 Acquire the CPU/GPU programs for this technique.
void buildTargetRenderState ()
 Build the render state.
bool getBuildDestinationTechnique () const
 Tells if the destination technique should be build.
TechniquegetDestinationTechnique ()
 Get the destination technique.
const StringgetDestinationTechniqueSchemeName () const
 Get the destination technique scheme name.
const SGMaterialgetParent () const
 Get the parent SGMaterial.
RenderStategetRenderState (unsigned short passIndex)
 Get render state of specific pass.
TechniquegetSourceTechnique ()
 Get the source technique.
bool hasRenderState (unsigned short passIndex)
 Tells if a custom render state exists for the given pass.
void operator delete (void *ptr)
void operator delete (void *ptr, const char *, int, const char *)
void operator delete (void *ptr, void *)
void operator delete[] (void *ptr)
void operator delete[] (void *ptr, const char *, int, const char *)
void * operator new (size_t sz)
void * operator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info
void * operator new (size_t sz, void *ptr)
 placement operator new
void * operator new[] (size_t sz)
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info
void releasePrograms ()
 Release the CPU/GPU programs of this technique.
void setBuildDestinationTechnique (bool buildTechnique)
 Tells the technique that it needs to generate shader code.

Static Public Attributes

static String UserKey

Protected Member Functions

void createSGPasses ()
 Create the passes entries.
void destroySGPasses ()
 Destroy the passes entries.

Protected Attributes

bool mBuildDstTechnique
RenderStateList mCustomRenderStates
TechniquemDstTechnique
String mDstTechniqueSchemeName
SGMaterialmParent
SGPassList mPassEntries
TechniquemSrcTechnique

Detailed Description

Shader generator technique wrapper class.

Definition at line 564 of file OgreShaderGenerator.h.

Constructor & Destructor Documentation

◆ SGTechnique()

Ogre::RTShader::ShaderGenerator::SGTechnique::SGTechnique ( SGMaterial * parent,
Technique * srcTechnique,
const String & dstTechniqueSchemeName )

◆ ~SGTechnique()

Ogre::RTShader::ShaderGenerator::SGTechnique::~SGTechnique ( )

Member Function Documentation

◆ acquirePrograms()

void Ogre::RTShader::ShaderGenerator::SGTechnique::acquirePrograms ( )

Acquire the CPU/GPU programs for this technique.

◆ buildTargetRenderState()

void Ogre::RTShader::ShaderGenerator::SGTechnique::buildTargetRenderState ( )

Build the render state.

◆ createSGPasses()

void Ogre::RTShader::ShaderGenerator::SGTechnique::createSGPasses ( )
protected

Create the passes entries.

◆ destroySGPasses()

void Ogre::RTShader::ShaderGenerator::SGTechnique::destroySGPasses ( )
protected

Destroy the passes entries.

◆ getBuildDestinationTechnique()

bool Ogre::RTShader::ShaderGenerator::SGTechnique::getBuildDestinationTechnique ( ) const

Tells if the destination technique should be build.

Definition at line 595 of file OgreShaderGenerator.h.

References mBuildDstTechnique.

◆ getDestinationTechnique()

Technique * Ogre::RTShader::ShaderGenerator::SGTechnique::getDestinationTechnique ( )

Get the destination technique.

Definition at line 577 of file OgreShaderGenerator.h.

References mDstTechnique.

◆ getDestinationTechniqueSchemeName()

const String & Ogre::RTShader::ShaderGenerator::SGTechnique::getDestinationTechniqueSchemeName ( ) const

Get the destination technique scheme name.

Definition at line 580 of file OgreShaderGenerator.h.

References mDstTechniqueSchemeName.

◆ getParent()

const SGMaterial * Ogre::RTShader::ShaderGenerator::SGTechnique::getParent ( ) const

Get the parent SGMaterial.

Definition at line 571 of file OgreShaderGenerator.h.

References mParent.

◆ getRenderState()

RenderState * Ogre::RTShader::ShaderGenerator::SGTechnique::getRenderState ( unsigned short passIndex)

Get render state of specific pass.

Parameters
passIndexThe pass index.

◆ getSourceTechnique()

Technique * Ogre::RTShader::ShaderGenerator::SGTechnique::getSourceTechnique ( )

Get the source technique.

Definition at line 574 of file OgreShaderGenerator.h.

References mSrcTechnique.

◆ hasRenderState()

bool Ogre::RTShader::ShaderGenerator::SGTechnique::hasRenderState ( unsigned short passIndex)

Tells if a custom render state exists for the given pass.

◆ operator delete() [1/3]

void Ogre::AllocatedObject< GeneralAllocPolicy >::operator delete ( void * ptr)
inherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

◆ operator delete() [2/3]

void Ogre::AllocatedObject< GeneralAllocPolicy >::operator delete ( void * ptr,
const char * ,
int ,
const char *  )
inherited

Definition at line 108 of file OgreMemoryAllocatedObject.h.

◆ operator delete() [3/3]

void Ogre::AllocatedObject< GeneralAllocPolicy >::operator delete ( void * ptr,
void *  )
inherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

◆ operator delete[]() [1/2]

void Ogre::AllocatedObject< GeneralAllocPolicy >::operator delete[] ( void * ptr)
inherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

◆ operator delete[]() [2/2]

void Ogre::AllocatedObject< GeneralAllocPolicy >::operator delete[] ( void * ptr,
const char * ,
int ,
const char *  )
inherited

Definition at line 119 of file OgreMemoryAllocatedObject.h.

◆ operator new() [1/3]

void * Ogre::AllocatedObject< GeneralAllocPolicy >::operator new ( size_t sz)
inherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

◆ operator new() [2/3]

void * Ogre::AllocatedObject< GeneralAllocPolicy >::operator new ( size_t sz,
const char * file,
int line,
const char * func )
inherited

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

◆ operator new() [3/3]

void * Ogre::AllocatedObject< GeneralAllocPolicy >::operator new ( size_t sz,
void * ptr )
inherited

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

◆ operator new[]() [1/2]

void * Ogre::AllocatedObject< GeneralAllocPolicy >::operator new[] ( size_t sz)
inherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

◆ operator new[]() [2/2]

void * Ogre::AllocatedObject< GeneralAllocPolicy >::operator new[] ( size_t sz,
const char * file,
int line,
const char * func )
inherited

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

◆ releasePrograms()

void Ogre::RTShader::ShaderGenerator::SGTechnique::releasePrograms ( )

Release the CPU/GPU programs of this technique.

◆ setBuildDestinationTechnique()

void Ogre::RTShader::ShaderGenerator::SGTechnique::setBuildDestinationTechnique ( bool buildTechnique)

Tells the technique that it needs to generate shader code.

Definition at line 592 of file OgreShaderGenerator.h.

References mBuildDstTechnique.

Member Data Documentation

◆ mBuildDstTechnique

bool Ogre::RTShader::ShaderGenerator::SGTechnique::mBuildDstTechnique
protected

◆ mCustomRenderStates

RenderStateList Ogre::RTShader::ShaderGenerator::SGTechnique::mCustomRenderStates
protected

Definition at line 625 of file OgreShaderGenerator.h.

◆ mDstTechnique

Technique* Ogre::RTShader::ShaderGenerator::SGTechnique::mDstTechnique
protected

Definition at line 621 of file OgreShaderGenerator.h.

Referenced by getDestinationTechnique().

◆ mDstTechniqueSchemeName

String Ogre::RTShader::ShaderGenerator::SGTechnique::mDstTechniqueSchemeName
protected

Definition at line 629 of file OgreShaderGenerator.h.

Referenced by getDestinationTechniqueSchemeName().

◆ mParent

SGMaterial* Ogre::RTShader::ShaderGenerator::SGTechnique::mParent
protected

Definition at line 617 of file OgreShaderGenerator.h.

Referenced by getParent().

◆ mPassEntries

SGPassList Ogre::RTShader::ShaderGenerator::SGTechnique::mPassEntries
protected

Definition at line 623 of file OgreShaderGenerator.h.

◆ mSrcTechnique

Technique* Ogre::RTShader::ShaderGenerator::SGTechnique::mSrcTechnique
protected

Definition at line 619 of file OgreShaderGenerator.h.

Referenced by getSourceTechnique().

◆ UserKey

String Ogre::RTShader::ShaderGenerator::SGTechnique::UserKey
static

Definition at line 605 of file OgreShaderGenerator.h.


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

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.