Struct screen_13::driver::graphic::GraphicPipelineInfoBuilder
source · pub struct GraphicPipelineInfoBuilder { /* private fields */ }
Expand description
Builder for GraphicPipelineInfo
.
Implementations§
source§impl GraphicPipelineInfoBuilder
impl GraphicPipelineInfoBuilder
sourcepub fn bindless_descriptor_count(self, value: u32) -> Self
pub fn bindless_descriptor_count(self, value: u32) -> Self
The number of descriptors to allocate for a given binding when using bindless (unbounded) syntax.
The default is 8192
.
§Examples
Basic usage (GLSL):
#version 460 core
#extension GL_EXT_nonuniform_qualifier : require
layout(set = 0, binding = 0) uniform sampler2D my_binding[];
void main()
{
// my_binding will have space for 8,192 images by default
}
sourcepub fn blend(self, value: BlendMode) -> Self
pub fn blend(self, value: BlendMode) -> Self
Specifies color blend state used when rasterization is enabled for any color attachments accessed during rendering.
The default value is BlendMode::REPLACE
.
sourcepub fn cull_mode(self, value: CullModeFlags) -> Self
pub fn cull_mode(self, value: CullModeFlags) -> Self
Bitmask controlling triangle culling.
The default value is vk::CullModeFlags::BACK
.
sourcepub fn front_face(self, value: FrontFace) -> Self
pub fn front_face(self, value: FrontFace) -> Self
Interpret polygon front-facing orientation.
The default value is vk::FrontFace::COUNTER_CLOCKWISE
.
sourcepub fn polygon_mode(self, value: PolygonMode) -> Self
pub fn polygon_mode(self, value: PolygonMode) -> Self
Control polygon rasterization mode.
The default value is vk::PolygonMode::FILL
.
sourcepub fn topology(self, value: PrimitiveTopology) -> Self
pub fn topology(self, value: PrimitiveTopology) -> Self
Input primitive topology.
The default value is vk::PrimitiveTopology::TRIANGLE_LIST
.
sourcepub fn samples(self, value: SampleCount) -> Self
pub fn samples(self, value: SampleCount) -> Self
source§impl GraphicPipelineInfoBuilder
impl GraphicPipelineInfoBuilder
sourcepub fn build(self) -> GraphicPipelineInfo
pub fn build(self) -> GraphicPipelineInfo
Builds a new GraphicPipelineInfo
.
Trait Implementations§
source§impl Clone for GraphicPipelineInfoBuilder
impl Clone for GraphicPipelineInfoBuilder
source§fn clone(&self) -> GraphicPipelineInfoBuilder
fn clone(&self) -> GraphicPipelineInfoBuilder
Returns a copy 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 GraphicPipelineInfoBuilder
impl Debug for GraphicPipelineInfoBuilder
source§impl Default for GraphicPipelineInfoBuilder
impl Default for GraphicPipelineInfoBuilder
source§impl From<GraphicPipelineInfoBuilder> for GraphicPipelineInfo
impl From<GraphicPipelineInfoBuilder> for GraphicPipelineInfo
source§fn from(info: GraphicPipelineInfoBuilder) -> Self
fn from(info: GraphicPipelineInfoBuilder) -> Self
Converts to this type from the input type.
impl Copy for GraphicPipelineInfoBuilder
Auto Trait Implementations§
impl RefUnwindSafe for GraphicPipelineInfoBuilder
impl Send for GraphicPipelineInfoBuilder
impl Sync for GraphicPipelineInfoBuilder
impl Unpin for GraphicPipelineInfoBuilder
impl UnwindSafe for GraphicPipelineInfoBuilder
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