GFXShader Class Reference

#include <gfxShader.h>

Inheritance diagram for GFXShader:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~GFXShader ()
virtual bool init (const Torque::Path &vertFile, const Torque::Path &pixFile, F32 pixVersion, const Vector< GFXShaderMacro > &macros)=0
virtual void process ()
 Set this as the active shader.
virtual GFXShaderConstBufferRef allocConstBuffer ()=0
 Allocate a constant buffer.
virtual const Vector< GFXShaderConstDesc > & getShaderConstDesc () const =0
 Returns our list of shader constants, the material can get this and just set the constants it knows about.
virtual GFXShaderConstHandlegetShaderConstHandle (const String &name)=0
 Returns a shader constant handle for name, if the variable doesn't exist NULL is returned.
virtual U32 getAlignmentValue (const GFXShaderConstType constType) const =0
 Returns the alignment value for constType.
void setDescription (const String &inDescr)
 Used to store filename and other info used for info dumps.
virtual const String describeSelf () const
 The resource should put a description of itself (number of vertices, size/width of texture, etc.) in buffer.

Public Attributes

U32 mVertexFlags
F32 mPixVersion

Private Attributes

String mDescr

Constructor & Destructor Documentation

virtual GFXShader::~GFXShader (  )  [inline, virtual]


Member Function Documentation

virtual bool GFXShader::init ( const Torque::Path vertFile,
const Torque::Path pixFile,
F32  pixVersion,
const Vector< GFXShaderMacro > &  macros 
) [pure virtual]

Implemented in GFXD3D9Shader, and GFXGLShader.

virtual void GFXShader::process (  )  [inline, virtual]

Set this as the active shader.

Reimplemented in GFXD3D9Shader, and GFXGLShader.

virtual GFXShaderConstBufferRef GFXShader::allocConstBuffer (  )  [pure virtual]

Allocate a constant buffer.

Implemented in GFXD3D9Shader, and GFXGLShader.

virtual const Vector<GFXShaderConstDesc>& GFXShader::getShaderConstDesc (  )  const [pure virtual]

Returns our list of shader constants, the material can get this and just set the constants it knows about.

Implemented in GFXD3D9Shader, and GFXGLShader.

virtual GFXShaderConstHandle* GFXShader::getShaderConstHandle ( const String name  )  [pure virtual]

Returns a shader constant handle for name, if the variable doesn't exist NULL is returned.

Implemented in GFXD3D9Shader, and GFXGLShader.

virtual U32 GFXShader::getAlignmentValue ( const GFXShaderConstType  constType  )  const [pure virtual]

Returns the alignment value for constType.

Implemented in GFXD3D9Shader, and GFXGLShader.

void GFXShader::setDescription ( const String inDescr  )  [inline]

Used to store filename and other info used for info dumps.

virtual const String GFXShader::describeSelf (  )  const [inline, virtual]

The resource should put a description of itself (number of vertices, size/width of texture, etc.) in buffer.

Implements GFXResource.

Reimplemented in GFXGLShader.


Member Data Documentation