Struct phobos::task_graph::PassGraph  
source · pub struct PassGraph<'exec, 'q, D>where
    D: ExecutionDomain,{ /* private fields */ }Expand description
GPU task graph, used for synchronizing resources over a single queue.
Implementations§
source§impl<'exec, 'q, D> PassGraph<'exec, 'q, D>where
    D: ExecutionDomain,
 
impl<'exec, 'q, D> PassGraph<'exec, 'q, D>where D: ExecutionDomain,
sourcepub fn add_pass(self, pass: Pass<'exec, 'q, D>) -> Result<Self>
 
pub fn add_pass(self, pass: Pass<'exec, 'q, D>) -> Result<Self>
Add a pass to a task graph.
Errors
- This function can fail if adding the pass results in a cyclic dependency in the graph.
sourcepub fn build(self) -> Result<BuiltPassGraph<'exec, 'q, D>>
 
pub fn build(self) -> Result<BuiltPassGraph<'exec, 'q, D>>
Builds the task graph so it can be recorded into a command buffer.
sourcepub fn task_graph(
    &self
) -> &TaskGraph<GpuResource, GpuBarrier, GpuTask<'exec, 'q, GpuResource, D>>
 
pub fn task_graph( &self ) -> &TaskGraph<GpuResource, GpuBarrier, GpuTask<'exec, 'q, GpuResource, D>>
Returns the task graph built by the GPU task graph system, useful for outputting dotfiles.