Struct ascending_graphics::LightsVertex
source · #[repr(C)]pub struct LightsVertex {
pub world_color: [f32; 4],
pub enable_lights: u32,
pub dir_count: u32,
pub area_count: u32,
}Fields§
§world_color: [f32; 4]§enable_lights: u32§dir_count: u32§area_count: u32Trait Implementations§
source§impl BufferLayout for LightsVertex
impl BufferLayout for LightsVertex
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 LightsVertex
impl Clone for LightsVertex
source§fn clone(&self) -> LightsVertex
fn clone(&self) -> LightsVertex
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 LightsVertex
impl Debug for LightsVertex
source§impl Default for LightsVertex
impl Default for LightsVertex
impl Copy for LightsVertex
impl Pod for LightsVertex
Auto Trait Implementations§
impl Freeze for LightsVertex
impl RefUnwindSafe for LightsVertex
impl Send for LightsVertex
impl Sync for LightsVertex
impl Unpin for LightsVertex
impl UnwindSafe for LightsVertex
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().