#include "ShBaseTexture.hpp"
#include "ShProgram.hpp"
#include "ShMatrix.hpp"
#include "ShNibblesImpl.hpp"
Include dependency graph for ShNibbles.hpp:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
namespace | SH |
Functions | |
template<typename T> | |
ShProgram | keep (const std::string &name="") |
Creates a keep nibble. The keep nibble passes through one input of type T named with the given name. | |
template<typename T> | |
ShProgram | dup (const std::string &name="var") |
Creates a dup nibble. The dup nibble makes an extra copy of on input of type T named with the given name. | |
template<typename T> | |
ShProgram | lose (const std::string &name="") |
Creates a lose nibble. The lose nibble discards through one input of type T named with the given name. | |
template<typename T> | |
ShProgram | access (const ShBaseTexture1D< T > &tex, const std::string &tcname="texcoord", const std::string &name="result") |
2D texture lookup nibble Inputs: IN(0) ShTexCoord1f texcoord Outputs: OUT(0) name = tex(tc) | |
template<typename T> | |
ShProgram | access (const ShBaseTexture2D< T > &tex, const std::string &tcname="texcoord", const std::string &name="result") |
2D texture lookup nibble Inputs: IN(0) ShTexCoord2f texcoord Outputs: OUT(0) name = tex(tc) | |
template<typename T> | |
ShProgram | access (const ShBaseTextureRect< T > &tex, const std::string &tcname="texcoord", const std::string &name="result") |
Rect texture lookup nibble Inputs: IN(0) ShTexCoord2f texcoord Outputs: OUT(0) name = tex(tc). | |
template<typename T> | |
ShProgram | access (const ShBaseTexture3D< T > &tex, const std::string &tcname="texcoord", const std::string &name="result") |
3D texture lookup nibble Inputs: IN(0) ShTexCoord3f texcoord Outputs: OUT(0) name = tex(tc) | |
template<typename T> | |
ShProgram | access (const ShBaseTextureCube< T > &tex, const std::string &tcname="texcoord", const std::string &name="result") |
Cube texture lookup nibble Inputs: IN(0) ShTexCoord3f texcoord Outputs: OUT(0) name = tex(tc). | |
template<typename T, int Rows, int Cols, ShBindingType Binding, typename T2> | |
ShProgram | transform (const ShMatrix< Rows, Cols, Binding, T2 > &m, const std::string &name="result") |
transformation nibble Creates a nibble that transforms a variable of type T by a matrix of type ShMatrix<Rows, Cols, Binding, V> Inputs: IN(0) attrib Outputs: OUT(0) T name = m | attrib | |
template<typename T, typename T2> | |
ShProgram | cast (const std::string &name="result") |
Casting nibble Casts from tuple type T to type T2 If T::typesize < T2::typesize, pads with 0 components at end. If T::typesize > T2::typesize, truncates components at end. Inputs: IN(0) T in Outputs: OUT(0) T2 name. | |
template<typename T, typename T2> | |
ShProgram | fillcast (const std::string &name="result") |
Fill-Casting nibble Casts from tuple type T to type T2 If T::typesize < T2::typesize, pads with repeated last component at end. If T::typesize > T2::typesize, truncates components at end. Inputs: IN(0) T in Outputs: OUT(0) T2 name. |
Definition in file ShNibbles.hpp.