"L. Spiro Engine"
Public Member Functions | Protected Member Functions | Protected Attributes | Friends

lsg::CDirectX11PixelShader Class Reference

A pixel shader in DirectX 11. More...

#include <LSGDirectX11PixelShader.h>

Inheritance diagram for lsg::CDirectX11PixelShader:
lsg::CDirectX11CompiledShader lsg::CCompiledShaderBase

List of all members.

Public Member Functions

virtual LSVOID LSE_CALL Reset ()
virtual LSBOOL LSE_CALL Activate ()
virtual LSVOID LSE_CALL PreRender ()

Protected Member Functions

virtual LSBOOL LSE_CALL Compile (const CString &_sShaderText, CShaderLanguageParser::LSG_SHADER_TYPES _stShaderType, CString &_sError)

Protected Attributes

ID3D11PixelShader * m_ppsPixelShader

Friends

class CDirectX11CompiledShaderManager

Detailed Description

A pixel shader in DirectX 11.

Class CDirectX11PixelShader Description: A pixel shader in DirectX 11. This is used by CDirectX9Shader as one of its components. These objects are shared by default, managed by the CDirectX11CompiledShaderManager class.


Member Function Documentation

virtual LSBOOL LSE_CALL lsg::CDirectX11PixelShader::Activate ( ) [virtual]

Activate the shader.

Returns:
Returns false if there is a failure to apply the shader via the current graphics API.
virtual LSBOOL LSE_CALL lsg::CDirectX11PixelShader::Compile ( const CString &  _sShaderText,
CShaderLanguageParser::LSG_SHADER_TYPES  _stShaderType,
CString &  _sError 
) [protected, virtual]

Compile to the given platform. Must be overridden. The shader text must be syntactically correct for whatever the target graphics API is. GLSL, HLSL, Cg, etc. This function will register the shader with the hardware after compilation.

Parameters:
_sShaderTextThe shader text to compile. The syntax depends on the target graphics API.
_stShaderTypeThe shader type.
_sErrorHolds returned errors.
Returns:
Returns true if the text compiles on the current graphics API.

Implements lsg::CCompiledShaderBase.

virtual LSVOID LSE_CALL lsg::CDirectX11PixelShader::PreRender ( ) [virtual]

Called once prior to each render.

virtual LSVOID LSE_CALL lsg::CDirectX11PixelShader::Reset ( ) [virtual]

Reset everything to scratch.

Reimplemented from lsg::CDirectX11CompiledShader.


Member Data Documentation

ID3D11PixelShader* lsg::CDirectX11PixelShader::m_ppsPixelShader [protected]

The Direct3D shader object.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator