pub struct VertexAttribute {
pub name: &'static str,
pub count: u32,
pub kind: VertexAttributeKind,
}Fields§
§name: &'static str§count: u32§kind: VertexAttributeKindImplementations§
Source§impl VertexAttribute
impl VertexAttribute
pub const fn quad_instance_vertex() -> Self
pub const fn gpu_buffer_address(name: &'static str) -> Self
pub const fn f32x4(name: &'static str) -> Self
pub const fn f32x3(name: &'static str) -> Self
pub const fn f32x2(name: &'static str) -> Self
pub const fn f32(name: &'static str) -> Self
pub const fn i32x4(name: &'static str) -> Self
pub const fn i32x2(name: &'static str) -> Self
pub const fn i32(name: &'static str) -> Self
pub const fn u16(name: &'static str) -> Self
pub const fn u16x2(name: &'static str) -> Self
Source§impl VertexAttribute
impl VertexAttribute
fn size_in_bytes(&self) -> u32
fn bind_to_vao( &self, attr_index: GLuint, divisor: GLuint, stride: GLint, offset: GLuint, gl: &dyn Gl, )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VertexAttribute
impl RefUnwindSafe for VertexAttribute
impl Send for VertexAttribute
impl Sync for VertexAttribute
impl Unpin for VertexAttribute
impl UnsafeUnpin for VertexAttribute
impl UnwindSafe for VertexAttribute
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> 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