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
Sourcepub const unsafe fn from_raw(
raw: VkPipelineRasterizationStateCreateInfo,
) -> Self
pub const unsafe fn from_raw( raw: VkPipelineRasterizationStateCreateInfo, ) -> Self
§Safety
raw must have a valid brvk::VkPipelineRasterizationStateCreateInfo struct.
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§
Auto Trait Implementations§
impl<'d> !RefUnwindSafe for PipelineRasterizationStateCreateInfo<'d>
impl<'d> !Send for PipelineRasterizationStateCreateInfo<'d>
impl<'d> !Sync for PipelineRasterizationStateCreateInfo<'d>
impl<'d> !UnwindSafe for PipelineRasterizationStateCreateInfo<'d>
impl<'d> Freeze for PipelineRasterizationStateCreateInfo<'d>
impl<'d> Unpin for PipelineRasterizationStateCreateInfo<'d>
impl<'d> UnsafeUnpin 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