Struct ascending_graphics::ImageVertex
source · #[repr(C)]pub struct ImageVertex {
pub position: [f32; 3],
pub hw: [f32; 2],
pub tex_data: [f32; 4],
pub color: u32,
pub frames: [f32; 2],
pub animate: u32,
pub use_camera: u32,
pub time: u32,
pub layer: i32,
}Fields§
§position: [f32; 3]§hw: [f32; 2]§tex_data: [f32; 4]§color: u32§frames: [f32; 2]§animate: u32§use_camera: u32§time: u32§layer: i32Trait Implementations§
source§impl BufferLayout for ImageVertex
impl BufferLayout for ImageVertex
source§fn default_buffer() -> BufferData
fn default_buffer() -> BufferData
default set as large enough to contain 10_000 sprites.
source§fn attributes() -> Vec<VertexAttribute>
fn attributes() -> Vec<VertexAttribute>
WGPU’s Shader Attributes
source§fn with_capacity(vertex_capacity: usize, _index_capacity: usize) -> BufferData
fn with_capacity(vertex_capacity: usize, _index_capacity: usize) -> BufferData
Creates a Buffer at a capacity
Capacity is a count of objects.
source§impl Clone for ImageVertex
impl Clone for ImageVertex
source§fn clone(&self) -> ImageVertex
fn clone(&self) -> ImageVertex
Returns a copy 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 ImageVertex
impl Debug for ImageVertex
source§impl Default for ImageVertex
impl Default for ImageVertex
impl Copy for ImageVertex
impl Pod for ImageVertex
Auto Trait Implementations§
impl Freeze for ImageVertex
impl RefUnwindSafe for ImageVertex
impl Send for ImageVertex
impl Sync for ImageVertex
impl Unpin for ImageVertex
impl UnwindSafe for ImageVertex
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().