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]
impl Clone for VertexComponentFormat
fn clone(&self) -> VertexComponentFormat
[src]
fn clone(&self) -> VertexComponentFormat
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for VertexComponentFormat
[src]
impl Copy for VertexComponentFormat
impl Debug for VertexComponentFormat
[src]
impl Debug for VertexComponentFormat
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for VertexComponentFormat
[src]
impl Eq for VertexComponentFormat
impl PartialEq for VertexComponentFormat
[src]
impl PartialEq for VertexComponentFormat
fn eq(&self, other: &VertexComponentFormat) -> bool
[src]
fn eq(&self, other: &VertexComponentFormat) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &VertexComponentFormat) -> bool
[src]
fn ne(&self, other: &VertexComponentFormat) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for VertexComponentFormat
impl Send for VertexComponentFormat
impl Sync for VertexComponentFormat
impl Sync for VertexComponentFormat