![]() |
XII Release 0.1.0
|
Public Member Functions | |
xiiGALDynamicBuffer (xiiSharedPtr< xiiGALDevice > pDevice, const xiiGALBufferCreationDescription &description) | |
XII_ALWAYS_INLINE const xiiGALBufferCreationDescription & | GetDescription () const |
Returns the buffer description. | |
XII_ALWAYS_INLINE xiiSharedPtr< xiiGALBuffer > | GetBuffer () const |
Returns a reference-counted pointer to the buffer object. | |
XII_ALWAYS_INLINE xiiUInt32 | GetVersion () const |
Returns the dynamic buffer version. The version is incremented whenever a new internal buffer is created. | |
XII_ALWAYS_INLINE bool | PendingUpdate () const |
Returns true if the buffer must be updated before use (e.g., it has been resized, but the internal buffer has not been initialized or updated). When update is not pending, Update() may be called with null command list. | |
xiiSharedPtr< xiiGALBuffer > | Resize (xiiSharedPtr< xiiGALCommandList > pCommandList, xiiUInt64 uiNewSize, bool bDiscardContent=false) |
Resizes the buffer to the new size. | |
xiiSharedPtr< xiiGALBuffer > | Update (xiiSharedPtr< xiiGALCommandList > pCommandList) |
Updates the internal buffer object, initializing or resizing as necessary. | |
xiiGALDynamicBuffer::xiiGALDynamicBuffer | ( | xiiSharedPtr< xiiGALDevice > | pDevice, |
const xiiGALBufferCreationDescription & | description ) |
|
inlinenodiscard |
Returns a reference-counted pointer to the buffer object.
xiiSharedPtr< xiiGALBuffer > xiiGALDynamicBuffer::Resize | ( | xiiSharedPtr< xiiGALCommandList > | pCommandList, |
xiiUInt64 | uiNewSize, | ||
bool | bDiscardContent = false ) |
Resizes the buffer to the new size.
pCommandList | - The command list that will be used to copy existing contents to the new buffer. This parameter may be null (see remarks). |
uiNewSize | - The new buffer size. This may be zero. |
bDiscardContent | - Whether to discard previous buffer content. |
xiiSharedPtr< xiiGALBuffer > xiiGALDynamicBuffer::Update | ( | xiiSharedPtr< xiiGALCommandList > | pCommandList | ) |
Updates the internal buffer object, initializing or resizing as necessary.
pCommandList | - The command list that will be used to copy existing contents to the new buffer. This parameter may be null (see remarks). |