|
|
|
@ -10,7 +10,7 @@ use ctru::gfx::Screen;
@@ -10,7 +10,7 @@ use ctru::gfx::Screen;
|
|
|
|
|
use ctru::services::gspgpu::FramebufferFormat; |
|
|
|
|
use ctru_sys::{GPU_COLORBUF, GPU_DEPTHBUF}; |
|
|
|
|
|
|
|
|
|
use crate::{buffers, Error, Result}; |
|
|
|
|
use crate::{Error, Result}; |
|
|
|
|
|
|
|
|
|
mod transfer; |
|
|
|
|
|
|
|
|
@ -91,16 +91,6 @@ impl<'screen> Target<'screen> {
@@ -91,16 +91,6 @@ impl<'screen> Target<'screen> {
|
|
|
|
|
pub(crate) fn as_raw(&self) -> *mut C3D_RenderTarget { |
|
|
|
|
self.raw |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
pub fn draw_arrays(&mut self, primitive: buffers::Primitive, index: buffers::Index) { |
|
|
|
|
unsafe { |
|
|
|
|
citro3d_sys::C3D_DrawArrays( |
|
|
|
|
primitive as ctru_sys::GPU_Primitive_t, |
|
|
|
|
index.as_raw(), |
|
|
|
|
index.size(), |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bitflags::bitflags! { |
|
|
|
|