Skip to main content

GraphicsPipelineInfoBuilder

Struct GraphicsPipelineInfoBuilder 

Source
pub struct GraphicsPipelineInfoBuilder { /* private fields */ }
Expand description

Builder for GraphicsPipelineInfo.

Implementations§

Source§

impl GraphicsPipelineInfoBuilder

Source

pub fn alpha_to_coverage(self, value: bool) -> Self

Controls whether a temporary coverage value is generated based on the alpha component of the fragment’s first color output.

Source

pub fn alpha_to_one(self, value: bool) -> Self

Controls whether the alpha component of the fragment’s first color output is replaced with one.

Source

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
#pragma shader_stage(fragment)

layout(set = 0, binding = 0) uniform sampler2D my_binding[];

void main() {
    // my_binding will have space for 8,192 images by default
}
Source

pub fn blend(self, value: BlendInfo) -> Self

Specifies color blend state used when rasterization is enabled for any color attachments accessed during rendering.

The default value is BlendInfo::REPLACE.

Source

pub fn cull_mode(self, value: CullModeFlags) -> Self

Bitmask controlling triangle culling.

The default value is vk::CullModeFlags::BACK.

Source

pub fn front_face(self, value: FrontFace) -> Self

Interprets polygon front-facing orientation.

The default value is vk::FrontFace::COUNTER_CLOCKWISE.

Source

pub fn min_sample_shading<VALUE: Into<OrderedFloat<f32>>>( self, value: VALUE, ) -> Self

Specifies a fraction of the minimum number of unique samples to process for each fragment.

Source

pub fn polygon_mode(self, value: PolygonMode) -> Self

Controls polygon rasterization mode.

The default value is vk::PolygonMode::FILL.

Source

pub fn topology(self, value: PrimitiveTopology) -> Self

Input primitive topology.

The default value is vk::PrimitiveTopology::TRIANGLE_LIST.

Source

pub fn samples(self, value: SampleCount) -> Self

Multisampling antialias mode.

The default value is SampleCount::Type1.

See VkPipelineMultisampleStateCreateInfo.

Source§

impl GraphicsPipelineInfoBuilder

Source

pub fn build(self) -> GraphicsPipelineInfo

Builds a new GraphicsPipelineInfo.

Trait Implementations§

Source§

impl Clone for GraphicsPipelineInfoBuilder

Source§

fn clone(&self) -> GraphicsPipelineInfoBuilder

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for GraphicsPipelineInfoBuilder

Source§

impl Debug for GraphicsPipelineInfoBuilder

Source§

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

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

impl Default for GraphicsPipelineInfoBuilder

Source§

fn default() -> Self

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

impl From<GraphicsPipelineInfoBuilder> for GraphicsPipelineInfo

Source§

fn from(info: GraphicsPipelineInfoBuilder) -> Self

Converts to this type from the input type.

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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.