GenericConstBufferLayout Class Reference#include <genericConstBuffer.h>
List of all members.
Detailed Description
This class describes a memory layout for a GenericConstBuffer.
|
Public Member Functions |
| | GenericConstBufferLayout () |
| virtual | ~GenericConstBufferLayout () |
| void | addParameter (const String &name, const GFXShaderConstType constType, const U32 offset, const U32 size, const U32 arraySize, const U32 alignValue) |
| | Add a parameter to the buffer.
|
| U32 | getBufferSize () const |
| | Get the size of the buffer.
|
| U32 | getParameterCount () const |
| | Get the number of parameters.
|
| bool | getDesc (const String &name, ParamDesc ¶m) const |
| | Returns the ParamDesc of a parameter.
|
| bool | getDesc (const U32 index, ParamDesc ¶m) const |
| | Returns the ParamDesc of a parameter.
|
| bool | set (const ParamDesc &pd, const GFXShaderConstType constType, const U32 size, const void *data, U8 *basePointer) |
| | Set a parameter, given a base pointer.
|
| bool | write (Stream *s) |
| | Save this layout to a stream.
|
| bool | read (Stream *s) |
| | Load this layout from a stream.
|
Protected Types |
| typedef Vector< ParamDesc > | Params |
| | Vector of parameter descriptions.
|
Protected Member Functions |
| virtual bool | setMatrix (const ParamDesc &pd, const GFXShaderConstType constType, const U32 size, const void *data, U8 *basePointer) |
| | Set a matrix, given a base pointer.
|
Protected Attributes |
| Params | mParams |
| | Vector of parameter descriptions.
|
| U32 | mBufferSize |
| U32 | mCurrentIndex |
Classes |
| struct | ParamDesc |
| | Describes the parameters we contain. More...
|
Member Typedef Documentation
Vector of parameter descriptions.
Constructor & Destructor Documentation
| GenericConstBufferLayout::GenericConstBufferLayout |
( |
|
) |
|
| virtual GenericConstBufferLayout::~GenericConstBufferLayout |
( |
|
) |
[inline, virtual] |
Member Function Documentation
Add a parameter to the buffer.
| U32 GenericConstBufferLayout::getBufferSize |
( |
|
) |
const [inline] |
Get the size of the buffer.
| U32 GenericConstBufferLayout::getParameterCount |
( |
|
) |
const [inline] |
Get the number of parameters.
| bool GenericConstBufferLayout::getDesc |
( |
const U32 |
index, |
|
|
ParamDesc & |
param | |
|
) |
| | const |
Set a parameter, given a base pointer.
| bool GenericConstBufferLayout::write |
( |
Stream * |
s |
) |
|
Save this layout to a stream.
| bool GenericConstBufferLayout::read |
( |
Stream * |
s |
) |
|
Load this layout from a stream.
Set a matrix, given a base pointer.
Member Data Documentation
Vector of parameter descriptions.
|