Skip to main content

FrameOperations

Trait FrameOperations 

Source
pub trait FrameOperations:
    Sync
    + Send
    + 'static {
    type Context<'a>;
    type Attachment;
    type DepthAttachment;

    // Required method
    fn begin(&mut self, pass: Pass<'_, Self>) -> Self::Context<'_>;
}
Expand description

Operations that can be performed on a single acquired frame.

Implemented by the per-frame type returned from Backend::acquire.

Required Associated Types§

Source

type Context<'a>

The render-pass context (e.g. a command encoder or render pass handle).

Source

type Attachment

A color attachment (e.g. a texture view).

Source

type DepthAttachment

A depth attachment (e.g. a depth-stencil texture view).

Required Methods§

Source

fn begin(&mut self, pass: Pass<'_, Self>) -> Self::Context<'_>

Begin a render pass and return the rendering context.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§