pub trait MewVertexStruct {
type Bytes;
type Inners;
// Required methods
fn from_inners(inners: Self::Inners) -> Self;
fn from_bytes(bytes: Self::Bytes) -> Self;
fn zeroed() -> Self;
fn vertex_layout() -> VertexBufferLayout<'static>;
}Expand description
Trait for internal use to work with vertex structs.
Required Associated Types§
Required Methods§
Sourcefn from_inners(inners: Self::Inners) -> Self
fn from_inners(inners: Self::Inners) -> Self
Build the struct using its internal types.
Sourcefn from_bytes(bytes: Self::Bytes) -> Self
fn from_bytes(bytes: Self::Bytes) -> Self
Build the struct out of a byte array.
Sourcefn vertex_layout() -> VertexBufferLayout<'static>
fn vertex_layout() -> VertexBufferLayout<'static>
Get this vertex struct’s
wgpu::VertexBufferLayout.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.