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

Dynamic buffer create information. More...

#include <DynamicBuffer.hpp>

Public Attributes

BufferDesc Desc
 Buffer description.
 
Uint32 MemoryPageSize = 64 << 10
 The size of the memory page for the sparse buffer.
 
Uint64 VirtualSize = Uint64{1} << Uint64{30}
 

Detailed Description

Dynamic buffer create information.

Member Data Documentation

◆ MemoryPageSize

Uint32 Diligent::DynamicBufferCreateInfo::MemoryPageSize = 64 << 10

The size of the memory page for the sparse buffer.

This value is only relevant when Desc.Usage == USAGE_SPARSE and defines the memory page size of the device memory object that is backing the buffer.

Memory page size should be a multiple of SparseResources.StandardBlockSize. If it is not, the engine automatically aligns the value up to the closest multiple of the block size.

◆ VirtualSize

Uint64 Diligent::DynamicBufferCreateInfo::VirtualSize = Uint64{1} << Uint64{30}

When Desc.Usage == USAGE_SPARSE, the virtual size of the sparse buffer; ignored otherwise.