Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::IVertexPoolAllocation Struct Referenceabstract

Vertex pool allocation. More...

#include <VertexPool.h>

Inheritance diagram for Diligent::IVertexPoolAllocation:
Diligent.IObject

Public Member Functions

virtual Uint32 GetStartVertex () const =0
 Returns the start vertex of the allocation.
 
virtual Uint32 GetVertexCount () const =0
 Returns the number of vertices in the allocation.
 
virtual IVertexPoolGetPool ()=0
 Returns a pointer to the parent vertex pool.
 
virtual IBufferUpdate (Uint32 Index, IRenderDevice *pDevice, IDeviceContext *pContext)=0
 Updates internal buffer at the given index.
 
virtual IBufferGetBuffer (Uint32 Index) const =0
 Returns a pointer to the internal buffer at the given index.
 
virtual void SetUserData (IObject *pUserData)=0
 
virtual IObjectGetUserData () const =0
 
- Public Member Functions inherited from Diligent.IObject
virtual void DILIGENT_CALL_TYPE QueryInterface (const INTERFACE_ID &IID, IObject **ppInterface)=0
 Queries the specific interface.
 
virtual ReferenceCounterValueType DILIGENT_CALL_TYPE AddRef ()=0
 Increments the number of strong references by 1.
 
virtual ReferenceCounterValueType DILIGENT_CALL_TYPE Release ()=0
 
virtual IReferenceCounters *DILIGENT_CALL_TYPE GetReferenceCounters () const =0
 

Detailed Description

Vertex pool allocation.

Member Function Documentation

◆ GetBuffer()

virtual IBuffer * Diligent::IVertexPoolAllocation::GetBuffer ( Uint32 Index) const
pure virtual

Returns a pointer to the internal buffer at the given index.

Remarks
This method is a shortcut for GetPool()->GetBuffer(Index).

◆ GetUserData()

virtual IObject * Diligent::IVertexPoolAllocation::GetUserData ( ) const
pure virtual

Returns a pointer to the user data object previously set with the SetUserData() method.

Returns
A pointer to the user data object.

◆ SetUserData()

virtual void Diligent::IVertexPoolAllocation::SetUserData ( IObject * pUserData)
pure virtual

Stores a pointer to the user-provided data object, which may later be retrieved through GetUserData().

Parameters
[in]pUserData- A pointer to the user data object to store.
Note
The method is not thread-safe and the application must externally synchronize the access.

◆ Update()

virtual IBuffer * Diligent::IVertexPoolAllocation::Update ( Uint32 Index,
IRenderDevice * pDevice,
IDeviceContext * pContext )
pure virtual

Updates internal buffer at the given index.

Remarks
This method is a shortcut for GetPool()->Update(Index, pDevice, pContext).