OGRE-Next
2.3
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 () override | |
void | _deleteInitialData () |
void | _ensureDelayedImmutableBuffersAreReady () override |
void | _firstUpload (void *data) |
Only use this function for the first upload. More... | |
const void * | _getInitialData () const |
virtual void | _notifyBuffer (BufferPacked *buffer) |
void | _setNullDynamicBuffer () |
void | _setVboName (size_t vboPoolIdx, ID3D11Buffer *vboName, size_t internalBufferStartBytes) |
void | _setVboPoolIndex (size_t newVboPool) |
void | advanceFrame () override |
void | copyTo (BufferInterface *dstBuffer, size_t dstOffsetBytes, size_t srcOffsetBytes, size_t sizeBytes) override |
BufferPacked * | getBufferPacked () |
D3D11DynamicBuffer * | getDynamicBuffer () const |
ID3D11Buffer * | getVboName () const |
size_t | getVboPoolIndex () |
void *RESTRICT_ALIAS_RETURN | map (size_t elementStart, size_t elementCount, MappingState prevMappingState, bool advanceFrame=true) override |
void | regressFrame () override |
void | unmap (UnmapOptions unmapOption, size_t flushStartElem=0, size_t flushSizeElem=0) override |
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 | ||
) |
|
override |
void Ogre::D3D11BufferInterface::_deleteInitialData | ( | ) |
|
overridevirtualinherited |
Reimplemented from Ogre::BufferInterface.
void Ogre::D3D11BufferInterface::_firstUpload | ( | void * | data | ) |
Only use this function for the first upload.
|
inline |
|
inlinevirtualinherited |
Reimplemented in Ogre::NULLBufferInterface.
|
inline |
void Ogre::D3D11BufferInterface::_setVboName | ( | size_t | vboPoolIdx, |
ID3D11Buffer * | vboName, | ||
size_t | internalBufferStartBytes | ||
) |
|
inline |
|
overridevirtual |
Implements Ogre::BufferInterface.
|
overridevirtualinherited |
Implements Ogre::BufferInterface.
|
inlineinherited |
|
inline |
|
inlineinherited |
References Ogre::ComPtr< T >::Get().
|
inlineinherited |
|
overridevirtual |
Implements Ogre::BufferInterface.
|
overridevirtual |
Implements Ogre::BufferInterface.
|
overridevirtual |
Implements Ogre::BufferInterface.
|
inherited |