Struct oxygengine_ha_renderer::material::common::MaterialSignature
source · pub struct MaterialSignature { /* private fields */ }
Implementations§
source§impl MaterialSignature
impl MaterialSignature
pub fn new( mesh: MaterialMeshSignature, render_target: MaterialRenderTargetSignature, domain: Option<String>, middlewares: StringSequence ) -> Self
pub fn from_objects( vertex_layout: &VertexLayout, render_target: &RenderTarget, domain: Option<String>, middlewares: StringSequence ) -> Self
sourcepub unsafe fn from_raw(
vertex_layout: Vec<(String, usize)>,
render_target: Vec<String>,
domain: Option<String>,
middlewares: StringSequence
) -> Self
pub unsafe fn from_raw( vertex_layout: Vec<(String, usize)>, render_target: Vec<String>, domain: Option<String>, middlewares: StringSequence ) -> Self
Safety
Constructing signature from raw data might cause invalid signature. Consider using safe constructors.
pub fn hashed(&self) -> MaterialHashedSignature
pub fn sources(&self) -> impl Iterator<Item = (&str, usize)>
pub fn targets(&self) -> impl Iterator<Item = (&str, usize)>
pub fn domain(&self) -> Option<&str>
pub fn middlewares(&self) -> StrSequence<'_>
Trait Implementations§
source§impl Clone for MaterialSignature
impl Clone for MaterialSignature
source§fn clone(&self) -> MaterialSignature
fn clone(&self) -> MaterialSignature
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 MaterialSignature
impl Debug for MaterialSignature
source§impl<'de> Deserialize<'de> for MaterialSignature
impl<'de> Deserialize<'de> for MaterialSignature
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 MaterialSignature
impl Hash for MaterialSignature
source§impl PartialEq<MaterialSignature> for MaterialSignature
impl PartialEq<MaterialSignature> for MaterialSignature
source§fn eq(&self, other: &MaterialSignature) -> bool
fn eq(&self, other: &MaterialSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MaterialSignature
impl Serialize for MaterialSignature
impl Eq for MaterialSignature
impl StructuralEq for MaterialSignature
impl StructuralPartialEq for MaterialSignature
Auto Trait Implementations§
impl RefUnwindSafe for MaterialSignature
impl Send for MaterialSignature
impl Sync for MaterialSignature
impl Unpin for MaterialSignature
impl UnwindSafe for MaterialSignature
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