Skip to main content

RenderGraphEditor

Struct RenderGraphEditor 

Source
pub struct RenderGraphEditor {
Show 19 fields pub name: String, pub passes: HashMap<PassId, PassNode>, pub resources: HashMap<ResourceId, RenderGraphResource>, pub compiled: Option<CompiledRenderGraph>, pub layout: Option<GraphLayout>, pub stats: FrameStatistics, pub validation_report: Option<ValidationReport>, pub selected_pass: Option<PassId>, pub selected_resource: Option<ResourceId>, pub hover_pass: Option<PassId>, pub drag_pass: Option<PassId>, pub drag_offset: Vec2, pub camera_pos: Vec2, pub camera_zoom: f32, pub show_resources: bool, pub show_barriers: bool, pub show_stats: bool, pub show_validation: bool, pub output_resources: Vec<ResourceId>, /* private fields */
}

Fields§

§name: String§passes: HashMap<PassId, PassNode>§resources: HashMap<ResourceId, RenderGraphResource>§compiled: Option<CompiledRenderGraph>§layout: Option<GraphLayout>§stats: FrameStatistics§validation_report: Option<ValidationReport>§selected_pass: Option<PassId>§selected_resource: Option<ResourceId>§hover_pass: Option<PassId>§drag_pass: Option<PassId>§drag_offset: Vec2§camera_pos: Vec2§camera_zoom: f32§show_resources: bool§show_barriers: bool§show_stats: bool§show_validation: bool§output_resources: Vec<ResourceId>

Implementations§

Source§

impl RenderGraphEditor

Source

pub fn new(name: &str) -> Self

Source

pub fn alloc_resource_id(&mut self) -> ResourceId

Source

pub fn alloc_pass_id(&mut self) -> PassId

Source

pub fn add_resource( &mut self, name: &str, desc: ResourceDesc, lifetime: ResourceLifetime, ) -> ResourceId

Source

pub fn add_transient_texture( &mut self, name: &str, desc: TextureDesc, ) -> ResourceId

Source

pub fn add_persistent_texture( &mut self, name: &str, desc: TextureDesc, ) -> ResourceId

Source

pub fn add_pass(&mut self, name: &str, desc: PassDesc) -> PassId

Source

pub fn set_pass_reads(&mut self, pass: PassId, reads: Vec<ResourceId>)

Source

pub fn set_pass_writes(&mut self, pass: PassId, writes: Vec<ResourceId>)

Source

pub fn set_output_resources(&mut self, outputs: Vec<ResourceId>)

Source

pub fn compile(&mut self) -> Result<(), String>

Source

pub fn validate(&mut self) -> &ValidationReport

Source

pub fn visualize(&mut self)

Source

pub fn serialize(&self) -> SerializedRenderGraph

Source

pub fn to_json(&self) -> String

Source

pub fn build_standard_deferred_pipeline( width: u32, height: u32, ) -> RenderGraphEditor

Source

pub fn screen_to_world(&self, screen: Vec2) -> Vec2

Source

pub fn world_to_screen(&self, world: Vec2) -> Vec2

Source

pub fn zoom_around(&mut self, center: Vec2, delta: f32)

Source

pub fn begin_drag_pass(&mut self, pass: PassId, mouse_pos: Vec2)

Source

pub fn update_drag(&mut self, mouse_pos: Vec2)

Source

pub fn end_drag(&mut self)

Source

pub fn hit_test_pass(&self, mouse_pos: Vec2) -> Option<PassId>

Source

pub fn get_pass_port_position( &self, pass: PassId, is_output: bool, port_index: u32, ) -> Vec2

Source

pub fn update_pass_stats(&mut self, pass_id: PassId, stats: PassStatistics)

Source

pub fn get_stats_summary(&self) -> String

Source

pub fn get_barriers_for_pass(&self, pass_id: PassId) -> Vec<&ImageBarrier>

Source

pub fn count_total_barriers(&self) -> usize

Source

pub fn describe_compiled(&self) -> String

For debugging: print a text description of the compiled graph

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast for T
where T: Any,

Source§

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>

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)

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)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more