#include <GpuBufferBuddyAllocator.hpp>
◆ PointerType
◆ GpuBufferBuddyAllocatorTraits()
castor3d::GpuBufferBuddyAllocatorTraits::GpuBufferBuddyAllocatorTraits |
( |
size_t | size | ) |
|
|
inlineexplicit |
Constructor.
- Parameters
-
[in] | size | The allocator size. |
◆ getNull()
Block castor3d::GpuBufferBuddyAllocatorTraits::getNull |
( |
| ) |
const |
|
inline |
- Returns
- The null memory block.
Referenced by isNull().
◆ getOffset()
size_t castor3d::GpuBufferBuddyAllocatorTraits::getOffset |
( |
PointerType | pointer | ) |
const |
|
inline |
Retrieves the offset from a memory block.
- Parameters
-
[in] | pointer | The memory block. |
- Returns
- The offset.
◆ getPointer()
PointerType castor3d::GpuBufferBuddyAllocatorTraits::getPointer |
( |
uint32_t | offset | ) |
const |
|
inline |
Creates a memory block.
- Parameters
-
[in] | offset | The block memory offset. |
- Returns
- The block.
◆ getSize()
size_t castor3d::GpuBufferBuddyAllocatorTraits::getSize |
( |
| ) |
const |
|
inline |
- Returns
- The allocator size.
◆ isNull()
bool castor3d::GpuBufferBuddyAllocatorTraits::isNull |
( |
PointerType | pointer | ) |
const |
|
inline |
The documentation for this struct was generated from the following file: