/// Returns a [`RawFrameBuffer`] for the screen (if the framebuffer was allocated on the HEAP).
///
///
/// Note that the pointer of the framebuffer returned by this function can
/// # Notes
/// change after each call to this function if double buffering is enabled.
///
/// The pointer of the framebuffer returned by this function can change after each call
/// to this function if double buffering is enabled, so it's suggested to NOT save it for later use.
///
/// # Panics
///
/// If the [`Gfx`] service was initialised via [`Gfx::with_formats_vram()`] this function will crash the program with an ARM exception.
#[doc(alias = "gfxGetFramebuffer")]
#[doc(alias = "gfxGetFramebuffer")]
fnraw_framebuffer(&mutself)-> RawFrameBuffer{
fnraw_framebuffer(&mutself)-> RawFrameBuffer{
letmutwidth: u16=0;
letmutwidth: u16=0;
@ -251,7 +257,8 @@ impl Gfx {
///
///
/// # Notes
/// # Notes
///
///
/// It's the same as calling:
/// The new `Gfx` instance will allocate the needed framebuffers in the CPU-GPU shared memory region (to ensure compatibiltiy with all possible uses of the `Gfx` service).
/// As such, it's the same as calling:
///
///
/// ```no_run
/// ```no_run
/// # use std::error::Error;
/// # use std::error::Error;
@ -260,12 +267,14 @@ impl Gfx {
/// # use ctru::services::gfx::Gfx;
/// # use ctru::services::gfx::Gfx;
/// # use ctru::services::gspgpu::FramebufferFormat;
/// # use ctru::services::gspgpu::FramebufferFormat;