Write documentation for iced_graphics
This commit is contained in:
parent
45511a442f
commit
2ca7e3c4b0
19 changed files with 271 additions and 19 deletions
|
|
@ -1,3 +1,5 @@
|
|||
//! Draw geometry using meshes of triangles.
|
||||
|
||||
/// A set of [`Vertex2D`] and indices representing a list of triangles.
|
||||
///
|
||||
/// [`Vertex2D`]: struct.Vertex2D.html
|
||||
|
|
@ -23,5 +25,8 @@ pub struct Vertex2D {
|
|||
pub color: [f32; 4],
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
unsafe impl bytemuck::Zeroable for Vertex2D {}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
unsafe impl bytemuck::Pod for Vertex2D {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue