OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
For D3D11, most (if not all) buffers, can be treated with the same code. More...
#include <OgreD3D11BufferInterface.h>
Public Member Functions | |
D3D11BufferInterface (size_t vboPoolIdx, ID3D11Buffer *d3dBuffer, D3D11DynamicBuffer *dynamicBuffer) | |
~D3D11BufferInterface () | |
void | _deleteInitialData (void) |
void | _firstUpload (void *data) |
Only use this function for the first upload. | |
const void * | _getInitialData (void) const |
virtual void | _notifyBuffer (BufferPacked *buffer) |
void | _setVboName (size_t vboPoolIdx, ID3D11Buffer *vboName, size_t internalBufferStartBytes) |
virtual void | advanceFrame (void) |
D3D11DynamicBuffer * | getDynamicBuffer (void) const |
ID3D11Buffer * | getVboName (void) const |
size_t | getVboPoolIndex (void) |
virtual void *RESTRICT_ALIAS_RETURN | map (size_t elementStart, size_t elementCount, MappingState prevMappingState, bool advanceFrame=true) |
virtual void | regressFrame (void) |
virtual void | unmap (UnmapOptions unmapOption, size_t flushStartElem=0, size_t flushSizeElem=0) |
void | upload (const void *data, size_t elementStart, size_t elementCount) |
For D3D11, most (if not all) buffers, can be treated with the same code.
Hence most equivalent functionality is encapsulated here.
Ogre::D3D11BufferInterface::D3D11BufferInterface | ( | size_t | vboPoolIdx, |
ID3D11Buffer * | d3dBuffer, | ||
D3D11DynamicBuffer * | dynamicBuffer | ||
) |
Ogre::D3D11BufferInterface::~D3D11BufferInterface | ( | ) |
Only use this function for the first upload.
|
inlinevirtualinherited |
Reimplemented in Ogre::NULLBufferInterface.
void Ogre::D3D11BufferInterface::_setVboName | ( | size_t | vboPoolIdx, |
ID3D11Buffer * | vboName, | ||
size_t | internalBufferStartBytes | ||
) |
Implements Ogre::BufferInterface.
|
inline |
|
inlineinherited |
|
virtual |
Implements Ogre::BufferInterface.
Implements Ogre::BufferInterface.
|
virtual |
Implements Ogre::BufferInterface.
|
inherited |