Functions | |
| template<int M, int N, typename T> ShGeneric< M, T > | SH::cast (const ShGeneric< N, T > &a) |
| Casting. | |
| template<int M> ShGeneric< M, float > | cast (float a) |
| template<int M, int N, typename T> ShGeneric< M, T > | SH::fillcast (const ShGeneric< N, T > &a) |
| Fill Casting. | |
| template<int M> ShGeneric< M, float > | fillcast (float a) |
| template<int M, int N, typename T> ShGeneric< M+N, T > | SH::join (const ShGeneric< M, T > &a, const ShGeneric< N, T > &b) |
| Join two tuples Creates an M+N tuple with components of a first then b. | |
| template<int N, typename T> void | SH::discard (const ShGeneric< N, T > &c) |
| Fragment discard. | |
| template<int N, typename T> void | SH::kill (const ShGeneric< N, T > &c) |
| Fragment killing. | |
| template<typename T> ShProgram | SH::freeze (const ShProgram &p, const T &uniform) |
| Uniform freezing. | |
|
||||||||||
|
Casting. Casts ShGeneric<N, T> to ShGeneric<M, T>. If M > N, pads remaining components with 0s (on right). Otherwise, discards extra components. Definition at line 38 of file ShLibMiscImpl.hpp. |
|
||||||||||
|
Fragment discard. Only for fragment programs. Discards the current fragment if any(c) > 0. Definition at line 94 of file ShLibMiscImpl.hpp. Referenced by SH::kill(). |
|
||||||||||
|
Fill Casting. Casts ShGeneric<N, T> to ShGeneric<M, T>. If M > N, copies last component to fill extra slots. Otherwise, discards extra components. Definition at line 65 of file ShLibMiscImpl.hpp. |
|
||||||||||||||||
|
Uniform freezing. Replace uses of the given uniform in the given program with a constant containing its current value, and return the resulting program. Definition at line 107 of file ShLibMiscImpl.hpp. |
|
||||||||||
|
Fragment killing.
Definition at line 101 of file ShLibMiscImpl.hpp. References SH::discard(). |
1.3.7