pub struct DescriptorSet { /* private fields */ }Expand description
An immutable, explicitly populated Vulkan descriptor set.
The set owns its descriptor pool and every resource referenced by its writes. Cloning this value
shares the same allocation. To change descriptor contents, allocate a new set with
Self::alloc_and_update.
Implementations§
Source§impl DescriptorSet
impl DescriptorSet
Sourcepub fn alloc_and_update<P, I>(
pipeline: &P,
info: impl Into<DescriptorSetInfo>,
updates: I,
) -> Result<Self, DriverError>
pub fn alloc_and_update<P, I>( pipeline: &P, info: impl Into<DescriptorSetInfo>, updates: I, ) -> Result<Self, DriverError>
Allocates one descriptor set and applies all supplied writes and copies.
pipeline supplies the reflected layout selected by DescriptorSetInfo::set. A single
DescriptorSetUpdateInfo or any owned collection of updates may be passed.
Writes are applied before copies, matching vkUpdateDescriptorSets ordering.
Input attachments, texel buffers, and dynamic buffer descriptors are rejected because they require render-pass-specific layouts, owned buffer views, or dynamic bind offsets.
Sourcepub fn handle(&self) -> DescriptorSet
pub fn handle(&self) -> DescriptorSet
The native Vulkan descriptor set handle.
Sourcepub fn info(&self) -> DescriptorSetInfo
pub fn info(&self) -> DescriptorSetInfo
The information used to allocate this descriptor set.
Sourcepub fn set_debug_name(&self, name: impl AsRef<str>)
pub fn set_debug_name(&self, name: impl AsRef<str>)
Sets the debugging name assigned to this descriptor set.
Sourcepub fn with_debug_name(self, name: impl AsRef<str>) -> Self
pub fn with_debug_name(self, name: impl AsRef<str>) -> Self
Sets the debugging name assigned to this descriptor set.
Trait Implementations§
Source§impl Clone for DescriptorSet
impl Clone for DescriptorSet
Source§fn clone(&self) -> DescriptorSet
fn clone(&self) -> DescriptorSet
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more