#include <cgbinding.h>
Public Methods | |
CgPixelBind (void) | |
CgPixelBind (PixelBindingType b, unsigned int handle) | |
bool | Activate (CgBinding *bindings, unsigned int program_handle, void *context1, void *context2) |
Passes the correct value down to the pixel shader program for a single dynamic bind point. |
This class manages a single binding point between a particular instance of a Cg pixel shader fragment and remaps it to a logical VertexBindingType. The application must be able to provide the data that is needed for this bind point. For example the world*view*projection matrix.
|
|
|
|
|
Passes the correct value down to the pixel shader program for a single dynamic bind point.
The application provides the current valid data item for this binding type. If the application returns a null pointer then the value is not updated unless it is an enumeated texture type. The binding types PBT_TEX0 through PBT_TEX7 are reserved for updating texture arguments.
|