Trait ascending_graphics::Pass
source · pub trait Pass {
// Required method
fn render(&mut self, renderer: &GpuRenderer, encoder: &mut CommandEncoder);
}Expand description
The Pass trait represents either a render or compute pass. This way the passes can be
implemented in a modular way.
Required Methods§
sourcefn render(&mut self, renderer: &GpuRenderer, encoder: &mut CommandEncoder)
fn render(&mut self, renderer: &GpuRenderer, encoder: &mut CommandEncoder)
Encodes the commands of the current pass. In addition this function has access to all the texture views such that it can use them as color attachments or as depth stencil attachment. In the future it should also be possible to use these textures as inputs.