Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::BufferSuballocatorCreateInfo Struct Reference

Buffer suballocator create information. More...

#include <BufferSuballocator.h>

Public Attributes

BufferDesc Desc
 Buffer description.
 
Uint32 ExpansionSize = 0
 Buffer expansion size, in bytes.
 
Uint64 MaxSize = 0
 The maximum buffer size, in bytes.
 
bool DisableDebugValidation = false
 Whether to disable debug validation of the internal buffer structure.
 

Detailed Description

Buffer suballocator create information.

Member Data Documentation

◆ DisableDebugValidation

bool Diligent::BufferSuballocatorCreateInfo::DisableDebugValidation = false

Whether to disable debug validation of the internal buffer structure.

By default, internal buffer structure is validated in debug mode after each allocation and deallocation. This may be expensive when the buffer contains many allocations. When this flag is set to true, the validation is disabled. The flag is ignored in release builds as the validation is always disabled.

◆ ExpansionSize

Uint32 Diligent::BufferSuballocatorCreateInfo::ExpansionSize = 0

Buffer expansion size, in bytes.

When non-zero, the buffer will be expanded by the specified amount every time there is insufficient space. If zero, the buffer size will be doubled when more space is needed.

◆ MaxSize

Uint64 Diligent::BufferSuballocatorCreateInfo::MaxSize = 0

The maximum buffer size, in bytes.

If Desc.Usage == USAGE_SPARSE, also the buffer virtual size.

Remarks
If MaxSize is zero, the buffer will not be expanded beyond the initial size.