|
GraphicsDriverAPI | HLSLMaterialHandle () |
|
GraphicsDriverAPI | HLSLMaterialHandle (const HLSLMaterialHandle &from) |
|
GraphicsDriverAPI HLSLMaterialHandle & | operator= (const HLSLMaterialHandle &from) |
|
virtual GraphicsDriverAPI | ~HLSLMaterialHandle () |
|
GraphicsDriverAPI bool | InitializeWithFile (const MSTR &fileName) |
| Initialize an instance of HLSLMaterialHandle. More...
|
|
GraphicsDriverAPI bool | InitializeWithString (const CStr &shaderContent) |
| Initialize an instance of HLSLMaterialHandle with shader string. More...
|
|
GraphicsDriverAPI bool | InitializeWithResource (int iShaderID, HINSTANCE hInst, const MSTR &strTypeName) |
| Initialize an instance of HLSLMaterialHandle from resource. More...
|
|
virtual GraphicsDriverAPI const MaterialRequiredStreams * | GetRequiredStreams () const |
| Returns the material required streams to tell how to setup mesh data. More...
|
|
GraphicsDriverAPI int | GetParameterCount () const |
| Returns the parameter count of material. More...
|
|
GraphicsDriverAPI bool | GetParameterDescription (int index, ParameterDesc ¶meterDesc) const |
| Returns the description of parameter. More...
|
|
GraphicsDriverAPI int | GetParameterIndex (const MSTR ¶meterName) const |
| Returns the index of parameter. 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 | 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 | SetFloatParameter (const MSTR ¶meterName, float value) |
| Sets float parameter. More...
|
|
GraphicsDriverAPI void | SetFloatParameter (int index, float value) |
| Sets float 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 float *value, unsigned int count) |
| Sets float 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 | SetFloat4Parameter (const MSTR ¶meterName, const Point4 &value) |
| Sets float4 parameter. More...
|
|
GraphicsDriverAPI void | SetFloat4Parameter (int index, const Point4 &value) |
| Sets float4 parameter. More...
|
|
GraphicsDriverAPI void | SetFloat4ArrayParameter (const MSTR ¶meterName, const Point4 *value, unsigned int count) |
| Sets float4 array parameter. More...
|
|
GraphicsDriverAPI void | SetFloat4ArrayParameter (int index, const Point4 *value, unsigned int count) |
| Sets float4 array parameter. More...
|
|
GraphicsDriverAPI void | SetFloat3Parameter (const MSTR ¶meterName, const Point3 &value) |
| Sets float3 parameter. More...
|
|
GraphicsDriverAPI void | SetFloat3Parameter (int index, const Point3 &value) |
| Sets float3 parameter. More...
|
|
GraphicsDriverAPI void | SetFloat3ArrayParameter (const MSTR ¶meterName, const Point3 *value, unsigned int count) |
| Sets float3 array parameter. More...
|
|
GraphicsDriverAPI void | SetFloat3ArrayParameter (int index, const Point3 *value, unsigned int count) |
| Sets float3 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 &textureHandle) |
| 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...
|
|
GraphicsDriverAPI void | SetMapChannelParameter (int textureCoordinateIndex, int maxMapChannel) |
| Sets map channel parameter. More...
|
|
GraphicsDriverAPI void | SetActiveTechniqueName (const MSTR &techniqueName) |
| Sets technique name parameter. More...
|
|
GraphicsDriverAPI MSTR | GetShaderErrorInformation () |
| Get shader compilation error information. More...
|
|
Public Member Functions inherited from BaseMaterialHandle |
GraphicsDriverAPI | BaseMaterialHandle () |
|
GraphicsDriverAPI | BaseMaterialHandle (const BaseMaterialHandle &from) |
|
GraphicsDriverAPI BaseMaterialHandle & | operator= (const BaseMaterialHandle &from) |
|
virtual GraphicsDriverAPI | ~BaseMaterialHandle () |
|
GraphicsDriverAPI void | Activate (DrawContext &drawContext) |
| Activates the material handle with the specified pipeline context. More...
|
|
GraphicsDriverAPI void | Terminate () |
| Terminates the material handle, performing any cleanup required by the material handle. More...
|
|
GraphicsDriverAPI unsigned int | GetPassCount (DrawContext &drawContext) const |
| Retrieves the number of passes required to render the material handle. More...
|
|
GraphicsDriverAPI void | ActivatePass (DrawContext &drawContext, unsigned int pass) |
| Activates the specified pass of the material handle, at which point it may render geometry as necessary for the pass. More...
|
|
GraphicsDriverAPI void | PassesFinished (DrawContext &drawContext) |
| Called after all of the passes for the material handle have been drawn. 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 Member Functions inherited from SmartHandle |
GraphicsDriverAPI | SmartHandle () |
|
Protected Attributes inherited from SmartHandle |
IRefObject * | mpObject |
|
HLSLMaterialHandle is a material class to support HLSL custom material.
This class is used for viewport display and Quicksilver. It's used by RenderItemHandle::SetCustomMaterial() to describe HLSL custom material. It can also be used for realistic material display. see IHLSLMaterialTranslator for more details. How to use:
hMaterial.Initialize(shaderFileName);
hMaterial.SetFloatParameter(
_M(
"myFloatShaderParam"), floatValue);
pItem->SetCustomMaterial(hMaterial);
GraphicsDriverAPI HLSLMaterialHandle()
#define _M(x)
Used to wrap string literals.
Definition: strbasic.h:67