Struct caper::types::Attr
[−]
[src]
pub struct Attr { pub world_position: Vector3, pub world_rotation: Quaternion, pub world_scale: Vector3, }
struct for shader attributes
Fields
world_position: Vector3
The world position to be passed to the shader
world_rotation: Quaternion
The world rotation to be passed to the shader
world_scale: Vector3
The world scale to be passed to the shader
Trait Implementations
impl Copy for Attr
[src]
impl Clone for Attr
[src]
fn clone(&self) -> Attr
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 PartialEq for Attr
[src]
fn eq(&self, __arg_0: &Attr) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Attr) -> bool
This method tests for !=
.
impl Vertex for Attr
fn build_bindings() -> VertexFormat
Builds the VertexFormat
representing the layout of this element.
fn is_supported<C>(caps: &C) -> bool where
C: CapabilitiesSource + ?Sized,
C: CapabilitiesSource + ?Sized,
Returns true if the backend supports this vertex format.