#[repr(C)]pub struct VertexAttributeDescriptor {
pub offset: u64,
pub format: VertexFormat,
pub shader_location: u32,
}
Expand description
Vertex inputs (attributes) to shaders.
Arrays of these can be made with the [vertex_attr_array
] macro. Vertex attributes are assumed to be tightly packed.
Fields§
§offset: u64
Byte offset of the start of the input
format: VertexFormat
Format of the input
shader_location: u32
Location for this input. Must match the location in the shader.
Trait Implementations§
Source§impl Clone for VertexAttributeDescriptor
impl Clone for VertexAttributeDescriptor
Source§fn clone(&self) -> VertexAttributeDescriptor
fn clone(&self) -> VertexAttributeDescriptor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VertexAttributeDescriptor
impl Debug for VertexAttributeDescriptor
Source§impl<'de> Deserialize<'de> for VertexAttributeDescriptor
impl<'de> Deserialize<'de> for VertexAttributeDescriptor
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VertexAttributeDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VertexAttributeDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for VertexAttributeDescriptor
impl Hash for VertexAttributeDescriptor
Source§impl Serialize for VertexAttributeDescriptor
impl Serialize for VertexAttributeDescriptor
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for VertexAttributeDescriptor
impl StructuralPartialEq for VertexAttributeDescriptor
Auto Trait Implementations§
impl Freeze for VertexAttributeDescriptor
impl RefUnwindSafe for VertexAttributeDescriptor
impl Send for VertexAttributeDescriptor
impl Sync for VertexAttributeDescriptor
impl Unpin for VertexAttributeDescriptor
impl UnwindSafe for VertexAttributeDescriptor
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