|
|
|
@ -6,7 +6,7 @@ use std::cell::RefMut;
@@ -6,7 +6,7 @@ use std::cell::RefMut;
|
|
|
|
|
use citro3d_sys::{ |
|
|
|
|
C3D_RenderTarget, C3D_RenderTargetCreate, C3D_RenderTargetDelete, C3D_DEPTHTYPE, |
|
|
|
|
}; |
|
|
|
|
use ctru::gfx::Screen; |
|
|
|
|
use ctru::services::gfx::Screen; |
|
|
|
|
use ctru::services::gspgpu::FramebufferFormat; |
|
|
|
|
use ctru_sys::{GPU_COLORBUF, GPU_DEPTHBUF}; |
|
|
|
|
|
|
|
|
@ -44,7 +44,7 @@ impl<'screen> Target<'screen> {
@@ -44,7 +44,7 @@ impl<'screen> Target<'screen> {
|
|
|
|
|
screen: RefMut<'screen, dyn Screen>, |
|
|
|
|
depth_format: Option<DepthFormat>, |
|
|
|
|
) -> Result<Self> { |
|
|
|
|
let color_format: ColorFormat = screen.get_framebuffer_format().into(); |
|
|
|
|
let color_format: ColorFormat = screen.framebuffer_format().into(); |
|
|
|
|
|
|
|
|
|
let raw = unsafe { |
|
|
|
|
C3D_RenderTargetCreate( |
|
|
|
|