Go to the documentation of this file.
33 #include "../../GraphicsEngine/interface/RenderDevice.h"
34 #include "../../GraphicsEngine/interface/DeviceContext.h"
35 #include "../../GraphicsEngine/interface/Buffer.h"
36 #include "../../../Common/interface/RefCntAutoPtr.hpp"
114 return (m_Desc.
uiSizeInBytes > 0) && (!m_pBuffer || m_pStaleBuffer);
137 const std::string m_Name;
DynamicBuffer & operator=(const DynamicBuffer &)=delete
Uint32 uiSizeInBytes
Size of the buffer, in bytes. For a uniform buffer, this must be multiple of 16.
Definition: Buffer.h:77
DynamicBuffer(IRenderDevice *pDevice, const BufferDesc &Desc)
Initialies the dynamic buffer.
Definition: DynamicBuffer.cpp:37
bool PendingUpdate() const
Returns true if the buffer buffer must be updated before use (e.g. it has been resized,...
Definition: DynamicBuffer.hpp:112
Buffer interface.
Definition: Buffer.h:187
Render device interface.
Definition: RenderDevice.h:75
Template class that implements reference counting.
Definition: RefCntAutoPtr.hpp:73
uint32_t Uint32
32-bit unsigned integer
Definition: BasicTypes.h:51
Buffer description.
Definition: Buffer.h:74
Dynamically resizable buffer.
Definition: DynamicBuffer.hpp:42
IBuffer * Resize(IRenderDevice *pDevice, IDeviceContext *pContext, Uint32 NewSize)
Resizes the buffer to the new size.
Definition: DynamicBuffer.cpp:68
Device context interface.
Definition: DeviceContext.h:1460
IBuffer * GetBuffer(IRenderDevice *pDevice, IDeviceContext *pContext)
Returns the pointer to the buffer object, initializing it if necessary.
Definition: DynamicBuffer.cpp:99
const BufferDesc & GetDesc()
Returns the buffer description.
Definition: DynamicBuffer.hpp:119
The library uses Direct3D-style math:
Definition: AdvancedMath.hpp:37
Uint32 GetVersion() const
Returns dynamic buffer version. The version is incremented every time a new internal buffer is create...
Definition: DynamicBuffer.hpp:127