Graphics::StandardShader class

Base classes

class MaterialShader

Public static functions

static auto Load(RenderWare::Mesh* mesh) -> BOOL
This function is called when rendering a mesh, before the DrawIndexedPrimitives is called.

Constructors, destructors, conversion operators

StandardShader()

Public functions

auto Release() -> int
auto Reset() -> void
auto Read(IO::IStream* pStream, uint32_t shaderID, int version) -> bool

Protected variables

eastl::intrusive_ptr<IDirect3DVertexShader9> mVertexShaders
eastl::intrusive_ptr<IDirect3DPixelShader9> mPixelShaders
eastl::vector<ShaderDataUniform> mVertexShaderData
eastl::vector<ShaderDataUniform> mPixelShaderData

Function documentation

static BOOL Graphics::StandardShader::Load(RenderWare::Mesh* mesh)

This function is called when rendering a mesh, before the DrawIndexedPrimitives is called.

This function is responsible of loading the shaders into DirectX.