pub struct YNode { /* private fields */ }
Implementations§
Source§impl YNode
impl YNode
pub fn new(node: ResourceId<Box<dyn MaterialNode>>) -> Self
Trait Implementations§
Source§impl MaterialNode for YNode
impl MaterialNode for YNode
fn collect_nodes( &self, pool: &ResourcePool<Box<dyn MaterialNode>>, nodes: &mut Vec<ResourceId<Box<dyn MaterialNode>>>, visited: &mut HashMap<ResourceId<Box<dyn MaterialNode>>, bool>, self_rid: ResourceId<Box<dyn MaterialNode>>, )
fn borrow_contents(&self) -> Option<&UniformContents>
fn build_declaration(&self, _self_id: usize) -> String
fn build_functions(&self, _self_id: usize) -> String
fn build_fragment_shader( &self, pool: &ResourcePool<Box<dyn MaterialNode>>, visited: &mut HashMap<usize, bool>, self_id: usize, ) -> String
fn get_fragment_output(&self, self_id: usize) -> String
Auto Trait Implementations§
impl Freeze for YNode
impl !RefUnwindSafe for YNode
impl !Send for YNode
impl !Sync for YNode
impl Unpin for YNode
impl !UnwindSafe for YNode
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