Function ctru_sys::gfxInit

source ·
pub unsafe extern "C" fn gfxInit(
    topFormat: GSPGPU_FramebufferFormat,
    bottomFormat: GSPGPU_FramebufferFormat,
    vrambuffers: bool
)
Expand description

Initializes the LCD framebuffers.

§Arguments

  • topFormat - The format of the top screen framebuffers.
  • bottomFormat - The format of the bottom screen framebuffers.
  • vramBuffers - Whether to allocate the framebuffers in VRAM.

This function allocates memory for the framebuffers in the specified memory region. Initially, stereoscopic 3D is disabled and double buffering is enabled.

Note: This function internally calls gspInit.