Struct rafx_framework::graph::RenderGraphExecutor[][src]

pub struct RenderGraphExecutor<T> { /* fields omitted */ }

A wrapper around a prepared render graph and callbacks that will be hit when executing the graph

Implementations

impl<T> RenderGraphExecutor<T>[src]

pub fn new(
    device_context: &RafxDeviceContext,
    resource_context: &ResourceContext,
    graph: RenderGraphBuilder,
    swapchain_surface_info: &SwapchainSurfaceInfo,
    callbacks: RenderGraphNodeCallbacks<T>
) -> RafxResult<Self>
[src]

Create the executor. This allows the prepared graph, resources required to execute it, and callbacks that will be triggered while executing it to be passed around and executed later.

pub fn buffer_resource(
    &self,
    buffer_usage: RenderGraphBufferUsageId
) -> Option<ResourceArc<BufferResource>>
[src]

pub fn image_resource(
    &self,
    image_usage: RenderGraphImageUsageId
) -> Option<ResourceArc<ImageResource>>
[src]

pub fn image_view_resource(
    &self,
    image_usage: RenderGraphImageUsageId
) -> Option<ResourceArc<ImageViewResource>>
[src]

pub fn execute_graph(
    self,
    context: &T,
    queue: &RafxQueue
) -> RafxResult<Vec<DynCommandBuffer>>
[src]

Executes the graph, passing through the given context parameter

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.