Struct FrameGraphBuilder
pub struct FrameGraphBuilder { /* private fields */ }Expand description
Deterministic, stack-allocated frame graph builder and scheduler.
Implementations§
§impl FrameGraphBuilder
impl FrameGraphBuilder
pub const fn new() -> FrameGraphBuilder
pub const fn new() -> FrameGraphBuilder
Creates a default FrameGraphBuilder.
pub fn add_resource(
&mut self,
desc: ResourceDesc,
) -> Result<(), FrameGraphError>
pub fn add_resource( &mut self, desc: ResourceDesc, ) -> Result<(), FrameGraphError>
Register a resource target.
pub fn add_pass(&mut self, pass: PassNode) -> Result<(), FrameGraphError>
pub fn add_pass(&mut self, pass: PassNode) -> Result<(), FrameGraphError>
Register a pass node.
pub fn configure_from_profile(
&mut self,
profile: &RenderQualityProfile,
viewport_width: u32,
viewport_height: u32,
) -> Result<(), FrameGraphError>
pub fn configure_from_profile( &mut self, profile: &RenderQualityProfile, viewport_width: u32, viewport_height: u32, ) -> Result<(), FrameGraphError>
Configure active passes and resource dimensions from a RenderQualityProfile.
pub fn configure_from_profile_with_temporal(
&mut self,
profile: &RenderQualityProfile,
viewport_width: u32,
viewport_height: u32,
temporal: TemporalResolveConfig,
) -> Result<(), FrameGraphError>
pub fn configure_from_profile_with_temporal( &mut self, profile: &RenderQualityProfile, viewport_width: u32, viewport_height: u32, temporal: TemporalResolveConfig, ) -> Result<(), FrameGraphError>
Configure the frame graph with an explicitly admitted temporal output path.
pub fn compile(
&self,
vram_target_budget: Option<u64>,
) -> Result<CompiledSchedule, FrameGraphError>
pub fn compile( &self, vram_target_budget: Option<u64>, ) -> Result<CompiledSchedule, FrameGraphError>
Compile passes into a deterministic execution schedule using topological sorting. Prunes disabled passes and unreferenced transient resources.
Trait Implementations§
§impl Default for FrameGraphBuilder
impl Default for FrameGraphBuilder
§fn default() -> FrameGraphBuilder
fn default() -> FrameGraphBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FrameGraphBuilder
impl RefUnwindSafe for FrameGraphBuilder
impl Send for FrameGraphBuilder
impl Sync for FrameGraphBuilder
impl Unpin for FrameGraphBuilder
impl UnsafeUnpin for FrameGraphBuilder
impl UnwindSafe for FrameGraphBuilder
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.