pub trait RenderGroupDesc<B: Backend, T: ?Sized>: Debug {
// Required method
fn build<'a>(
self,
ctx: &GraphContext<B>,
factory: &mut Factory<B>,
queue: QueueId,
aux: &T,
framebuffer_width: u32,
framebuffer_height: u32,
subpass: Subpass<'_, B>,
buffers: Vec<NodeBuffer>,
images: Vec<NodeImage>,
) -> Result<Box<dyn RenderGroup<B, T>>, CreationError>;
// Provided methods
fn builder(self) -> DescBuilder<B, T, Self>
where Self: Sized { ... }
fn buffers(&self) -> Vec<BufferAccess> { ... }
fn images(&self) -> Vec<ImageAccess> { ... }
fn colors(&self) -> usize { ... }
fn depth(&self) -> bool { ... }
}
Expand description
Descriptor for render group
Required Methods§
Sourcefn build<'a>(
self,
ctx: &GraphContext<B>,
factory: &mut Factory<B>,
queue: QueueId,
aux: &T,
framebuffer_width: u32,
framebuffer_height: u32,
subpass: Subpass<'_, B>,
buffers: Vec<NodeBuffer>,
images: Vec<NodeImage>,
) -> Result<Box<dyn RenderGroup<B, T>>, CreationError>
fn build<'a>( self, ctx: &GraphContext<B>, factory: &mut Factory<B>, queue: QueueId, aux: &T, framebuffer_width: u32, framebuffer_height: u32, subpass: Subpass<'_, B>, buffers: Vec<NodeBuffer>, images: Vec<NodeImage>, ) -> Result<Box<dyn RenderGroup<B, T>>, CreationError>
Build render group.
Provided Methods§
Sourcefn builder(self) -> DescBuilder<B, T, Self>where
Self: Sized,
fn builder(self) -> DescBuilder<B, T, Self>where
Self: Sized,
Make render group builder.
Sourcefn buffers(&self) -> Vec<BufferAccess>
fn buffers(&self) -> Vec<BufferAccess>
Get buffers used by the group. Empty by default.
Sourcefn images(&self) -> Vec<ImageAccess>
fn images(&self) -> Vec<ImageAccess>
Get images used by the group. Empty by default.