OGRE
2.2.4
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 | _ensureDelayedImmutableBuffersAreReady (void) |
void | _firstUpload (void *data) |
Only use this function for the first upload. More... | |
const void * | _getInitialData (void) const |
virtual void | _notifyBuffer (BufferPacked *buffer) |
void | _setVboName (size_t vboPoolIdx, ID3D11Buffer *vboName, size_t internalBufferStartBytes) |
void | _setVboPoolIndex (size_t newVboPool) |
virtual void | advanceFrame (void) |
virtual void | copyTo (BufferInterface *dstBuffer, size_t dstOffsetBytes, size_t srcOffsetBytes, size_t sizeBytes) |
BufferPacked * | getBufferPacked (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 | ( | ) |
void Ogre::D3D11BufferInterface::_deleteInitialData | ( | void | ) |
|
virtualinherited |
Reimplemented from Ogre::BufferInterface.
void Ogre::D3D11BufferInterface::_firstUpload | ( | void * | data | ) |
Only use this function for the first upload.
|
inline |
References RESTRICT_ALIAS_RETURN.
|
inlinevirtualinherited |
Reimplemented in Ogre::NULLBufferInterface.
void Ogre::D3D11BufferInterface::_setVboName | ( | size_t | vboPoolIdx, |
ID3D11Buffer * | vboName, | ||
size_t | internalBufferStartBytes | ||
) |
|
inline |
|
virtual |
Implements Ogre::BufferInterface.
|
virtualinherited |
Implements Ogre::BufferInterface.
|
inlineinherited |
|
inline |
|
inlineinherited |
References Ogre::ComPtr< T >::Get().
|
inlineinherited |
|
virtual |
Implements Ogre::BufferInterface.
|
virtual |
Implements Ogre::BufferInterface.
|
virtual |
Implements Ogre::BufferInterface.
|
inherited |