OROCHI
 
Loading...
Searching...
No Matches
GxPrimitiveManager.inl
Go to the documentation of this file.
1//===========================================================================
11//===========================================================================
12#pragma once
13
14GX_CORE_NAMESPACE_BEGIN()
15
16//---------------------------------------------------------------------------
17// パケットバッファブロックを確保
19//---------------------------------------------------------------------------
20GxPrimitiveManager::GxPacket* GxPrimitiveManager::allocatePacketBlock(void)
21{
22 return reinterpret_cast<GxPrimitiveManager::GxPacket*>(GX_ALLOCATE_MEMORY_TYPE(_pAllocatorCommand, static_cast<s32>(GxAllocatorFrame::ALLOCATE_TYPE::HEAD), PACKET_BLOCK_SIZE));
23}
24
25//---------------------------------------------------------------------------
26// コマンドバッファブロックを確保
28//---------------------------------------------------------------------------
29void* GxPrimitiveManager::allocateCommandBlock(void)
30{
31 return GX_ALLOCATE_MEMORY_TYPE(_pAllocatorCommand, static_cast<s32>(GxAllocatorFrame::ALLOCATE_TYPE::TAIL), COMMAND_BLOCK_SIZE);
32}
33
34//---------------------------------------------------------------------------
35// 頂点バッファブロックを確保
37//---------------------------------------------------------------------------
38GxPrimitiveVertex* GxPrimitiveManager::allocateVertexBlock(void)
39{
40 return reinterpret_cast<GxPrimitiveVertex*>(GX_ALLOCATE_MEMORY_TYPE(_pAllocatorVertex, static_cast<s32>(GxAllocatorFrame::ALLOCATE_TYPE::HEAD), VERTEX_BLOCK_SIZE));
41}
42
43GX_CORE_NAMESPACE_END()
#define GX_ALLOCATE_MEMORY_TYPE(allocator, type, size)
Definition GxAllocator.h:566
@ TAIL
終端側から確保
@ HEAD
先頭側から確保
プリミティブの描画発行単位を管理します。
Definition GxPrimitiveManager.h:23
描画パケット
Definition GxPrimitiveManager.h:136
プリミティブ頂点
Definition GxPrimitive.h:20