Function ctru_sys::vramMemAlignAt

source ·
pub unsafe extern "C" fn vramMemAlignAt(
    size: usize,
    alignment: usize,
    pos: vramAllocPos
) -> *mut c_void
Expand description

Allocates a buffer aligned to the given size in the given VRAM bank.

§Arguments

  • size - Size of the buffer to allocate.
  • alignment - Alignment to use.
  • pos - VRAM bank to use (see vramAllocPos).

§Returns

The allocated buffer.