[−][src]Struct web_glitz::pipeline::graphics::VertexAttributeDescriptor
Describes how the data for an input attribute in a [VertexShader] is sourced from vertex buffers.
See also VertexInputLayoutDescriptor.
Fields
location: u32The shader location of the attribute described by this VertexAttributeDescriptor.
For example, if the location is 1, then this VertexAttributeDescriptor describes how
data is sourced for values of the attribute at shader attribute location 1. In GLSL, the
location for an attribute may be specified with the layout qualifier:
layout(location=1) in vec4 position;
offset_in_bytes: u8The offset in bytes of the first value in the attribute value sequence relative to the start of a [VertexInputDescriptor].
The byte-sequence for the first attribute value begins at this offset. Subsequent attribute values are obtained by adding a stride to the base offset.
format: VertexAttributeFormatThe data format in which the attribute values are stored.
Should be a format that is compatible with the type used for the attribute in the shader, see also VertexAttributeFormat::is_compatible.
Trait Implementations
impl Clone for VertexAttributeDescriptor[src]
fn clone(&self) -> VertexAttributeDescriptor[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for VertexAttributeDescriptor[src]
impl Debug for VertexAttributeDescriptor[src]
impl Hash for VertexAttributeDescriptor[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<VertexAttributeDescriptor> for VertexAttributeDescriptor[src]
fn eq(&self, other: &VertexAttributeDescriptor) -> bool[src]
fn ne(&self, other: &VertexAttributeDescriptor) -> bool[src]
impl StructuralPartialEq for VertexAttributeDescriptor[src]
Auto Trait Implementations
impl RefUnwindSafe for VertexAttributeDescriptor
impl Send for VertexAttributeDescriptor
impl Sync for VertexAttributeDescriptor
impl Unpin for VertexAttributeDescriptor
impl UnwindSafe for VertexAttributeDescriptor
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<D, T> IntoBuffer<T> for D where
D: Borrow<T> + 'static,
T: Copy + 'static, [src]
D: Borrow<T> + 'static,
T: Copy + 'static,
fn into_buffer<Rc>(Self, &Rc, BufferId, UsageHint) -> Buffer<T> where
Rc: RenderingContext + Clone + 'static, [src]
Rc: RenderingContext + Clone + 'static,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,