nw::lyt::Layout::AllocDeviceMemory Member Function

Syntax

static void * AllocDeviceMemory(
     u32 size,
     u8 alignment = 4
);

Arguments

Name Description
size Size of the memory block to be allocated.
alignment The alignment of the memory to be allocated.

Return Values

Returns the memory block's start address when the memory block was allocated. Returns NULL if it was not allocated.

Description

Allocates a memory block from device memory.

Allocates a memory block of size bytes. Before using this function, be sure to set a memory allocator using Layout::SetDeviceMemoryAllocator().

See Also

SetDeviceMemoryAllocator
FreeDeviceMemory

Revision History

2010/02/09
Initial version.

CONFIDENTIAL