GFXD3D9Shader Class Reference#include <gfxD3D9Shader.h>
Inheritance diagram for GFXD3D9Shader:
[legend]List of all members.
|
Public Member Functions |
| | GFXD3D9Shader () |
| virtual | ~GFXD3D9Shader () |
| virtual bool | init (const Torque::Path &vertFile, const Torque::Path &pixFile, F32 pixVersion, const Vector< GFXShaderMacro > ¯os) |
|
| virtual GFXShaderConstBufferRef | allocConstBuffer () |
| | Allocate a constant buffer.
|
| virtual const Vector< GFXShaderConstDesc > & | getShaderConstDesc () const |
| | Returns our list of shader constants, the material can get this and just set the constants it knows about.
|
| virtual GFXShaderConstHandle * | getShaderConstHandle (const String &name) |
| | Returns a shader constant handle for name, if the variable doesn't exist NULL is returned.
|
| virtual U32 | getAlignmentValue (const GFXShaderConstType constType) const |
| | Returns the alignment value for constType.
|
| virtual void | process () |
| | Set this as the active shader.
|
|
| virtual void | zombify () |
| | When called the resource should destroy all device sensitive information (e.g. D3D resources in D3DPOOL_DEFAULT.
|
| virtual void | resurrect () |
| | When called the resource should restore all device sensitive information destroyed by zombify().
|
Protected Member Functions |
| virtual void | _compileShader (const Torque::Path &filePath, const String &target, const D3DXMACRO *defines, GenericConstBufferLayout *bufferLayoutF, GenericConstBufferLayout *bufferLayoutI) |
| void | _getShaderConstants (ID3DXConstantTable *table, GenericConstBufferLayout *bufferLayoutF, GenericConstBufferLayout *bufferLayoutI) |
| bool | _saveCompiledOutput (const Torque::Path &filePath, LPD3DXBUFFER buffer, GenericConstBufferLayout *bufferLayoutF, GenericConstBufferLayout *bufferLayoutI) |
| bool | _loadCompiledOutput (const Torque::Path &filePath, const String &target, GenericConstBufferLayout *bufferLayoutF, GenericConstBufferLayout *bufferLayoutI) |
| void | _buildShaderConstantHandles (GenericConstBufferLayout *layout, bool vertexConst) |
Protected Attributes |
| LPDIRECT3DDEVICE9 | mD3D9Device |
| IDirect3DVertexShader9 * | mVertShader |
| IDirect3DPixelShader9 * | mPixShader |
| GFXD3D9ShaderBufferLayout * | mVertexConstBufferLayoutF |
| GFXD3D9ShaderBufferLayout * | mPixelConstBufferLayoutF |
| GFXD3D9ShaderBufferLayout * | mVertexConstBufferLayoutI |
| GFXD3D9ShaderBufferLayout * | mPixelConstBufferLayoutI |
| HandleMap | mHandles |
| Vector< GFXShaderConstDesc > | mShaderConsts |
| | Vector of descriptions (consolidated for the getShaderConstDesc call).
|
Static Protected Attributes |
| static const U32 | smCompiledShaderTag |
| static _gfxD3DXIncludeRef | smD3DXInclude |
Friends |
| class | GFXD3D9Device |
| class | GFX360Device |
| class | GFXD3D9ShaderConstBuffer |
Constructor & Destructor Documentation
| GFXD3D9Shader::GFXD3D9Shader |
( |
|
) |
|
| virtual GFXD3D9Shader::~GFXD3D9Shader |
( |
|
) |
[virtual] |
Member Function Documentation
Allocate a constant buffer.
Implements GFXShader.
Returns our list of shader constants, the material can get this and just set the constants it knows about.
Implements GFXShader.
Returns a shader constant handle for name, if the variable doesn't exist NULL is returned.
Implements GFXShader.
Returns the alignment value for constType.
Implements GFXShader.
| virtual void GFXD3D9Shader::process |
( |
|
) |
[virtual] |
Set this as the active shader.
Reimplemented from GFXShader.
| virtual void GFXD3D9Shader::zombify |
( |
|
) |
[virtual] |
When called the resource should destroy all device sensitive information (e.g. D3D resources in D3DPOOL_DEFAULT.
Implements GFXResource.
| virtual void GFXD3D9Shader::resurrect |
( |
|
) |
[virtual] |
When called the resource should restore all device sensitive information destroyed by zombify().
Implements GFXResource.
Friends And Related Function Documentation
Member Data Documentation
Vector of descriptions (consolidated for the getShaderConstDesc call).
|