pub struct AttributeDesc {
pub location: Location,
pub binding: BufferIndex,
pub element: Element<Format>,
}
Expand description
Vertex attribute description. Notably, completely separate from resource Descriptor
s
used in DescriptorSet
s.
Fields§
§location: Location
Attribute binding location in the shader. Attribute locations are shared between all vertex buffers in a pipeline, meaning that even if the data for this attribute comes from a different vertex buffer, it still cannot share the same location with another attribute.
binding: BufferIndex
Binding number of the associated vertex buffer.
element: Element<Format>
Attribute element description.
Trait Implementations§
Source§impl Clone for AttributeDesc
impl Clone for AttributeDesc
Source§fn clone(&self) -> AttributeDesc
fn clone(&self) -> AttributeDesc
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 AttributeDesc
impl Debug for AttributeDesc
Source§impl Hash for AttributeDesc
impl Hash for AttributeDesc
Source§impl Ord for AttributeDesc
impl Ord for AttributeDesc
Source§fn cmp(&self, other: &AttributeDesc) -> Ordering
fn cmp(&self, other: &AttributeDesc) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AttributeDesc
impl PartialEq for AttributeDesc
Source§impl PartialOrd for AttributeDesc
impl PartialOrd for AttributeDesc
impl Copy for AttributeDesc
impl Eq for AttributeDesc
impl StructuralPartialEq for AttributeDesc
Auto Trait Implementations§
impl Freeze for AttributeDesc
impl RefUnwindSafe for AttributeDesc
impl Send for AttributeDesc
impl Sync for AttributeDesc
impl Unpin for AttributeDesc
impl UnwindSafe for AttributeDesc
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