|
GraphicsDriverAPI | EffectInstanceHandle () |
|
GraphicsDriverAPI | EffectInstanceHandle (const EffectInstanceHandle &from) |
|
GraphicsDriverAPI EffectInstanceHandle & | operator= (const EffectInstanceHandle &from) |
|
virtual GraphicsDriverAPI | ~EffectInstanceHandle () |
|
GraphicsDriverAPI EffectHandle | ParentEffect () |
|
GraphicsDriverAPI void | Apply (DrawContext &dc) |
|
virtual GraphicsDriverAPI const MaterialRequiredStreams & | GetRequiredStreams () const |
| Returns the vertex format of this effect instance. More...
|
|
GraphicsDriverAPI void | SetIntParameter (const MSTR ¶meterName, int value) |
| Sets int parameter. More...
|
|
GraphicsDriverAPI void | SetIntParameter (int index, int value) |
| Sets int parameter. More...
|
|
GraphicsDriverAPI void | SetIntParameter (const MSTR ¶meterName, IPoint2 &value) |
| Sets int2 parameter. More...
|
|
GraphicsDriverAPI void | SetIntParameter (int index, IPoint2 &value) |
| Sets int2 parameter. More...
|
|
GraphicsDriverAPI void | SetIntParameter (const MSTR ¶meterName, IPoint3 &value) |
| Sets int3 parameter. More...
|
|
GraphicsDriverAPI void | SetIntParameter (int index, IPoint3 &value) |
| Sets int3 parameter. More...
|
|
GraphicsDriverAPI void | SetIntArrayParameter (const MSTR ¶meterName, const int *value, unsigned int count) |
| Sets int array parameter. More...
|
|
GraphicsDriverAPI void | SetIntArrayParameter (int index, const int *value, unsigned int count) |
| Sets int array parameter. More...
|
|
GraphicsDriverAPI void | SetIntArrayParameter (const MSTR ¶meterName, const IPoint2 *value, unsigned int count) |
| Sets int2 array parameter. More...
|
|
GraphicsDriverAPI void | SetIntArrayParameter (int index, const IPoint2 *value, unsigned int count) |
| Sets int2 array parameter. More...
|
|
GraphicsDriverAPI void | SetIntArrayParameter (int index, const IPoint3 *value, unsigned int count) |
| Sets int3 array parameter. More...
|
|
GraphicsDriverAPI void | SetIntArrayParameter (const MSTR ¶meterName, const IPoint3 *value, unsigned int count) |
| Sets int3 array parameter. More...
|
|
GraphicsDriverAPI void | SetUIntParameter (const MSTR ¶meterName, unsigned int value) |
| Sets uint parameter. More...
|
|
GraphicsDriverAPI void | SetUIntParameter (int index, unsigned int value) |
| Sets uint parameter. More...
|
|
GraphicsDriverAPI void | SetUIntArrayParameter (const MSTR ¶meterName, const unsigned int *value, unsigned int count) |
| Sets uint array parameter. More...
|
|
GraphicsDriverAPI void | SetUIntArrayParameter (int index, const unsigned int *value, unsigned int count) |
| Sets uint array parameter. More...
|
|
GraphicsDriverAPI void | SetFloatParameter (const MSTR ¶meterName, float value) |
| Sets float parameter. More...
|
|
GraphicsDriverAPI void | SetFloatParameter (int index, float value) |
| Sets float parameter. More...
|
|
GraphicsDriverAPI void | SetFloatParameter (const MSTR ¶meterName, const Point2 &value) |
| Sets float2 parameter. More...
|
|
GraphicsDriverAPI void | SetFloatParameter (int index, const Point2 &value) |
| Sets float2 parameter. More...
|
|
GraphicsDriverAPI void | SetFloatParameter (const MSTR ¶meterName, const Point3 &value) |
| Sets float3 parameter. More...
|
|
GraphicsDriverAPI void | SetFloatParameter (int index, const Point3 &value) |
| Sets float3 parameter. More...
|
|
GraphicsDriverAPI void | SetFloatParameter (const MSTR ¶meterName, const Point4 &value) |
| Sets float4 parameter. More...
|
|
GraphicsDriverAPI void | SetFloatParameter (int index, const Point4 &value) |
| Sets float4 parameter. More...
|
|
GraphicsDriverAPI void | SetFloatArrayParameter (int index, const float *value, unsigned int count) |
| Sets float array parameter. More...
|
|
GraphicsDriverAPI void | SetFloatArrayParameter (const MSTR ¶meterName, const float *value, unsigned int count) |
| Sets float array parameter. More...
|
|
GraphicsDriverAPI void | SetFloatArrayParameter (int index, const Point2 *value, unsigned int count) |
| Sets float2 array parameter. More...
|
|
GraphicsDriverAPI void | SetFloatArrayParameter (const MSTR ¶meterName, const Point2 *value, unsigned int count) |
| Sets float2 array parameter. More...
|
|
GraphicsDriverAPI void | SetFloatArrayParameter (int index, const Point3 *value, unsigned int count) |
| Sets float3 array parameter. More...
|
|
GraphicsDriverAPI void | SetFloatArrayParameter (const MSTR ¶meterName, const Point3 *value, unsigned int count) |
| Sets float3 array parameter. More...
|
|
GraphicsDriverAPI void | SetFloatArrayParameter (const MSTR ¶meterName, const Point4 *value, unsigned int count) |
| Sets float4 array parameter. More...
|
|
GraphicsDriverAPI void | SetFloatArrayParameter (int index, const Point4 *value, unsigned int count) |
| Sets float4 array parameter. More...
|
|
GraphicsDriverAPI void | SetBoolParameter (const MSTR ¶meterName, bool value) |
| Sets bool parameter. More...
|
|
GraphicsDriverAPI void | SetBoolParameter (int index, bool value) |
| Sets bool parameter. More...
|
|
GraphicsDriverAPI void | SetBoolArrayParameter (const MSTR ¶meterName, const bool *value, unsigned int count) |
| Sets bool array parameter. More...
|
|
GraphicsDriverAPI void | SetBoolArrayParameter (int index, const bool *value, unsigned int count) |
| Sets bool array parameter. More...
|
|
GraphicsDriverAPI void | SetMatrixParameter (const MSTR ¶meterName, const Matrix44 &value) |
| Sets matrix parameter. More...
|
|
GraphicsDriverAPI void | SetMatrixParameter (int index, const Matrix44 &value) |
| Sets matrix parameter. More...
|
|
GraphicsDriverAPI void | SetMatrixArrayParameter (const MSTR ¶meterName, const Matrix44 *value, unsigned int count) |
| Sets matrix array parameter. More...
|
|
GraphicsDriverAPI void | SetMatrixArrayParameter (int index, const Matrix44 *value, unsigned int count) |
| Sets matrix array parameter. More...
|
|
GraphicsDriverAPI void | SetTextureParameter (const MSTR ¶meterName, const TextureHandle &textureHandle) |
| Sets texture parameter. More...
|
|
GraphicsDriverAPI void | SetTextureParameter (const MSTR ¶meterName, const TargetHandle &textureHandle) |
| Sets texture parameter. More...
|
|
GraphicsDriverAPI void | SetTextureParameter (int index, const TextureHandle &textureHandle) |
| Sets texture parameter. More...
|
|
GraphicsDriverAPI void | SetTextureParameter (int index, const TargetHandle &targetHandle) |
| Sets texture parameter. More...
|
|
GraphicsDriverAPI void | SetBufferParameter (const MSTR ¶meterName, const SmartHandle &bufferHandle) |
| Sets buffer parameter. More...
|
|
GraphicsDriverAPI void | SetBufferParameter (int index, const SmartHandle &bufferHandle) |
| Sets buffer parameter. More...
|
|
Public Member Functions inherited from SmartHandle |
virtual GraphicsDriverAPI | ~SmartHandle () |
| destructor More...
|
|
GraphicsDriverAPI bool | IsValid () const |
| Check if this handle is valid. More...
|
|
GraphicsDriverAPI void | Release () |
| Release the underlying graphics objects. More...
|
|
GraphicsDriverAPI Identifier | GetObjectID () const |
| Get the underlying graphics object id. More...
|
|
GraphicsDriverAPI void | SetPointer (IRefObject *pObject) |
|
GraphicsDriverAPI IRefObject * | GetPointer () const |
| Get the underlying graphics object pointer. More...
|
|
bool | operator== (const SmartHandle &rhs) const |
|
bool | operator!= (const SmartHandle &rhs) const |
|
bool | operator< (const SmartHandle &rhs) const |
|
bool | operator<= (const SmartHandle &rhs) const |
|
bool | operator> (const SmartHandle &rhs) const |
|
bool | operator>= (const SmartHandle &rhs) const |
|
GraphicsDriverAPI | SmartHandle (const SmartHandle &) |
|
GraphicsDriverAPI SmartHandle & | operator= (const SmartHandle &) |
|
|
static UtilExport void * | operator new (size_t size) |
| Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new (size_t size, const std::nothrow_t &e) |
| Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
|
|
static UtilExport void * | operator new (size_t size, const char *filename, int line) |
| New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new (size_t size, int block_type, const char *filename, int line) |
| New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new (size_t size, const std::nothrow_t &e, const char *filename, int line) |
| New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
|
|
static UtilExport void * | operator new (size_t size, unsigned long flags) |
| New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new (size_t size, const std::nothrow_t &e, unsigned long flags) |
| New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
|
|
static UtilExport void * | operator new[] (size_t size) |
| New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new[] (size_t size, const std::nothrow_t &e) |
| New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
|
|
static UtilExport void * | operator new[] (size_t size, const char *filename, int line) |
| New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new[] (size_t size, int block_type, const char *filename, int line) |
| New operator used to allocate arrays of objects. More...
|
|
static UtilExport void * | operator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line) |
| New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
|
|
static UtilExport void * | operator new[] (size_t size, unsigned long flags) |
| New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator new[] (size_t size, const std::nothrow_t &e, unsigned long flags) |
| New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
|
|
static UtilExport void | operator delete (void *ptr) |
| Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete (void *ptr, const std::nothrow_t &e) |
| Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
|
|
static UtilExport void | operator delete (void *ptr, const char *filename, int line) |
| Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete (void *ptr, int block_type, const char *filename, int line) |
| Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line) |
| Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
|
|
static UtilExport void | operator delete (void *ptr, unsigned long flags) |
| Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags) |
| Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
|
|
static UtilExport void | operator delete[] (void *ptr) |
| Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete[] (void *ptr, const std::nothrow_t &e) |
| Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
|
|
static UtilExport void | operator delete[] (void *ptr, const char *filename, int line) |
| Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete[] (void *ptr, int block_type, const char *filename, int line) |
| Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line) |
| Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
|
|
static UtilExport void | operator delete[] (void *ptr, unsigned long flags) |
| Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void | operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags) |
| Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
|
|
static UtilExport void * | operator new (size_t size, void *placement_ptr) |
| Placement new operator. More...
|
|
static UtilExport void | operator delete (void *ptr, void *placement_ptr) |
| Placement delete operator. More...
|
|
static UtilExport void * | aligned_malloc (size_t size, size_t alignment) |
| Allocates memory on a specified alignment boundary. More...
|
|
static UtilExport void * | aligned_realloc (void *ptr, size_t size, size_t alignment) |
| Reallocates memory on a specified alignment boundary. More...
|
|
static UtilExport void | aligned_free (void *ptr) |
| Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. More...
|
|
Protected Attributes inherited from SmartHandle |
IRefObject * | mpObject |
|
EffectInstanceHandle is a class which stores values of parameters in an effect.
Typically, EffectHandle is a singleton which represent a single ".fx" file. And each render item contains an EffectInstanceHandle to store their own values. Use EffectInstanceHandle::Apply() to apply values to the device. This class is used for viewport display and Quicksilver. How to use:
hEffect.InitializeWithFile(shaderFileName, &errorInfo);
hEffectInstance = hEffect.CreateEffectInstance();
hEffectInstance.SetFloatParameter(
_M(
"myFloatShaderParam"), floatValue);
...
hEffect.Activate(dc);
hEffectInstance0.Apply(dc);
for (int i = 0; i < hEffect.GetPassCount(dc); ++i)
{
hEffect.ActivatePass(dc, i);
pVirtualDevice.Draw(...);
}
hEffect.PassesFinished(dc); Finish this effect instance
hEffectInstance1.Apply(dc);
for (int i = 0; i < hEffect.GetPassCount(dc); ++i)
{
hEffect.ActivatePass(dc, i);
pVirtualDevice.Draw(...);
}
hEffect.PassesFinished(dc);
hEffect.Terminate();
GraphicsDriverAPI EffectInstanceHandle()
friend class EffectHandle
Definition: EffectInstanceHandle.h:67
Definition: strclass.h:738
#define _M(x)
Used to wrap string literals.
Definition: strbasic.h:67