Skip to main content

BuiltinPass

Trait BuiltinPass 

Source
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§

Source

fn name(&self) -> &str

Unique name of this pass.

Source

fn input_names(&self) -> Vec<&str>

Names of resources this pass reads.

Source

fn output_names(&self) -> Vec<&str>

Names of resources this pass writes.

Source

fn execute(&self, ctx: &PassContext)

Execute the pass (simulated rendering logic).

Provided Methods§

Source

fn pass_type(&self) -> PassType

The type of work this pass performs.

Source

fn queue_affinity(&self) -> QueueAffinity

Queue affinity.

Source

fn condition(&self) -> PassCondition

Optional condition for this pass.

Source

fn resolution_scale(&self) -> ResolutionScale

Resolution scale for this pass.

Implementors§