Public Member Functions | Friends

sp::video::Direct3D11Shader Class Reference

#include <spDirect3D11Shader.hpp>

Inheritance diagram for sp::video::Direct3D11Shader:
sp::video::Shader

List of all members.

Public Member Functions

 Direct3D11Shader (ShaderClass *Table, const EShaderTypes Type, const EShaderVersions Version)
 ~Direct3D11Shader ()
bool compile (const std::list< io::stringc > &ShaderBuffer, const io::stringc &EntryPoint="", const c8 **CompilerOptions=0)
bool setConstantBuffer (const io::stringc &Name, const void *Buffer)
bool setConstantBuffer (u32 Number, const void *Buffer)
u32 getConstantCount () const
 Returns the count of shader constants.
std::vector< io::stringcgetConstantList () const
 Returns the list of all shader constants.

Friends

class Direct3D11ShaderClass
class Direct3D11RenderSystem

Constructor & Destructor Documentation

sp::video::Direct3D11Shader::Direct3D11Shader ( ShaderClass Table,
const EShaderTypes  Type,
const EShaderVersions  Version 
)
sp::video::Direct3D11Shader::~Direct3D11Shader (  ) 

Member Function Documentation

bool sp::video::Direct3D11Shader::compile ( const std::list< io::stringc > &  ShaderBuffer,
const io::stringc EntryPoint = "",
const c8 **  CompilerOptions = 0 
) [virtual]

Compiles the given shader source code.

Parameters:
[in] ShaderBuffer Specifies the shader source code in form of a string container. Each string line has to end with the end-of-line character ('
')!
[in] EntryPoint Specifies the shader entry point. This not required for GLSL shaders. But for HLSL and Cg. It's actually just the shader's main function name.
[in] CompilerOptions Specifies the pointer to the comiler option strings.
Returns:
True if the shader could be compiled successful.

Reimplemented from sp::video::Shader.

u32 sp::video::Direct3D11Shader::getConstantCount (  )  const

Returns the count of shader constants.

Reimplemented from sp::video::Shader.

std::vector<io::stringc> sp::video::Direct3D11Shader::getConstantList (  )  const

Returns the list of all shader constants.

Reimplemented from sp::video::Shader.

bool sp::video::Direct3D11Shader::setConstantBuffer ( u32  Number,
const void *  Buffer 
) [virtual]
Parameters:
[in] Number Specifies the index number of the constant buffer which is to be used.

Reimplemented from sp::video::Shader.

bool sp::video::Direct3D11Shader::setConstantBuffer ( const io::stringc Name,
const void *  Buffer 
) [virtual]

Fills a constant buffer with content (actual only for HLSL ShaderModel 4+).

Parameters:
Name,: Constant buffer's name which is to be used.
Buffer,: Pointer to the buffer where the content for the constant buffer is stored. This buffer needs to have the same size like the constant buffer in the shader!

Reimplemented from sp::video::Shader.


Friends And Related Function Documentation

friend class Direct3D11RenderSystem [friend]
friend class Direct3D11ShaderClass [friend]

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