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
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: DynamicStateImplementations§
Source§impl GraphicsPipelineProperties
impl GraphicsPipelineProperties
Sourcepub fn write_create_info_builder<'a>(
&'a self,
builder: GraphicsPipelineCreateInfoBuilder<'a>,
properties_vk: &'a GraphicsPipelinePropertiesCreateInfosVk<'a>,
) -> GraphicsPipelineCreateInfoBuilder<'a>
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:
layoutrender_passsubpassstagesbase_pipeline_handlebase_pipeline_index
Sourcepub fn vk_create_infos<'a>(
&'a self,
) -> GraphicsPipelinePropertiesCreateInfosVk<'a>
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.
Sourcepub unsafe fn from_create_info(value: &GraphicsPipelineCreateInfo) -> Self
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_statep_input_assembly_statep_tessellation_statep_viewport_statep_rasterization_statep_multisample_statep_depth_stencil_statep_color_blend_statep_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]
- [
Sourcepub unsafe fn from_create_info_builder(
value: &GraphicsPipelineCreateInfoBuilder<'_>,
) -> Self
pub unsafe fn from_create_info_builder( value: &GraphicsPipelineCreateInfoBuilder<'_>, ) -> Self
Safety requirements found in docs for the following:
Trait Implementations§
Source§impl Clone for GraphicsPipelineProperties
impl Clone for GraphicsPipelineProperties
Source§fn clone(&self) -> GraphicsPipelineProperties
fn clone(&self) -> GraphicsPipelineProperties
Returns a duplicate 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 Debug for GraphicsPipelineProperties
impl Debug for GraphicsPipelineProperties
Source§impl Default for GraphicsPipelineProperties
impl Default for GraphicsPipelineProperties
Source§fn default() -> GraphicsPipelineProperties
fn default() -> GraphicsPipelineProperties
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GraphicsPipelineProperties
impl RefUnwindSafe for GraphicsPipelineProperties
impl Send for GraphicsPipelineProperties
impl Sync for GraphicsPipelineProperties
impl Unpin for GraphicsPipelineProperties
impl UnwindSafe for GraphicsPipelineProperties
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