pub struct IndexedPrimitive<VT> {
pub vertices: Vec<VT>,
pub indices: Vec<u16>,
}
Fields§
§vertices: Vec<VT>
§indices: Vec<u16>
Implementations§
Source§impl<VT> IndexedPrimitive<VT>
impl<VT> IndexedPrimitive<VT>
pub fn vertices_byte_length(&self) -> usize
pub fn indices_byte_length(&self) -> usize
Source§impl IndexedPrimitive<Vector4F32>
impl IndexedPrimitive<Vector4F32>
Sourcepub fn plane(size: f32) -> Self
pub fn plane(size: f32) -> Self
0.0 to size squared 2d plane, vertices for rendered as triangle strip, indices for rendered as triangle list
Sourcepub fn plane_centric(size: f32) -> Self
pub fn plane_centric(size: f32) -> Self
-size to size squared 2d plane, vertices for rendered as triangle strip, indices for rendered as triangle list
Source§impl IndexedPrimitive<VertexUV2D>
impl IndexedPrimitive<VertexUV2D>
Sourcepub fn uv_plane(size: f32) -> Self
pub fn uv_plane(size: f32) -> Self
0.0 to size squared 2d plane with normalized uv, vertices for rendered as triangle strip, indices for rendered as triangle list
Sourcepub fn uv_plane_centric(size: f32) -> Self
pub fn uv_plane_centric(size: f32) -> Self
-size to size squared 2d plane with normalized uv, vertices for rendered as triangle strip, indices for rendered as triangle list
Trait Implementations§
Source§impl<VT: Clone> Clone for IndexedPrimitive<VT>
impl<VT: Clone> Clone for IndexedPrimitive<VT>
Source§fn clone(&self) -> IndexedPrimitive<VT>
fn clone(&self) -> IndexedPrimitive<VT>
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<VT: Debug> Debug for IndexedPrimitive<VT>
impl<VT: Debug> Debug for IndexedPrimitive<VT>
Source§impl<VT: Clone> ModelData for IndexedPrimitive<VT>
impl<VT: Clone> ModelData for IndexedPrimitive<VT>
type PreallocOffsetType = (u64, u64)
type RendererParams = ()
fn prealloc(&self, alloc: &mut BufferPrealloc<'_>) -> (u64, u64)
fn stage_data_into( &self, mem: &MappedMemory<'_, impl DeviceMemoryMut + ?Sized>, (vo, io): (u64, u64), )
Auto Trait Implementations§
impl<VT> Freeze for IndexedPrimitive<VT>
impl<VT> RefUnwindSafe for IndexedPrimitive<VT>where
VT: RefUnwindSafe,
impl<VT> Send for IndexedPrimitive<VT>where
VT: Send,
impl<VT> Sync for IndexedPrimitive<VT>where
VT: Sync,
impl<VT> Unpin for IndexedPrimitive<VT>where
VT: Unpin,
impl<VT> UnwindSafe for IndexedPrimitive<VT>where
VT: UnwindSafe,
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more