Skip to content

Commit

Permalink
feat: Clone + Copy for buffer and attrib
Browse files Browse the repository at this point in the history
  • Loading branch information
0x00002a committed Feb 15, 2024
1 parent d235e1a commit cd1a9c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion citro3d/src/attrib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::mem::MaybeUninit;

/// Vertex attribute info. This struct describes how vertex buffers are
/// layed out and used (i.e. the shape of the vertex data).
#[derive(Debug)]
#[derive(Debug, Clone, Copy)]
#[doc(alias = "C3D_AttrInfo")]
pub struct Info(pub(crate) citro3d_sys::C3D_AttrInfo);

Expand Down
2 changes: 1 addition & 1 deletion citro3d/src/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::attrib;

/// Vertex buffer info. This struct is used to describe the shape of the buffer
/// data to be sent to the GPU for rendering.
#[derive(Debug)]
#[derive(Debug, Clone, Copy)]
#[doc(alias = "C3D_BufInfo")]
pub struct Info(pub(crate) citro3d_sys::C3D_BufInfo);

Expand Down

0 comments on commit cd1a9c8

Please sign in to comment.