pub trait RenderGroupBuilder<B: Backend, T: ?Sized>: Debug {
// Required methods
fn colors(&self) -> usize;
fn depth(&self) -> bool;
fn buffers(&self) -> Vec<(BufferId, BufferAccess)>;
fn images(&self) -> Vec<(ImageId, ImageAccess)>;
fn dependencies(&self) -> Vec<NodeId>;
fn build<'a>(
self: Box<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 method
fn into_subpass(self) -> SubpassBuilder<B, T>
where Self: Sized + 'static { ... }
}
Expand description
Builder fror render group.
Required Methods§
Sourcefn buffers(&self) -> Vec<(BufferId, BufferAccess)>
fn buffers(&self) -> Vec<(BufferId, BufferAccess)>
Get buffers used by the group
Sourcefn images(&self) -> Vec<(ImageId, ImageAccess)>
fn images(&self) -> Vec<(ImageId, ImageAccess)>
Get images used by the group
Sourcefn dependencies(&self) -> Vec<NodeId>
fn dependencies(&self) -> Vec<NodeId>
Get nodes this group depends on.
Sourcefn build<'a>(
self: Box<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: Box<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 instance.
Provided Methods§
Sourcefn into_subpass(self) -> SubpassBuilder<B, T>where
Self: Sized + 'static,
fn into_subpass(self) -> SubpassBuilder<B, T>where
Self: Sized + 'static,
Make subpass from render group.