#[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>

source

pub fn flags(self, flags: PipelineCreateFlags) -> Self

source

pub fn stages(self, stages: &'a [PipelineShaderStageCreateInfo<'a>]) -> Self

source

pub fn vertex_input_state( self, vertex_input_state: &'a PipelineVertexInputStateCreateInfo<'a> ) -> Self

source

pub fn input_assembly_state( self, input_assembly_state: &'a PipelineInputAssemblyStateCreateInfo<'a> ) -> Self

source

pub fn tessellation_state( self, tessellation_state: &'a PipelineTessellationStateCreateInfo<'a> ) -> Self

source

pub fn viewport_state( self, viewport_state: &'a PipelineViewportStateCreateInfo<'a> ) -> Self

source

pub fn rasterization_state( self, rasterization_state: &'a PipelineRasterizationStateCreateInfo<'a> ) -> Self

source

pub fn multisample_state( self, multisample_state: &'a PipelineMultisampleStateCreateInfo<'a> ) -> Self

source

pub fn depth_stencil_state( self, depth_stencil_state: &'a PipelineDepthStencilStateCreateInfo<'a> ) -> Self

source

pub fn color_blend_state( self, color_blend_state: &'a PipelineColorBlendStateCreateInfo<'a> ) -> Self

source

pub fn dynamic_state( self, dynamic_state: &'a PipelineDynamicStateCreateInfo<'a> ) -> Self

source

pub fn layout(self, layout: PipelineLayout) -> Self

source

pub fn render_pass(self, render_pass: RenderPass) -> Self

source

pub fn subpass(self, subpass: u32) -> Self

source

pub fn base_pipeline_handle(self, base_pipeline_handle: Pipeline) -> Self

source

pub fn base_pipeline_index(self, base_pipeline_index: i32) -> Self

source

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>

source§

fn clone(&self) -> GraphicsPipelineCreateInfo<'a>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a> Debug for GraphicsPipelineCreateInfo<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for GraphicsPipelineCreateInfo<'_>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'a> TaggedStructure for GraphicsPipelineCreateInfo<'a>

source§

const STRUCTURE_TYPE: StructureType = StructureType::GRAPHICS_PIPELINE_CREATE_INFO

source§

impl<'a> Copy for GraphicsPipelineCreateInfo<'a>

source§

impl Send for GraphicsPipelineCreateInfo<'_>

source§

impl Sync for GraphicsPipelineCreateInfo<'_>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.