#[repr(C)]pub struct GliumDrawVert {
pub pos: [f32; 2],
pub uv: [f32; 2],
pub col: [u8; 4],
}Fields§
§pos: [f32; 2]§uv: [f32; 2]§col: [u8; 4]Trait Implementations§
Source§impl Clone for GliumDrawVert
impl Clone for GliumDrawVert
Source§fn clone(&self) -> GliumDrawVert
fn clone(&self) -> GliumDrawVert
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GliumDrawVert
impl Debug for GliumDrawVert
Source§impl PartialEq for GliumDrawVert
impl PartialEq for GliumDrawVert
Source§impl Vertex for GliumDrawVert
impl Vertex for GliumDrawVert
Source§fn build_bindings() -> VertexFormat
fn build_bindings() -> VertexFormat
Builds the
VertexFormat representing the layout of this element.Source§fn is_supported<C>(caps: &C) -> boolwhere
C: CapabilitiesSource + ?Sized,
fn is_supported<C>(caps: &C) -> boolwhere
C: CapabilitiesSource + ?Sized,
Returns true if the backend supports this vertex format.
impl Copy for GliumDrawVert
impl StructuralPartialEq for GliumDrawVert
Auto Trait Implementations§
impl Freeze for GliumDrawVert
impl RefUnwindSafe for GliumDrawVert
impl Send for GliumDrawVert
impl Sync for GliumDrawVert
impl Unpin for GliumDrawVert
impl UnwindSafe for GliumDrawVert
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere
T: Copy,
Source§unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
Prepares an output buffer, then turns this buffer into an
Owned.
User-provided closure F must only write to and not read from &mut Self.Source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
Source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
Source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
Source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.