[−][src]Trait rendy_graph::render::SimpleGraphicsPipelineDesc
Descriptor for simple graphics pipeline implementation.
Associated Types
type Pipeline: SimpleGraphicsPipeline<B, T>
Simple graphics pipeline implementation
Required methods
fn load_shader_set(&self, factory: &mut Factory<B>, aux: &T) -> ShaderSet<B>
Load shader set.
This function should utilize the provided ShaderSetBuilder
reflection class and return the compiled ShaderSet
.
Parameters
factory
- factory to create shader modules.
aux
- auxiliary data container. May be anything the implementation desires.
fn build<'a>(
self,
ctx: &GraphContext<B>,
factory: &mut Factory<B>,
queue: QueueId,
aux: &T,
buffers: Vec<NodeBuffer>,
images: Vec<NodeImage>,
set_layouts: &[Handle<DescriptorSetLayout<B>>]
) -> Result<Self::Pipeline, Error>
self,
ctx: &GraphContext<B>,
factory: &mut Factory<B>,
queue: QueueId,
aux: &T,
buffers: Vec<NodeBuffer>,
images: Vec<NodeImage>,
set_layouts: &[Handle<DescriptorSetLayout<B>>]
) -> Result<Self::Pipeline, Error>
Build pass instance.
Provided methods
fn builder(self) -> DescBuilder<B, T, SimpleRenderGroupDesc<Self>> where
Self: Sized,
Self: Sized,
Make simple render group builder.
fn buffers(&self) -> Vec<BufferAccess>
Get set or buffer resources the node uses.
fn images(&self) -> Vec<ImageAccess>
Get set or image resources the node uses.
fn colors(&self) -> Vec<ColorBlendDesc>
Color blend descs.
fn depth_stencil(&self) -> Option<DepthStencilDesc>
Depth stencil desc.
fn vertices(&self) -> Vec<(Vec<Element<Format>>, ElemStride, VertexInputRate)>
Get vertex input.
fn layout(&self) -> Layout
Layout for graphics pipeline
Default implementation for pipeline
will use this.
fn input_assembler(&self) -> InputAssemblerDesc
Returns the InputAssemblerDesc. Defaults to a TriangleList with Restart disabled, can be overriden.
fn pipeline(&self) -> Pipeline
Graphics pipelines