pub trait BuiltinPass {
// Required methods
fn name(&self) -> &str;
fn input_names(&self) -> Vec<&str>;
fn output_names(&self) -> Vec<&str>;
fn execute(&self, ctx: &PassContext);
// Provided methods
fn pass_type(&self) -> PassType { ... }
fn queue_affinity(&self) -> QueueAffinity { ... }
fn condition(&self) -> PassCondition { ... }
fn resolution_scale(&self) -> ResolutionScale { ... }
}Expand description
Trait implemented by all built-in passes. Provides resource declaration and execution.
Required Methods§
Sourcefn input_names(&self) -> Vec<&str>
fn input_names(&self) -> Vec<&str>
Names of resources this pass reads.
Sourcefn output_names(&self) -> Vec<&str>
fn output_names(&self) -> Vec<&str>
Names of resources this pass writes.
Sourcefn execute(&self, ctx: &PassContext)
fn execute(&self, ctx: &PassContext)
Execute the pass (simulated rendering logic).
Provided Methods§
Sourcefn queue_affinity(&self) -> QueueAffinity
fn queue_affinity(&self) -> QueueAffinity
Queue affinity.
Sourcefn condition(&self) -> PassCondition
fn condition(&self) -> PassCondition
Optional condition for this pass.
Sourcefn resolution_scale(&self) -> ResolutionScale
fn resolution_scale(&self) -> ResolutionScale
Resolution scale for this pass.