OGRE  13.6
Object-Oriented Graphics Rendering Engine
Ogre::RTShader::FunctionStageRef Class Reference

represents a FFPShaderStage, part of a Function More...

#include <OgreShaderFunction.h>

Public Member Functions

void add (const In &arg0, const In &arg1, const Out &dst) const
 dst = arg0 + arg1; More...
 
void assign (const In &from, const Out &to) const
 to = from; More...
 
void assign (const std::vector< Operand > &params) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void binaryOp (char op, const std::vector< Operand > &params) const
 dst = arg0 OP arg1; More...
 
void callBuiltin (const char *name, const In &arg, const Out &ret) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void callBuiltin (const char *name, const In &arg0, const In &arg1, const In &arg2, const Out &ret) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void callBuiltin (const char *name, const In &arg0, const In &arg1, const Out &ret) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void callBuiltin (const char *name, const std::vector< Operand > &params) const
 shorthand for "dst = BUILTIN(args);" More...
 
void callFunction (const char *name, const In &arg, const Out &ret) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void callFunction (const char *name, const In &arg0, const In &arg1, const Out &ret) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void callFunction (const char *name, const InOut &inout) const
 call a library function More...
 
void callFunction (const char *name, const std::vector< Operand > &params) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void div (const In &arg0, const In &arg1, const Out &dst) const
 dst = arg0 / arg1; More...
 
void mul (const In &arg0, const In &arg1, const Out &dst) const
 dst = arg0 * arg1; More...
 
void sampleTexture (const In &sampler, const In &texcoord, const Out &dst) const
 dst = texture(sampler, texcoord); More...
 
void sampleTexture (const std::vector< Operand > &params) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void sub (const In &arg0, const In &arg1, const Out &dst) const
 dst = arg0 - arg1; More...
 

Detailed Description

represents a FFPShaderStage, part of a Function

Member Function Documentation

◆ callFunction() [1/4]

void Ogre::RTShader::FunctionStageRef::callFunction ( const char *  name,
const InOut inout 
) const

call a library function

Parameters
namethe function name
inoutfunction argument

◆ callFunction() [2/4]

void Ogre::RTShader::FunctionStageRef::callFunction ( const char *  name,
const std::vector< Operand > &  params 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ callFunction() [3/4]

void Ogre::RTShader::FunctionStageRef::callFunction ( const char *  name,
const In arg,
const Out ret 
) const
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

References callFunction().

Referenced by callFunction().

◆ callFunction() [4/4]

void Ogre::RTShader::FunctionStageRef::callFunction ( const char *  name,
const In arg0,
const In arg1,
const Out ret 
) const
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ sampleTexture() [1/2]

void Ogre::RTShader::FunctionStageRef::sampleTexture ( const In sampler,
const In texcoord,
const Out dst 
) const
inline

dst = texture(sampler, texcoord);

◆ sampleTexture() [2/2]

void Ogre::RTShader::FunctionStageRef::sampleTexture ( const std::vector< Operand > &  params) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ assign() [1/2]

void Ogre::RTShader::FunctionStageRef::assign ( const In from,
const Out to 
) const
inline

to = from;

References assign().

Referenced by assign().

◆ assign() [2/2]

void Ogre::RTShader::FunctionStageRef::assign ( const std::vector< Operand > &  params) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ mul()

void Ogre::RTShader::FunctionStageRef::mul ( const In arg0,
const In arg1,
const Out dst 
) const
inline

dst = arg0 * arg1;

◆ div()

void Ogre::RTShader::FunctionStageRef::div ( const In arg0,
const In arg1,
const Out dst 
) const
inline

dst = arg0 / arg1;

◆ sub()

void Ogre::RTShader::FunctionStageRef::sub ( const In arg0,
const In arg1,
const Out dst 
) const
inline

dst = arg0 - arg1;

◆ add()

void Ogre::RTShader::FunctionStageRef::add ( const In arg0,
const In arg1,
const Out dst 
) const
inline

dst = arg0 + arg1;

◆ binaryOp()

void Ogre::RTShader::FunctionStageRef::binaryOp ( char  op,
const std::vector< Operand > &  params 
) const

dst = arg0 OP arg1;

◆ callBuiltin() [1/4]

void Ogre::RTShader::FunctionStageRef::callBuiltin ( const char *  name,
const std::vector< Operand > &  params 
) const

shorthand for "dst = BUILTIN(args);"

◆ callBuiltin() [2/4]

void Ogre::RTShader::FunctionStageRef::callBuiltin ( const char *  name,
const In arg,
const Out ret 
) const
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

References callBuiltin().

Referenced by callBuiltin().

◆ callBuiltin() [3/4]

void Ogre::RTShader::FunctionStageRef::callBuiltin ( const char *  name,
const In arg0,
const In arg1,
const Out ret 
) const
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ callBuiltin() [4/4]

void Ogre::RTShader::FunctionStageRef::callBuiltin ( const char *  name,
const In arg0,
const In arg1,
const In arg2,
const Out ret 
) const
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.


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