Struct script::dom::vertexarrayobject::VertexAttribData
source · pub struct VertexAttribData {
pub enabled_as_array: bool,
pub size: u8,
pub type_: u32,
bytes_per_vertex: u8,
pub normalized: bool,
pub stride: u8,
pub offset: u32,
pub buffer: Option<Dom<WebGLBuffer>>,
pub divisor: u32,
}
Fields§
§enabled_as_array: bool
§size: u8
§type_: u32
§bytes_per_vertex: u8
§normalized: bool
§stride: u8
§offset: u32
§buffer: Option<Dom<WebGLBuffer>>
§divisor: u32
Implementations§
source§impl VertexAttribData
impl VertexAttribData
pub fn buffer(&self) -> Option<&WebGLBuffer>
pub fn max_vertices(&self) -> u32
Trait Implementations§
source§impl Clone for VertexAttribData
impl Clone for VertexAttribData
source§fn clone(&self) -> VertexAttribData
fn clone(&self) -> VertexAttribData
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 Default for VertexAttribData
impl Default for VertexAttribData
source§impl MallocSizeOf for VertexAttribData
impl MallocSizeOf for VertexAttribData
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Auto Trait Implementations§
impl !RefUnwindSafe for VertexAttribData
impl !Send for VertexAttribData
impl !Sync for VertexAttribData
impl Unpin for VertexAttribData
impl !UnwindSafe for VertexAttribData
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere R: Read + ReadEndian<P>, P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.