OGRE 2.1
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::D3D11BufferInterface Class Reference

For D3D11, most (if not all) buffers, can be treated with the same code. More...

#include <OgreD3D11BufferInterface.h>

+ Inheritance diagram for Ogre::D3D11BufferInterface:

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)
 
D3D11DynamicBuffergetDynamicBuffer (void) const
 
ID3D11BuffergetVboName (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)
 

Detailed Description

For D3D11, most (if not all) buffers, can be treated with the same code.

Hence most equivalent functionality is encapsulated here.

Constructor & Destructor Documentation

◆ D3D11BufferInterface()

Ogre::D3D11BufferInterface::D3D11BufferInterface ( size_t  vboPoolIdx,
ID3D11Buffer d3dBuffer,
D3D11DynamicBuffer dynamicBuffer 
)

◆ ~D3D11BufferInterface()

Ogre::D3D11BufferInterface::~D3D11BufferInterface ( )

Member Function Documentation

◆ _deleteInitialData()

void Ogre::D3D11BufferInterface::_deleteInitialData ( void  )

◆ _firstUpload()

void Ogre::D3D11BufferInterface::_firstUpload ( void data)

Only use this function for the first upload.

◆ _getInitialData()

const void * Ogre::D3D11BufferInterface::_getInitialData ( void  ) const
inline

◆ _notifyBuffer()

virtual void Ogre::BufferInterface::_notifyBuffer ( BufferPacked buffer)
inlinevirtualinherited

Reimplemented in Ogre::NULLBufferInterface.

◆ _setVboName()

void Ogre::D3D11BufferInterface::_setVboName ( size_t  vboPoolIdx,
ID3D11Buffer vboName,
size_t  internalBufferStartBytes 
)

◆ advanceFrame()

virtual void Ogre::D3D11BufferInterface::advanceFrame ( void  )
virtual

Implements Ogre::BufferInterface.

◆ getDynamicBuffer()

D3D11DynamicBuffer * Ogre::D3D11BufferInterface::getDynamicBuffer ( void  ) const
inline

◆ getVboName()

ID3D11Buffer * Ogre::D3D11BufferInterfaceBase::getVboName ( void  ) const
inlineinherited

◆ getVboPoolIndex()

size_t Ogre::D3D11BufferInterfaceBase::getVboPoolIndex ( void  )
inlineinherited

◆ map()

virtual void *RESTRICT_ALIAS_RETURN Ogre::D3D11BufferInterface::map ( size_t  elementStart,
size_t  elementCount,
MappingState  prevMappingState,
bool  advanceFrame = true 
)
virtual

Implements Ogre::BufferInterface.

◆ regressFrame()

virtual void Ogre::D3D11BufferInterface::regressFrame ( void  )
virtual

Implements Ogre::BufferInterface.

◆ unmap()

virtual void Ogre::D3D11BufferInterface::unmap ( UnmapOptions  unmapOption,
size_t  flushStartElem = 0,
size_t  flushSizeElem = 0 
)
virtual

Implements Ogre::BufferInterface.

◆ upload()

void Ogre::BufferInterface::upload ( const void data,
size_t  elementStart,
size_t  elementCount 
)
inherited

The documentation for this class was generated from the following file: