Struct oxygengine_ha_renderer::mesh::VertexLayout
source · pub struct VertexLayout { /* private fields */ }
Implementations§
source§impl VertexLayout
impl VertexLayout
pub fn with_buffer(self, buffer: VertexBufferLayout) -> Result<Self, MeshError>
pub fn with_bounds(self, bounds: Option<String>) -> Self
pub fn with_middlewares(self, middlewares: Vec<String>) -> Self
pub fn with(self, other: Self) -> Result<Self, MeshError>
pub fn buffers(&self) -> &[VertexBufferLayout]
pub fn bounds(&self) -> Option<&str>
pub fn middlewares(&self) -> &[String]
pub fn is_subset_of(&self, other: &Self) -> bool
pub fn is_superset_of(&self, other: &Self) -> bool
pub fn attributes(&self) -> impl Iterator<Item = &VertexAttribute> + '_
pub fn vertex_attribs( &self ) -> impl Iterator<Item = (usize, &str, VertexAttribChunk)> + '_
sourcepub fn bounds_vertex_attrib(&self) -> Option<(usize, usize, usize, usize)>
pub fn bounds_vertex_attrib(&self) -> Option<(usize, usize, usize, usize)>
(buffer, channels, offset, stride)?
sourcepub fn is_compact(&self) -> bool
pub fn is_compact(&self) -> bool
Tells if entire vertex type data can be copied at once (uses single buffer).
Trait Implementations§
source§impl Clone for VertexLayout
impl Clone for VertexLayout
source§fn clone(&self) -> VertexLayout
fn clone(&self) -> VertexLayout
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 VertexLayout
impl Debug for VertexLayout
source§impl Default for VertexLayout
impl Default for VertexLayout
source§fn default() -> VertexLayout
fn default() -> VertexLayout
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for VertexLayout
impl<'de> Deserialize<'de> for VertexLayout
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for VertexLayout
impl Hash for VertexLayout
source§impl PartialEq<VertexLayout> for VertexLayout
impl PartialEq<VertexLayout> for VertexLayout
source§fn eq(&self, other: &VertexLayout) -> bool
fn eq(&self, other: &VertexLayout) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VertexLayout
impl Serialize for VertexLayout
impl Eq for VertexLayout
impl StructuralEq for VertexLayout
impl StructuralPartialEq for VertexLayout
Auto Trait Implementations§
impl RefUnwindSafe for VertexLayout
impl Send for VertexLayout
impl Sync for VertexLayout
impl Unpin for VertexLayout
impl UnwindSafe for VertexLayout
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more