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"
40 struct IBufferSuballocator;
44 {0x562552da, 0x67f0, 0x40c2, {0xa4, 0xaf, 0xf2, 0x86, 0xdf, 0xca, 0x16, 0x26}};
49 {0x71f59b50, 0x7d13, 0x49a7, {0xa4, 0xf7, 0xfc, 0x98, 0x67, 0x15, 0xff, 0xac}};
struct INTERFACE_ID INTERFACE_ID
Definition: InterfaceID.h:54
Base interface for all dynamic objects in the engine.
Definition: Object.h:41
virtual Uint32 GetOffset() const =0
Returns the start offset of the suballocation.
virtual IObject * GetUserData() const =0
Returns the pointer to the user data object previously set with SetUserData() method.
Buffer suballocator create information.
Definition: BufferSuballocator.h:124
Buffer interface.
Definition: Buffer.h:187
Render device interface.
Definition: RenderDevice.h:75
virtual Uint32 GetVersion() const =0
Returns internal buffer version. The version is incremented every time the buffer is expanded.
virtual Uint32 GetFreeSize()=0
Returns the total remaining free size.
virtual IBuffer * GetBuffer(IRenderDevice *pDevice, IDeviceContext *pContext)=0
Returns the pointer to the internal buffer object.
Buffer suballocator.
Definition: BufferSuballocator.h:82
virtual void Allocate(Uint32 Size, Uint32 Alignment, IBufferSuballocation **ppSuballocation)=0
Performs suballocation from the buffer.
void CreateBufferSuballocator(IRenderDevice *pDevice, const BufferSuballocatorCreateInfo &CreateInfo, IBufferSuballocator **ppBufferSuballocator)
Creates a new buffer suballocator.
Definition: BufferSuballocator.cpp:242
virtual Uint32 GetSize() const =0
Returns the suballocation size.
uint32_t Uint32
32-bit unsigned integer
Definition: BasicTypes.h:51
BufferDesc Desc
Buffer description.
Definition: BufferSuballocator.h:127
virtual IBufferSuballocator * GetAllocator()=0
Returns the pointer to the parent allocator.
Buffer suballocation.
Definition: BufferSuballocator.h:53
Buffer description.
Definition: Buffer.h:74
virtual void SetUserData(IObject *pUserData)=0
Stores a pointer to the user-provided data object, which may later be retreived through GetUserData()...
Device context interface.
Definition: DeviceContext.h:1460
Uint32 SuballocationObjAllocationGranularity
Allocation granularity for IBufferSuballocator objects.
Definition: BufferSuballocator.h:143
Uint32 ExpansionSize
Buffer expansion size, in bytes.
Definition: BufferSuballocator.h:135
The library uses Direct3D-style math:
Definition: AdvancedMath.hpp:37