Open 3D Engine Atom Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::RHI::HeapMemoryHintParameters Struct Reference

Parameters when using the MemoryHint heap allocation strategy. More...

#include <AliasedHeapEnums.h>

Public Member Functions

 AZ_TYPE_INFO (HeapMemoryHintParameters, "{7B448FF1-62CF-4758-9753-D2FB64E73620}")
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 

Public Attributes

AZ::u64 m_minHeapSizeInBytes = DefaultMinHeapSize
 Minimum size of a heap to use.
 
uint32_t m_collectLatency = DefaultCollectLatency
 Number of frames a heap must be over the m_maxHeapWastedPercentage to compact (or release if is empty).
 
float m_heapSizeScaleFactor = DefaultScaleFactor
 Scale factor applied when allocating a new heap. Useful for allocating "extra" space to avoid new allocations during window resizing.
 
float m_maxHeapWastedPercentage = DefaultMaxWastedPercentage
 Max percentage of wasted space of a heap before is compacted.
 

Static Public Attributes

static constexpr size_t DefaultMinHeapSize = 32 * 1024 * 1024
 
static constexpr uint32_t DefaultCollectLatency = 1
 
static constexpr float DefaultScaleFactor = 1.0f
 
static constexpr float DefaultMaxWastedPercentage = 0.35f
 

Detailed Description

Parameters when using the MemoryHint heap allocation strategy.


The documentation for this struct was generated from the following file: