Struct ash::vk::definitions::GraphicsPipelineCreateInfo
source · #[repr(C)]pub struct GraphicsPipelineCreateInfo<'a> {Show 20 fields
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: PipelineCreateFlags,
pub stage_count: u32,
pub p_stages: *const PipelineShaderStageCreateInfo<'a>,
pub p_vertex_input_state: *const PipelineVertexInputStateCreateInfo<'a>,
pub p_input_assembly_state: *const PipelineInputAssemblyStateCreateInfo<'a>,
pub p_tessellation_state: *const PipelineTessellationStateCreateInfo<'a>,
pub p_viewport_state: *const PipelineViewportStateCreateInfo<'a>,
pub p_rasterization_state: *const PipelineRasterizationStateCreateInfo<'a>,
pub p_multisample_state: *const PipelineMultisampleStateCreateInfo<'a>,
pub p_depth_stencil_state: *const PipelineDepthStencilStateCreateInfo<'a>,
pub p_color_blend_state: *const PipelineColorBlendStateCreateInfo<'a>,
pub p_dynamic_state: *const PipelineDynamicStateCreateInfo<'a>,
pub layout: PipelineLayout,
pub render_pass: RenderPass,
pub subpass: u32,
pub base_pipeline_handle: Pipeline,
pub base_pipeline_index: i32,
pub _marker: PhantomData<&'a ()>,
}
Expand description
Fields§
§s_type: StructureType
§p_next: *const c_void
§flags: PipelineCreateFlags
§stage_count: u32
§p_stages: *const PipelineShaderStageCreateInfo<'a>
§p_vertex_input_state: *const PipelineVertexInputStateCreateInfo<'a>
§p_input_assembly_state: *const PipelineInputAssemblyStateCreateInfo<'a>
§p_tessellation_state: *const PipelineTessellationStateCreateInfo<'a>
§p_viewport_state: *const PipelineViewportStateCreateInfo<'a>
§p_rasterization_state: *const PipelineRasterizationStateCreateInfo<'a>
§p_multisample_state: *const PipelineMultisampleStateCreateInfo<'a>
§p_depth_stencil_state: *const PipelineDepthStencilStateCreateInfo<'a>
§p_color_blend_state: *const PipelineColorBlendStateCreateInfo<'a>
§p_dynamic_state: *const PipelineDynamicStateCreateInfo<'a>
§layout: PipelineLayout
§render_pass: RenderPass
§subpass: u32
§base_pipeline_handle: Pipeline
§base_pipeline_index: i32
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> GraphicsPipelineCreateInfo<'a>
impl<'a> GraphicsPipelineCreateInfo<'a>
pub fn flags(self, flags: PipelineCreateFlags) -> Self
pub fn stages(self, stages: &'a [PipelineShaderStageCreateInfo<'a>]) -> Self
pub fn vertex_input_state( self, vertex_input_state: &'a PipelineVertexInputStateCreateInfo<'a>, ) -> Self
pub fn input_assembly_state( self, input_assembly_state: &'a PipelineInputAssemblyStateCreateInfo<'a>, ) -> Self
pub fn tessellation_state( self, tessellation_state: &'a PipelineTessellationStateCreateInfo<'a>, ) -> Self
pub fn viewport_state( self, viewport_state: &'a PipelineViewportStateCreateInfo<'a>, ) -> Self
pub fn rasterization_state( self, rasterization_state: &'a PipelineRasterizationStateCreateInfo<'a>, ) -> Self
pub fn multisample_state( self, multisample_state: &'a PipelineMultisampleStateCreateInfo<'a>, ) -> Self
pub fn depth_stencil_state( self, depth_stencil_state: &'a PipelineDepthStencilStateCreateInfo<'a>, ) -> Self
pub fn color_blend_state( self, color_blend_state: &'a PipelineColorBlendStateCreateInfo<'a>, ) -> Self
pub fn dynamic_state( self, dynamic_state: &'a PipelineDynamicStateCreateInfo<'a>, ) -> Self
pub fn layout(self, layout: PipelineLayout) -> Self
pub fn render_pass(self, render_pass: RenderPass) -> Self
pub fn subpass(self, subpass: u32) -> Self
pub fn base_pipeline_handle(self, base_pipeline_handle: Pipeline) -> Self
pub fn base_pipeline_index(self, base_pipeline_index: i32) -> Self
sourcepub fn push_next<T: ExtendsGraphicsPipelineCreateInfo + ?Sized>(
self,
next: &'a mut T,
) -> Self
pub fn push_next<T: ExtendsGraphicsPipelineCreateInfo + ?Sized>( self, next: &'a mut T, ) -> Self
Prepends the given extension struct between the root and the first pointer. This
method only exists on structs that can be passed to a function directly. Only
valid extension structs can be pushed into the chain.
If the chain looks like A -> B -> C
, and you call x.push_next(&mut D)
, then the
chain will look like A -> D -> B -> C
.
Trait Implementations§
source§impl<'a> Clone for GraphicsPipelineCreateInfo<'a>
impl<'a> Clone for GraphicsPipelineCreateInfo<'a>
source§fn clone(&self) -> GraphicsPipelineCreateInfo<'a>
fn clone(&self) -> GraphicsPipelineCreateInfo<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for GraphicsPipelineCreateInfo<'a>
impl<'a> Debug for GraphicsPipelineCreateInfo<'a>
source§impl Default for GraphicsPipelineCreateInfo<'_>
impl Default for GraphicsPipelineCreateInfo<'_>
source§impl<'a> TaggedStructure for GraphicsPipelineCreateInfo<'a>
impl<'a> TaggedStructure for GraphicsPipelineCreateInfo<'a>
const STRUCTURE_TYPE: StructureType = StructureType::GRAPHICS_PIPELINE_CREATE_INFO
impl<'a> Copy for GraphicsPipelineCreateInfo<'a>
impl Send for GraphicsPipelineCreateInfo<'_>
impl Sync for GraphicsPipelineCreateInfo<'_>
Auto Trait Implementations§
impl<'a> Freeze for GraphicsPipelineCreateInfo<'a>
impl<'a> RefUnwindSafe for GraphicsPipelineCreateInfo<'a>
impl<'a> Unpin for GraphicsPipelineCreateInfo<'a>
impl<'a> UnwindSafe for GraphicsPipelineCreateInfo<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more