pub enum BufferContent {
Vertex(u64, u64),
Index(u64, u64),
Uniform(u64, u64),
Raw(u64, u64),
UniformTexel(u64, u64),
Storage(u64, u64),
StorageTexel(u64, u64),
}
Expand description
(size, align)
Variants§
Vertex(u64, u64)
Index(u64, u64)
Uniform(u64, u64)
Raw(u64, u64)
UniformTexel(u64, u64)
Storage(u64, u64)
StorageTexel(u64, u64)
Implementations§
Source§impl BufferContent
impl BufferContent
pub const fn vertices<T>(count: usize) -> Self
pub const fn vertices_for<T>(slice: &[T]) -> Self
pub const fn index<T>() -> Self
pub const fn indices<T>(count: usize) -> Self
pub const fn uniform<T>() -> Self
pub const fn uniform_dynarray<T>(count: usize) -> Self
pub const fn uniform_texel<T>() -> Self
pub const fn uniform_texel_dynarray<T>(count: usize) -> Self
pub const fn storage<T>() -> Self
pub const fn storage_dynarray<T>(count: usize) -> Self
pub const fn storage_texel<T>() -> Self
pub const fn storage_texel_dynarray<T>(count: usize) -> Self
pub const fn raw<T>() -> Self
pub const fn raw_dynarray<T>(count: usize) -> Self
pub const fn raw_for_slice<T>(slice: &[T]) -> Self
Trait Implementations§
Source§impl Clone for BufferContent
impl Clone for BufferContent
Source§fn clone(&self) -> BufferContent
fn clone(&self) -> BufferContent
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 BufferContent
impl Debug for BufferContent
Source§impl PartialEq for BufferContent
impl PartialEq for BufferContent
impl Copy for BufferContent
impl Eq for BufferContent
impl StructuralPartialEq for BufferContent
Auto Trait Implementations§
impl Freeze for BufferContent
impl RefUnwindSafe for BufferContent
impl Send for BufferContent
impl Sync for BufferContent
impl Unpin for BufferContent
impl UnwindSafe for BufferContent
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