Struct oxygengine_ha_renderer::material::graph::node::MaterialGraphOutput
source · pub struct MaterialGraphOutput {
pub name: String,
pub undirected: bool,
pub data_type: MaterialDataType,
pub value_type: MaterialValueType,
pub shader_type: MaterialShaderType,
/* private fields */
}
Fields§
§name: String
§undirected: bool
§data_type: MaterialDataType
§value_type: MaterialValueType
§shader_type: MaterialShaderType
Implementations§
source§impl MaterialGraphOutput
impl MaterialGraphOutput
pub fn new( name: String, undirected: bool, data_type: MaterialDataType, value_type: MaterialValueType, shader_type: MaterialShaderType ) -> Self
pub fn vs_position() -> Self
pub fn vs_point_size() -> Self
pub fn vs_clip_distance() -> Self
pub fn fs_frag_depth() -> Self
pub fn is_middleware_output(&self) -> bool
pub fn is_vertex_output(&self) -> bool
pub fn is_fragment_output(&self) -> bool
pub fn has_input(&self, id: MaterialGraphNodeId) -> bool
pub fn clone_unconnected(&self) -> Self
Trait Implementations§
source§impl Clone for MaterialGraphOutput
impl Clone for MaterialGraphOutput
source§fn clone(&self) -> MaterialGraphOutput
fn clone(&self) -> MaterialGraphOutput
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 MaterialGraphOutput
impl Debug for MaterialGraphOutput
source§impl<'de> Deserialize<'de> for MaterialGraphOutput
impl<'de> Deserialize<'de> for MaterialGraphOutput
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 From<MaterialGraphOutput> for MaterialGraphNode
impl From<MaterialGraphOutput> for MaterialGraphNode
source§fn from(node: MaterialGraphOutput) -> Self
fn from(node: MaterialGraphOutput) -> Self
Converts to this type from the input type.
source§impl PartialEq<MaterialGraphOutput> for MaterialGraphOutput
impl PartialEq<MaterialGraphOutput> for MaterialGraphOutput
source§fn eq(&self, other: &MaterialGraphOutput) -> bool
fn eq(&self, other: &MaterialGraphOutput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MaterialGraphOutput
impl Serialize for MaterialGraphOutput
impl StructuralPartialEq for MaterialGraphOutput
Auto Trait Implementations§
impl RefUnwindSafe for MaterialGraphOutput
impl Send for MaterialGraphOutput
impl Sync for MaterialGraphOutput
impl Unpin for MaterialGraphOutput
impl UnwindSafe for MaterialGraphOutput
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