GraphicsPipelineProperties

Struct GraphicsPipelineProperties 

Source
pub struct GraphicsPipelineProperties {
    pub flags: PipelineCreateFlags,
    pub subpass_index: u32,
    pub vertex_input_state: VertexInputState,
    pub input_assembly_state: InputAssemblyState,
    pub tessellation_state: TessellationState,
    pub viewport_state: ViewportState,
    pub rasterization_state: RasterizationState,
    pub multisample_state: MultisampleState,
    pub depth_stencil_state: DepthStencilState,
    pub color_blend_state: ColorBlendState,
    pub dynamic_state: DynamicState,
}
Expand description

https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkGraphicsPipelineCreateInfo.html

Note: doesn’t include shader stages, render pass, pipeline layout or pipeline cache

Fields§

§flags: PipelineCreateFlags§subpass_index: u32§vertex_input_state: VertexInputState§input_assembly_state: InputAssemblyState§tessellation_state: TessellationState§viewport_state: ViewportState§rasterization_state: RasterizationState§multisample_state: MultisampleState§depth_stencil_state: DepthStencilState§color_blend_state: ColorBlendState§dynamic_state: DynamicState

Implementations§

Source§

impl GraphicsPipelineProperties

Source

pub fn write_create_info_builder<'a>( &'a self, builder: GraphicsPipelineCreateInfoBuilder<'a>, properties_vk: &'a GraphicsPipelinePropertiesCreateInfosVk<'a>, ) -> GraphicsPipelineCreateInfoBuilder<'a>

Returns the builder arg containing references to the structs in properties_vk.

Note: this doesn’t populate:

  • layout
  • render_pass
  • subpass
  • stages
  • base_pipeline_handle
  • base_pipeline_index
Source

pub fn vk_create_infos<'a>( &'a self, ) -> GraphicsPipelinePropertiesCreateInfosVk<'a>

Returns a set of vk::*CreateInfoBuilder structs populated by the members of self. Use this with Self::write_create_info_builder to populate a GraphicsPipelineCreateInfoBuilder.

Source

pub unsafe fn from_create_info(value: &GraphicsPipelineCreateInfo) -> Self

Safety:

  • if any of the following members aren’t null they must point to something!
    • p_vertex_input_state
    • p_input_assembly_state
    • p_tessellation_state
    • p_viewport_state
    • p_rasterization_state
    • p_multisample_state
    • p_depth_stencil_state
    • p_color_blend_state
    • p_dynamic_state
  • see docs for the following functions for additional safety requirements:
    • [VertexInputState::from_create_info_ptr]
    • [ViewportState::from_create_info_ptr]
    • [MultisampleState::from_create_info_ptr]
    • [ColorBlendState::from_create_info_ptr]
    • [DynamicState::from_create_info_ptr]
Source

pub unsafe fn from_create_info_builder( value: &GraphicsPipelineCreateInfoBuilder<'_>, ) -> Self

Trait Implementations§

Source§

impl Clone for GraphicsPipelineProperties

Source§

fn clone(&self) -> GraphicsPipelineProperties

Returns a duplicate 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 Debug for GraphicsPipelineProperties

Source§

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

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

impl Default for GraphicsPipelineProperties

Source§

fn default() -> GraphicsPipelineProperties

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

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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>,

Source§

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>,

Source§

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.