OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
In D3D11, const buffers can't be bound by offset. More...
#include <OgreD3D11CompatBufferInterface.h>
Public Member Functions | |
D3D11CompatBufferInterface (size_t vboPoolIdx, ID3D11Buffer *d3dBuffer, D3D11Device &device) | |
~D3D11CompatBufferInterface () | |
virtual void | _notifyBuffer (BufferPacked *buffer) |
virtual void | advanceFrame (void) |
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) |
In D3D11, const buffers can't be bound by offset.
Their size at creation defines the size to be bound to the shader, and the max limit is 64kb. This is unless we're using D3D11.1 on Windows 8.1; which for simplicity we treat it the same as D3D11.
Ogre::D3D11CompatBufferInterface::D3D11CompatBufferInterface | ( | size_t | vboPoolIdx, |
ID3D11Buffer * | d3dBuffer, | ||
D3D11Device & | device | ||
) |
Ogre::D3D11CompatBufferInterface::~D3D11CompatBufferInterface | ( | ) |
|
inlinevirtualinherited |
Reimplemented in Ogre::NULLBufferInterface.
Implements Ogre::BufferInterface.
|
inlineinherited |
|
virtual |
Implements Ogre::BufferInterface.
Implements Ogre::BufferInterface.
|
virtual |
Implements Ogre::BufferInterface.
|
inherited |