[][src]Struct nobs_vkpipes::pipeline::builder::compute::Compute

pub struct Compute { /* fields omitted */ }

Builder for a compute pipeline

Configures the pipeline's bindings and shader stages.

For a successfull pipeline creation the builder needs to be constructed from a valid device and valid bindings and a compute shader stage need to be configured.

Methods

impl Compute[src]

pub fn from_device(device: Device) -> Compute[src]

Create builder from a device

The builder is initialized with no bindings and no compute stage configured

pub fn bindings(&mut self, bindings: &[Binding]) -> &mut Self[src]

Configures the bindings for the pieline.

From the configured bindings the builder is able to create the descriptor set layouts and pipeline layout.

pub fn comp(&mut self, comp: &PipelineShaderStageCreateInfo) -> &mut Self[src]

Configures the compute shader stage for the pipeline.

pub fn create(&self) -> Result<Pipeline, String>[src]

Create the pipeline from the current configuration

Auto Trait Implementations

impl !Send for Compute

impl !Sync for Compute

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.