Public Member Functions

IDX8PixelShader Class Reference

This reference page is linked to from the following overview topics: Interface Querying, Interface Querying.


Search for all occurrences

Detailed Description

See also:
Class BaseInterface, Class Material, Class INode

Description:
This class is available in release 4.0 and later only.

The abstract interface to the Direct-3D Pixel Shader architecture.

#include <idx8pixelshader.h>

Inheritance diagram for IDX8PixelShader:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual Interface_ID  GetID ()
virtual HRESULT  ConfirmDevice (ID3DGraphicsWindow *gw)=0
virtual HRESULT  ConfirmVertexShader (IDX8VertexShader *pvs)=0
virtual HRESULT  Initialize (Material *mtl, INode *node)=0
virtual int  GetNumMultiPass ()=0
virtual DWORD  GetPixelShaderHandle (int numPass)=0
virtual HRESULT  SetPixelShader (ID3DGraphicsWindow *gw, int numPass)=0

Member Function Documentation

virtual Interface_ID GetID ( ) [inline, virtual]
Remarks:
This method returns the interface ID of the class.
Default Implementation:
{ return DX8_PIXEL_SHADER_INTERFACE_ID; }

Reimplemented from BaseInterface.

{ return DX8_PIXEL_SHADER_INTERFACE_ID; }
virtual HRESULT ConfirmDevice ( ID3DGraphicsWindow gw ) [pure virtual]
Remarks:
This method will confirm that the Direct3D Device can handle this PixelShader.
Parameters:
ID3DGraphicsWindow *gw

A pointer to the Direct-3D Graphics Window.
virtual HRESULT ConfirmVertexShader ( IDX8VertexShader pvs ) [pure virtual]
Remarks:
This method will confirm that an associated VertexShader will work with this PixelShader.
Parameters:
IDX8VertexShader *pvs

A pointer to the vertex shader to check for.
virtual HRESULT Initialize ( Material mtl,
INode node 
) [pure virtual]
Remarks:
This method will load the PixelShader instructions and textures. PixelShader instructions should be loaded once and shared among all the nodes using this PixelShader. In addition, any textures necessary for the PixelShader effect should be loaded once and shared among all the nodes using this PixelShader.
Parameters:
Material *mtl

A pointer to the pixel shader material.

INode *node

A pointer to the node.
virtual int GetNumMultiPass ( ) [pure virtual]
Remarks:
This method returns the number of passes for the effect this PixelShader creates. Note that this value will depend on the hardware currently in use.
virtual DWORD GetPixelShaderHandle ( int  numPass ) [pure virtual]
Remarks:
This method returns the PixelShader handle for the specified pass for use in GFX.
Parameters:
int numPass

The pass for which to return the pixelshader handle.
virtual HRESULT SetPixelShader ( ID3DGraphicsWindow gw,
int  numPass 
) [pure virtual]
Remarks:
This method allows you to set the PixelShader for the specified pass. This call will be made at least once per object to set the per object data for the PixelShader such as the PixelShader constants.
Parameters:
ID3DGraphicsWindow *gw

A pointer to the Direct-3D Graphics Window.

int numPass

The pass for which to set the pixel shader.

IDX8PixelShader IDX8PixelShader IDX8PixelShader IDX8PixelShader IDX8PixelShader IDX8PixelShader IDX8PixelShader IDX8PixelShader IDX8PixelShader IDX8PixelShader
IDX8PixelShader IDX8PixelShader IDX8PixelShader IDX8PixelShader IDX8PixelShader IDX8PixelShader IDX8PixelShader IDX8PixelShader IDX8PixelShader IDX8PixelShader