Struct voodoo::GraphicsPipelineBuilder
[−]
[src]
#[repr(C)]pub struct GraphicsPipelineBuilder<'b> { /* fields omitted */ }
A builder for GraphicsPipeline
.
Methods
impl<'b> GraphicsPipelineBuilder<'b>
[src]
fn new() -> GraphicsPipelineBuilder<'b>
[src]
Returns a new render pass builder.
fn flags<'s>(
&'s mut self,
flags: PipelineCreateFlags
) -> &'s mut GraphicsPipelineBuilder<'b>
[src]
&'s mut self,
flags: PipelineCreateFlags
) -> &'s mut GraphicsPipelineBuilder<'b>
Specifies how the pipeline will be generated.
fn stages<'s, 'p>(
&'s mut self,
stages: &'p [PipelineShaderStageCreateInfo]
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
[src]
&'s mut self,
stages: &'p [PipelineShaderStageCreateInfo]
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
Specifies the number of entries in the pStages array. stages
is a
list of structures describing the set of the shader stages to be
included in the graphics pipeline.
fn vertex_input_state<'s, 'p>(
&'s mut self,
vertex_input_state: &'p PipelineVertexInputStateCreateInfo
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
[src]
&'s mut self,
vertex_input_state: &'p PipelineVertexInputStateCreateInfo
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
Specifies the vertex input state details.
fn input_assembly_state<'s, 'p>(
&'s mut self,
input_assembly_state: &'p PipelineInputAssemblyStateCreateInfo
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
[src]
&'s mut self,
input_assembly_state: &'p PipelineInputAssemblyStateCreateInfo
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
Specifies the input assembly behavior, as described in Drawing Commands.
fn tessellation_state<'s, 'p>(
&'s mut self,
tessellation_state: &'p PipelineTessellationStateCreateInfo
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
[src]
&'s mut self,
tessellation_state: &'p PipelineTessellationStateCreateInfo
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
Specifies the tessellation state and is ignored if the pipeline does not include a tessellation control shader stage and tessellation evaluation shader stage.
fn viewport_state<'s, 'p>(
&'s mut self,
viewport_state: &'p PipelineViewportStateCreateInfo
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
[src]
&'s mut self,
viewport_state: &'p PipelineViewportStateCreateInfo
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
Specifies the viewport state and is ignored if the pipeline has rasterization disabled.
fn rasterization_state<'s, 'p>(
&'s mut self,
rasterization_state: &'p PipelineRasterizationStateCreateInfo
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
[src]
&'s mut self,
rasterization_state: &'p PipelineRasterizationStateCreateInfo
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
Specifies the rasterization state.
fn multisample_state<'s, 'p>(
&'s mut self,
multisample_state: &'p PipelineMultisampleStateCreateInfo
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
[src]
&'s mut self,
multisample_state: &'p PipelineMultisampleStateCreateInfo
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
Specifies the multisample state and is ignored if the pipeline has rasterization disabled.
fn depth_stencil_state<'s, 'p>(
&'s mut self,
depth_stencil_state: &'p PipelineDepthStencilStateCreateInfo
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
[src]
&'s mut self,
depth_stencil_state: &'p PipelineDepthStencilStateCreateInfo
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
Specifies the depth stencil state and is ignored if the pipeline has rasterization disabled or if the subpass of the render pass the pipeline is created against does not use a depth/stencil attachment.
fn color_blend_state<'s, 'p>(
&'s mut self,
color_blend_state: &'p PipelineColorBlendStateCreateInfo
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
[src]
&'s mut self,
color_blend_state: &'p PipelineColorBlendStateCreateInfo
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
Specifies the color blend state and is ignored if the pipeline has rasterization disabled or if the subpass of the render pass the pipeline is created against does not use any color attachments.
fn dynamic_state<'s, 'p>(
&'s mut self,
dynamic_state: &'p PipelineDynamicStateCreateInfo
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
[src]
&'s mut self,
dynamic_state: &'p PipelineDynamicStateCreateInfo
) -> &'s mut GraphicsPipelineBuilder<'b> where
'p: 'b,
Specifies which properties of the pipeline state object are dynamic and can be changed independently of the pipeline state. If not specified, no state in the pipeline is considered dynamic.
fn layout<'s, H>(&'s mut self, layout: H) -> &'s mut GraphicsPipelineBuilder<'b> where
H: Handle<Target = PipelineLayoutHandle>,
[src]
H: Handle<Target = PipelineLayoutHandle>,
Specifies the binding locations used by both the pipeline and descriptor sets used with the pipeline.
fn render_pass<'s, H>(
&'s mut self,
render_pass: H
) -> &'s mut GraphicsPipelineBuilder<'b> where
H: Handle<Target = RenderPassHandle>,
[src]
&'s mut self,
render_pass: H
) -> &'s mut GraphicsPipelineBuilder<'b> where
H: Handle<Target = RenderPassHandle>,
Specifies the environment in which the pipeline will be used; the pipeline must only be used with an instance of any render pass compatible with the one provided.
fn subpass<'s>(
&'s mut self,
subpass: u32
) -> &'s mut GraphicsPipelineBuilder<'b>
[src]
&'s mut self,
subpass: u32
) -> &'s mut GraphicsPipelineBuilder<'b>
Specifies the index of the subpass in the render pass where this pipeline will be used.
fn base_pipeline<'s, H>(
&'s mut self,
base_pipeline: H
) -> &'s mut GraphicsPipelineBuilder<'b> where
H: Handle<Target = PipelineHandle>,
[src]
&'s mut self,
base_pipeline: H
) -> &'s mut GraphicsPipelineBuilder<'b> where
H: Handle<Target = PipelineHandle>,
Specifies the pipeline to derive from.
fn base_pipeline_index<'s>(
&'s mut self,
base_pipeline_index: i32
) -> &'s mut GraphicsPipelineBuilder<'b>
[src]
&'s mut self,
base_pipeline_index: i32
) -> &'s mut GraphicsPipelineBuilder<'b>
Specifies the index into the pCreateInfos parameter to use as a pipeline to derive from.
fn build(&self, device: Device) -> VdResult<GraphicsPipeline>
[src]
Creates and returns a new GraphicsPipeline
. Use
GraphicsPipeline::create
to create multiple pipelines in one call.
Trait Implementations
impl<'b> Debug for GraphicsPipelineBuilder<'b>
[src]
impl<'b> Clone for GraphicsPipelineBuilder<'b>
[src]
fn clone(&self) -> GraphicsPipelineBuilder<'b>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'b> AsRef<GraphicsPipelineBuilder<'b>> for GraphicsPipelineBuilder<'b>
[src]
fn as_ref(&self) -> &GraphicsPipelineBuilder<'b>
[src]
Performs the conversion.
impl<'b> AsRef<GraphicsPipelineCreateInfo<'b>> for GraphicsPipelineBuilder<'b>
[src]
fn as_ref(&self) -> &GraphicsPipelineCreateInfo<'b>
[src]
Performs the conversion.