Struct luminance::vertex::VertexComponentFormat
[−]
[src]
pub struct VertexComponentFormat { pub comp_type: Type, pub dim: Dim, pub unit_size: usize, pub align: usize, }
Vertex component format. It gives information on how vertices should be passed to the GPU and optimized in buffers.
Fields
comp_type: Type
Type of the component. See Type
for further details.
dim: Dim
Dimension of the component. It should be in 1–4. See Dim
for further details.
unit_size: usize
Size in bytes that a single element of the component takes. That is, if your component has a dimension set to 2, then the unit size should be the size of a single element (not two).
align: usize
Alignment of the component. The best advice is to respect what Rust does, so it’s highly
recommended to use ::std::mem::align_of
to let it does the job for you.
Trait Implementations
impl Clone for VertexComponentFormat
[src]
fn clone(&self) -> VertexComponentFormat
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for VertexComponentFormat
[src]
impl Debug for VertexComponentFormat
[src]
impl Eq for VertexComponentFormat
[src]
impl PartialEq for VertexComponentFormat
[src]
fn eq(&self, __arg_0: &VertexComponentFormat) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &VertexComponentFormat) -> bool
This method tests for !=
.