List of all members.
Constructor & Destructor Documentation
sp::video::Direct3D11ComputeShaderIO::Direct3D11ComputeShaderIO |
( |
|
) |
|
sp::video::Direct3D11ComputeShaderIO::~Direct3D11ComputeShaderIO |
( |
|
) |
|
Member Function Documentation
u32 sp::video::Direct3D11ComputeShaderIO::addInputBuffer |
( |
u32 |
BufferSize, |
|
|
u32 |
Count, |
|
|
void * |
InitData = 0 | |
|
) |
| | [virtual] |
Adds an input buffer to set user data to a compute shader.
- Parameters:
-
| BufferSize,: | Size (in bytes) of one element of the buffer. |
| Count,: | Count of elements. |
| InitData,: | Initial data for the buffer. If this parameter is none zero it needs to point to a buffer which has the size of [BufferSize * Count] bytes. |
- Returns:
- Zero based buffer index.
Reimplemented from sp::video::ComputeShaderIO.
u32 sp::video::Direct3D11ComputeShaderIO::addOutputBuffer |
( |
u32 |
BufferSize, |
|
|
u32 |
Count | |
|
) |
| | [virtual] |
Adds an output buffer to get the result from a compute shader.
- Parameters:
-
| BufferSize,: | Size (in bytes) of one element of the buffer. |
| Count,: | Count of elements. |
- Returns:
- Zero based buffer index.
Reimplemented from sp::video::ComputeShaderIO.
bool sp::video::Direct3D11ComputeShaderIO::getBuffer |
( |
const u32 |
Index, |
|
|
void * |
OutputBuffer | |
|
) |
| | [virtual] |
Gets the data of a buffer.
- Parameters:
-
| Index,: | Zero based buffer index. Add an ouput buffer and use the returned index. Input buffers can also be used. |
| OutputBuffer,: | Pointer to the buffer data where the output data is to be copied. The buffer needs to point to a buffer data with the same size of the created output buffer. |
Reimplemented from sp::video::ComputeShaderIO.
void sp::video::Direct3D11ComputeShaderIO::setBuffer |
( |
const u32 |
Index, |
|
|
const void * |
InputBuffer | |
|
) |
| | [virtual] |
Sets the data of a buffer.
- Parameters:
-
| Index,: | Zero based buffer index. Add an input buffer and use the returned index. |
| InputBuffer,: | Input buffer data which is to be set. The buffer needs to point to a buffer data with the same size of the created input buffer. |
Reimplemented from sp::video::ComputeShaderIO.
Friends And Related Function Documentation
The documentation for this class was generated from the following file: