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.


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


The allocated buffer.