Struct vulkano::pipeline::compute::ComputePipelineCreateInfo
source · pub struct ComputePipelineCreateInfo {
pub flags: PipelineCreateFlags,
pub stage: PipelineShaderStageCreateInfo,
pub layout: Arc<PipelineLayout>,
pub base_pipeline: Option<Arc<ComputePipeline>>,
pub _ne: NonExhaustive,
}
Expand description
Parameters to create a new ComputePipeline
.
Fields§
§flags: PipelineCreateFlags
Additional properties of the pipeline.
The default value is empty.
stage: PipelineShaderStageCreateInfo
The compute shader stage to use.
There is no default value.
layout: Arc<PipelineLayout>
The pipeline layout to use.
There is no default value.
base_pipeline: Option<Arc<ComputePipeline>>
The pipeline to use as a base when creating this pipeline.
If this is Some
, then flags
must contain PipelineCreateFlags::DERIVATIVE
,
and the flags
of the provided pipeline must contain
PipelineCreateFlags::ALLOW_DERIVATIVES
.
The default value is None
.
_ne: NonExhaustive
Implementations§
source§impl ComputePipelineCreateInfo
impl ComputePipelineCreateInfo
sourcepub fn stage_layout(
stage: PipelineShaderStageCreateInfo,
layout: Arc<PipelineLayout>
) -> Self
pub fn stage_layout( stage: PipelineShaderStageCreateInfo, layout: Arc<PipelineLayout> ) -> Self
Returns a ComputePipelineCreateInfo
with the specified stage
and layout
.
Trait Implementations§
source§impl Clone for ComputePipelineCreateInfo
impl Clone for ComputePipelineCreateInfo
source§fn clone(&self) -> ComputePipelineCreateInfo
fn clone(&self) -> ComputePipelineCreateInfo
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ComputePipelineCreateInfo
impl Send for ComputePipelineCreateInfo
impl Sync for ComputePipelineCreateInfo
impl Unpin for ComputePipelineCreateInfo
impl !UnwindSafe for ComputePipelineCreateInfo
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