Struct vulkano::pipeline::compute::ComputePipeline
source · pub struct ComputePipeline { /* private fields */ }
Expand description
A pipeline object that describes to the Vulkan implementation how it should perform compute operations.
The template parameter contains the descriptor set to use with this pipeline.
Pass an optional Arc
to a PipelineCache
to enable pipeline caching. The vulkan
implementation will handle the PipelineCache
and check if it is available.
Check the documentation of the PipelineCache
for more information.
Implementations§
source§impl ComputePipeline
impl ComputePipeline
sourcepub fn new(
device: Arc<Device>,
cache: Option<Arc<PipelineCache>>,
create_info: ComputePipelineCreateInfo
) -> Result<Arc<ComputePipeline>, Validated<VulkanError>>
pub fn new( device: Arc<Device>, cache: Option<Arc<PipelineCache>>, create_info: ComputePipelineCreateInfo ) -> Result<Arc<ComputePipeline>, Validated<VulkanError>>
Creates a new ComputePipeline
.
sourcepub unsafe fn from_handle(
device: Arc<Device>,
handle: Pipeline,
create_info: ComputePipelineCreateInfo
) -> Arc<ComputePipeline>
pub unsafe fn from_handle( device: Arc<Device>, handle: Pipeline, create_info: ComputePipelineCreateInfo ) -> Arc<ComputePipeline>
Creates a new ComputePipeline
from a raw object handle.
Safety
handle
must be a valid Vulkan object handle created fromdevice
.create_info
must match the info used to create the object.
sourcepub fn flags(&self) -> PipelineCreateFlags
pub fn flags(&self) -> PipelineCreateFlags
Returns the flags that the pipeline was created with.
Trait Implementations§
source§impl Debug for ComputePipeline
impl Debug for ComputePipeline
source§impl DeviceOwned for ComputePipeline
impl DeviceOwned for ComputePipeline
source§impl Drop for ComputePipeline
impl Drop for ComputePipeline
source§impl Hash for ComputePipeline
impl Hash for ComputePipeline
source§impl PartialEq for ComputePipeline
impl PartialEq for ComputePipeline
source§impl Pipeline for ComputePipeline
impl Pipeline for ComputePipeline
source§fn bind_point(&self) -> PipelineBindPoint
fn bind_point(&self) -> PipelineBindPoint
Returns the bind point of this pipeline.
source§fn layout(&self) -> &Arc<PipelineLayout>
fn layout(&self) -> &Arc<PipelineLayout>
Returns the pipeline layout used in this pipeline.
source§fn num_used_descriptor_sets(&self) -> u32
fn num_used_descriptor_sets(&self) -> u32
Returns the number of descriptor sets actually accessed by this pipeline. This may be less
than the number of sets in the pipeline layout.
source§fn descriptor_binding_requirements(
&self
) -> &HashMap<(u32, u32), DescriptorBindingRequirements>
fn descriptor_binding_requirements( &self ) -> &HashMap<(u32, u32), DescriptorBindingRequirements>
Returns a reference to the descriptor binding requirements for this pipeline.
source§impl VulkanObject for ComputePipeline
impl VulkanObject for ComputePipeline
impl Eq for ComputePipeline
Auto Trait Implementations§
impl !RefUnwindSafe for ComputePipeline
impl Send for ComputePipeline
impl Sync for ComputePipeline
impl Unpin for ComputePipeline
impl !UnwindSafe for ComputePipeline
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
source§impl<T> DeviceOwnedVulkanObject for Twhere
T: DeviceOwned + VulkanObject,
impl<T> DeviceOwnedVulkanObject for Twhere T: DeviceOwned + VulkanObject,
source§fn set_debug_utils_object_name(
&self,
object_name: Option<&str>
) -> Result<(), VulkanError>
fn set_debug_utils_object_name( &self, object_name: Option<&str> ) -> Result<(), VulkanError>
Assigns a human-readable name to the object for debugging purposes. Read more