pub struct RenderGraphNode {
pub id: u32,
pub name: String,
pub node_type: RenderGraphNodeType,
pub inputs: Vec<RenderGraphResource>,
pub outputs: Vec<RenderGraphResource>,
pub shader_id: Option<u32>,
pub enabled: bool,
pub order: u32,
pub async_compute: bool,
}Fields§
§id: u32§name: String§node_type: RenderGraphNodeType§inputs: Vec<RenderGraphResource>§outputs: Vec<RenderGraphResource>§shader_id: Option<u32>§enabled: bool§order: u32§async_compute: boolImplementations§
Source§impl RenderGraphNode
impl RenderGraphNode
pub fn new( id: u32, name: impl Into<String>, node_type: RenderGraphNodeType, ) -> Self
pub fn add_input(&mut self, res: RenderGraphResource)
pub fn add_output(&mut self, res: RenderGraphResource)
pub fn is_pass(&self) -> bool
pub fn is_compute(&self) -> bool
pub fn input_count(&self) -> usize
pub fn output_count(&self) -> usize
pub fn with_shader(self, id: u32) -> Self
Trait Implementations§
Source§impl Clone for RenderGraphNode
impl Clone for RenderGraphNode
Auto Trait Implementations§
impl Freeze for RenderGraphNode
impl RefUnwindSafe for RenderGraphNode
impl Send for RenderGraphNode
impl Sync for RenderGraphNode
impl Unpin for RenderGraphNode
impl UnsafeUnpin for RenderGraphNode
impl UnwindSafe for RenderGraphNode
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.