[−][src]Struct nobs_vkpipes::pipeline::builder::compute::Compute
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
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,