MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Yantra::DependencyStage Struct Reference

One stage in a dispatch_core_dependency call. More...

#include <GpuDispatchCore.hpp>

+ Collaboration diagram for MayaFlux::Yantra::DependencyStage:

Public Attributes

GpuComputeConfig config
 
std::optional< std::array< uint32_t, 3 > > explicit_groups
 
std::function< std::vector< Portal::Graphics::HazardResource >(GpuDispatchCore &)> hazard_fn
 
std::optional< IndirectGroupsSource > indirect_groups
 Shared buffer holding this stage's workgroup counts, when they come from GPU data.
 
std::function< void(GpuDispatchCore &)> stage_fn
 

Detailed Description

One stage in a dispatch_core_dependency call.

stage_fn is invoked with this context as the active target, exactly as if the caller had just called swap_shader(config) and were about to call dispatch_core — stage_image_at, set_binding_data, stage_passthrough, set_push_constants all apply normally inside stage_fn. Works identically for image-bearing and buffer-only shaders; nothing about this struct is image-specific.

hazard_fn runs immediately after stage_fn, once this stage's resources (e.g. an image just allocated inside stage_fn) actually exist. Returns the hazard list for this stage; may be empty if nothing downstream in the same dependency call depends on this stage's output.

Definition at line 58 of file GpuDispatchCore.hpp.


The documentation for this struct was generated from the following file: