pub struct PipelineRasterizationStateCreateInfo<'d>(/* private fields */);
Expand description
Structure specifying parameters of a newly created pipeline rasterization state
Implementations§
Source§impl<'d> PipelineRasterizationStateCreateInfo<'d>
impl<'d> PipelineRasterizationStateCreateInfo<'d>
pub const fn new( polygon_mode: PolygonMode, cull_mode: CullModeFlags, front_face: FrontFace, ) -> Self
pub const unsafe fn from_raw( raw: VkPipelineRasterizationStateCreateInfo, ) -> Self
pub const fn into_raw(self) -> VkPipelineRasterizationStateCreateInfo
pub fn with_next(self, next: &'d (impl VulkanStructure + ?Sized)) -> Self
pub const fn enable_depth_clamp(self) -> Self
pub const fn enable_rasterizer_discard(self) -> Self
pub const fn enable_depth_bias( self, constant_factor: f32, clamp: f32, slope_factor: f32, ) -> Self
pub const fn line_width(self, w: f32) -> Self
Trait Implementations§
Source§impl<'d> Clone for PipelineRasterizationStateCreateInfo<'d>
impl<'d> Clone for PipelineRasterizationStateCreateInfo<'d>
Source§fn clone(&self) -> PipelineRasterizationStateCreateInfo<'d>
fn clone(&self) -> PipelineRasterizationStateCreateInfo<'d>
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 moreAuto Trait Implementations§
impl<'d> Freeze for PipelineRasterizationStateCreateInfo<'d>
impl<'d> !RefUnwindSafe for PipelineRasterizationStateCreateInfo<'d>
impl<'d> !Send for PipelineRasterizationStateCreateInfo<'d>
impl<'d> !Sync for PipelineRasterizationStateCreateInfo<'d>
impl<'d> Unpin for PipelineRasterizationStateCreateInfo<'d>
impl<'d> !UnwindSafe for PipelineRasterizationStateCreateInfo<'d>
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