#include <spDirect3D9Shader.hpp>
List of all members.
Public Member Functions |
| Direct3D9Shader (ShaderClass *Table, const EShaderTypes Type, const EShaderVersions Version) |
| ~Direct3D9Shader () |
bool | compile (const std::list< io::stringc > &ShaderBuffer, const io::stringc &EntryPoint="", const c8 **CompilerOptions=0) |
bool | setConstant (s32 Number, const EConstantTypes Type, const f32 Value) |
bool | setConstant (s32 Number, const EConstantTypes Type, const f32 *Buffer, s32 Count) |
bool | setConstant (s32 Number, const EConstantTypes Type, const dim::vector3df &Position) |
bool | setConstant (s32 Number, const EConstantTypes Type, const video::color &Color) |
bool | setConstant (s32 Number, const EConstantTypes Type, const dim::matrix4f &Matrix) |
bool | setConstant (const io::stringc &Name, const f32 Value) |
bool | setConstant (const io::stringc &Name, const f32 *Buffer, s32 Count) |
bool | setConstant (const io::stringc &Name, const s32 Value) |
bool | setConstant (const io::stringc &Name, const s32 *Buffer, s32 Count) |
bool | setConstant (const io::stringc &Name, const dim::vector3df &Position) |
bool | setConstant (const io::stringc &Name, const dim::vector4df &Position) |
bool | setConstant (const io::stringc &Name, const video::color &Color) |
bool | setConstant (const io::stringc &Name, const dim::matrix4f &Matrix) |
bool | setConstant (const f32 *Buffer, s32 StartRegister, s32 ConstAmount) |
Friends |
class | Direct3D9ShaderClass |
Constructor & Destructor Documentation
sp::video::Direct3D9Shader::~Direct3D9Shader |
( |
|
) |
|
Member Function Documentation
bool sp::video::Direct3D9Shader::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.
bool sp::video::Direct3D9Shader::setConstant |
( |
const f32 * |
Buffer, |
|
|
s32 |
StartRegister, |
|
|
s32 |
ConstAmount | |
|
) |
| | [virtual] |
Sets floating-point constant arrays for assembly shaders.
- Parameters:
-
[in] | Buffer | Pointer to a floating-point buffer. |
[in] | StartRegister | Specifies the register start offset (in 4 bytes). |
[in] | ConstAmount | Specifies the count of constants (or rather array size). |
Reimplemented from sp::video::Shader.
bool sp::video::Direct3D9Shader::setConstant |
( |
const io::stringc & |
Name, |
|
|
const s32 * |
Buffer, |
|
|
s32 |
Count | |
|
) |
| | [virtual] |
bool sp::video::Direct3D9Shader::setConstant |
( |
const io::stringc & |
Name, |
|
|
const s32 |
Value | |
|
) |
| | [virtual] |
bool sp::video::Direct3D9Shader::setConstant |
( |
const io::stringc & |
Name, |
|
|
const f32 * |
Buffer, |
|
|
s32 |
Count | |
|
) |
| | [virtual] |
bool sp::video::Direct3D9Shader::setConstant |
( |
const io::stringc & |
Name, |
|
|
const f32 |
Value | |
|
) |
| | [virtual] |
bool sp::video::Direct3D9Shader::setConstant |
( |
s32 |
Number, |
|
|
const EConstantTypes |
Type, |
|
|
const f32 * |
Buffer, |
|
|
s32 |
Count | |
|
) |
| | [virtual] |
bool sp::video::Direct3D9Shader::setConstant |
( |
s32 |
Number, |
|
|
const EConstantTypes |
Type, |
|
|
const f32 |
Value | |
|
) |
| | [virtual] |
Friends And Related Function Documentation
The documentation for this class was generated from the following file:
- D:/SoftwareEntwicklung/C++/HLC/Tools/SoftPixelEngine/repository/sources/RenderSystem/Direct3D9/spDirect3D9Shader.hpp