Home
last modified time | relevance | path

Searched refs:addrAlign (Results 1 – 1 of 1) sorted by relevance

/NW4C-2.0.3/sources/libraries/demo/
Ddemo_GraphicsMemoryAllocator.cpp72 int addrAlign = 8; in Allocate() local
79 addrAlign = ALIGNMENT_SYSTEM_BUFFER; in Allocate()
82 addrAlign = ALIGNMENT_TEXTURE; in Allocate()
85 addrAlign = ALIGNMENT_VERTEX; in Allocate()
88 addrAlign = ALIGNMENT_RENDER_BUFFER; in Allocate()
91 addrAlign = ALIGNMENT_DISPLAY_BUFFER; in Allocate()
94 addrAlign = ALIGNMENT_3D_COMMAND_BUFFER; in Allocate()
106 resultAddr = m_DeviceMemoryAllocator->Alloc(size, addrAlign); in Allocate()
110 … if (MathRoundup(m_CurrentAddrVramA, addrAlign) + size > nn::gx::GetVramEndAddr(nn::gx::MEM_VRAMA)) in Allocate()
114 m_CurrentAddrVramA = MathRoundup(m_CurrentAddrVramA, addrAlign); in Allocate()
[all …]