メモリアロケータリスト
More...
#include <GxAllocator.h>
|
enum class | ALLOCATOR_TYPE : u32 {
GLOBAL = 0
, UNIT
, EFFECT
, SOUND
,
RESOURCE
, SYSTEM
, RENDER
, PHYSICS
,
TEMPORARY
, SYSTEM_MAX
, USER_START = SYSTEM_MAX
, MAX = 16
,
INVALID = 0xFFFFFFFF
} |
| アロケータ定義 More...
|
|
static constexpr u32 | SIZE_REMAIN_ALL = U32_MAX |
| アロケータ確保メモリ残容量全割り当て時指定サイズ定数
|
|
◆ ALLOCATOR_TYPE
アロケータ定義
Enumerator |
---|
GLOBAL | グローバル
|
UNIT | ユニット
|
EFFECT | エフェクト
|
SOUND | サウンド
|
RESOURCE | リソース
|
SYSTEM | システム
|
RENDER | レンダリング
|
PHYSICS | 物理エンジン
|
TEMPORARY | テンポラリ
|
SYSTEM_MAX | システム定義アロケータ数
|
USER_START | ユーザー定義アロケータ開始
|
MAX | 定義アロケータ数
|
INVALID | 未設定アロケータリスト番号
|
◆ attach()
アロケータリストへの登録
- Parameters
-
number | [in] 登録先アロケータリスト番号 |
pAllocator | [in] 登録アロケータ |
type | [in] アロケータ処理タイプ |
◆ createAllocatorList()
アロケータリスト生成
- Parameters
-
pAllocatorInformation | [in] メモリ確保情報配列ポインタ |
count | [in] メモリ確保情報配列要素数 (アロケータ個数) |
- Returns
- 成功ならtrue
◆ detach() [1/2]
void GxAllocatorList::detach |
( |
const GxAllocator * | pAllocator | ) |
|
|
static |
アロケータリストからの解除 (アロケータ指定)
- Parameters
-
◆ detach() [2/2]
アロケータリストからの解除 (インデックス指定)
- Parameters
-
- Returns
- 解除アロケータポインタ
◆ getAllAllocator()
全アロケータ取得
- Parameters
-
dst | [out] アロケータポインタ格納先Array |
- Note
- アロケータリストに登録されているアロケータの内、共有されているもの
◆ getAllAllocatorMemorySize()
u64 GxAllocatorList::getAllAllocatorMemorySize |
( |
void | | ) |
|
|
static |
リスト内アロケータのメモリ総確保量を取得
- Returns
- AllocatorList全体の確保メモリ総量
◆ getAllocatorList() [1/2]
GxAllocatorList * GxAllocatorList::getAllocatorList |
( |
const void * | pAddress | ) |
|
|
static |
アロケータリスト取得 (確保済みアドレス指定)
- Parameters
-
- Returns
- 対象アロケータリストポインタ (未発見の場合:nullptr返却)
◆ getAllocatorList() [2/2]
アロケータリスト取得 (インデックス指定)
- Parameters
-
number | [in] 取得アロケータリストインデックス |
- Returns
- 対象アロケータリストポインタ
◆ getHardwareReservedMemoryFree()
u32 GxAllocatorList::getHardwareReservedMemoryFree |
( |
void | | ) |
|
|
static |
ハードウェア側消費用予約メモリ空きサイズ取得
- Returns
- ハードウェア側消費用予約メモリ消費サイズ (byte)
- Note
- ハードウェア側消費用予約メモリ消費サイズ = アロケータリスト生成後メモリ残容量 - 消費容量
◆ getHardwareReservedMemoryTotal()
u32 GxAllocatorList::getHardwareReservedMemoryTotal |
( |
void | | ) |
|
|
static |
ハードウェア側消費用予約メモリ合計サイズ取得
- Returns
- ハードウェア側消費用予約メモリ合計サイズ (byte)
- Note
- ハードウェア側消費用予約メモリサイズ = アロケータリスト生成後メモリ残容量
◆ getHardwareReservedMemoryUsed()
u32 GxAllocatorList::getHardwareReservedMemoryUsed |
( |
void | | ) |
|
|
static |
ハードウェア側消費用予約メモリ消費サイズ取得
- Returns
- ハードウェア側消費用予約メモリ消費サイズ (byte)
- Note
- ハードウェア側消費用予約メモリ消費サイズ = アロケータリスト生成後メモリ残容量 - 現残容量
◆ initialize()
void GxAllocatorList::initialize |
( |
const GxCreateInformation * | pUserAllocatorInformation, |
|
|
u32 | count ) |
|
static |
初期化
- Parameters
-
pUserAllocatorInformation | [in] ユーザー追加アロケータリスト |
count | [in] ユーザー追加アロケータ数 |
The documentation for this class was generated from the following files:
- C:/Users/t-arai/Documents/workspace/orochi_package_windows/middleware/GxCore/src/GxAllocator.h
- C:/Users/t-arai/Documents/workspace/orochi_package_windows/middleware/GxCore/src/GxAllocator.cpp