Go to the documentation of this file.
32 #include "../../../Common/interface/FixedBlockMemoryAllocator.hpp"
41 m_RawMemAllocator(RawMemAllocator)
47 Uint32 ShaderVariableDataAllocatorCount,
48 const size_t*
const ShaderVariableDataSizes,
49 Uint32 ResourceCacheDataAllocatorCount,
50 const size_t*
const ResourceCacheDataSizes);
54 VERIFY_EXPR(m_DataAllocators ==
nullptr || Ind < m_ShaderVariableDataAllocatorCount);
55 return m_DataAllocators !=
nullptr ? m_DataAllocators[Ind] : m_RawMemAllocator;
60 VERIFY_EXPR(m_DataAllocators ==
nullptr || Ind < m_ResourceCacheDataAllocatorCount);
61 return m_DataAllocators !=
nullptr ? m_DataAllocators[m_ShaderVariableDataAllocatorCount + Ind] : m_RawMemAllocator;
70 Uint32 m_ShaderVariableDataAllocatorCount = 0;
71 Uint32 m_ResourceCacheDataAllocatorCount = 0;
Definition: SRBMemoryAllocator.hpp:37
IMemoryAllocator & GetShaderVariableDataAllocator(Uint32 Ind)
Definition: SRBMemoryAllocator.hpp:52
~SRBMemoryAllocator()
Definition: SRBMemoryAllocator.cpp:33
uint32_t Uint32
32-bit unsigned integer
Definition: BasicTypes.h:51
SRBMemoryAllocator(IMemoryAllocator &RawMemAllocator)
Definition: SRBMemoryAllocator.hpp:40
IMemoryAllocator & GetResourceCacheDataAllocator(Uint32 Ind)
Definition: SRBMemoryAllocator.hpp:58
Base interface for a raw memory allocator.
Definition: MemoryAllocator.h:41
#define VERIFY_EXPR(...)
Definition: DebugUtilities.hpp:79
void Initialize(Uint32 SRBAllocationGranularity, Uint32 ShaderVariableDataAllocatorCount, const size_t *const ShaderVariableDataSizes, Uint32 ResourceCacheDataAllocatorCount, const size_t *const ResourceCacheDataSizes)
Definition: SRBMemoryAllocator.cpp:46
Memory allocator that allocates memory in a fixed-size chunks.
Definition: FixedBlockMemoryAllocator.hpp:56
The library uses Direct3D-style math:
Definition: AdvancedMath.hpp:37