pub struct RawDescriptorSet { /* private fields */ }Expand description
A raw descriptor set corresponding directly to a VkDescriptorSet.
This descriptor set does not keep track of synchronization, nor does it store any information on what resources have been written to each descriptor.
Implementations§
Source§impl RawDescriptorSet
impl RawDescriptorSet
Sourcepub fn new(
allocator: Arc<dyn DescriptorSetAllocator>,
layout: &Arc<DescriptorSetLayout>,
variable_descriptor_count: u32,
) -> Result<RawDescriptorSet, Validated<VulkanError>>
pub fn new( allocator: Arc<dyn DescriptorSetAllocator>, layout: &Arc<DescriptorSetLayout>, variable_descriptor_count: u32, ) -> Result<RawDescriptorSet, Validated<VulkanError>>
Allocates a new descriptor set and returns it.
Sourcepub fn alloc(&self) -> &DescriptorSetAlloc
pub fn alloc(&self) -> &DescriptorSetAlloc
Returns the allocation of this descriptor set.
Sourcepub fn pool(&self) -> &DescriptorPool
pub fn pool(&self) -> &DescriptorPool
Returns the descriptor pool that the descriptor set was allocated from.
Sourcepub fn layout(&self) -> &Arc<DescriptorSetLayout>
pub fn layout(&self) -> &Arc<DescriptorSetLayout>
Returns the layout of this descriptor set.
Sourcepub fn variable_descriptor_count(&self) -> u32
pub fn variable_descriptor_count(&self) -> u32
Returns the variable descriptor count that this descriptor set was allocated with.
Sourcepub unsafe fn update(
&self,
descriptor_writes: &[WriteDescriptorSet],
descriptor_copies: &[CopyDescriptorSet],
) -> Result<(), Box<ValidationError>>
pub unsafe fn update( &self, descriptor_writes: &[WriteDescriptorSet], descriptor_copies: &[CopyDescriptorSet], ) -> Result<(), Box<ValidationError>>
Updates the descriptor set with new values.
§Safety
- The resources in
descriptor_writesanddescriptor_copiesmust be kept alive for as long asselfis in use. - The descriptor set must not be in use by the device, or be recorded to a command buffer as part of a bind command.
- Host access to the descriptor set must be externally synchronized.
Trait Implementations§
Source§impl Debug for RawDescriptorSet
impl Debug for RawDescriptorSet
Source§impl DeviceOwned for RawDescriptorSet
impl DeviceOwned for RawDescriptorSet
Source§impl Drop for RawDescriptorSet
impl Drop for RawDescriptorSet
Source§impl Hash for RawDescriptorSet
impl Hash for RawDescriptorSet
Source§impl PartialEq for RawDescriptorSet
impl PartialEq for RawDescriptorSet
Source§impl VulkanObject for RawDescriptorSet
impl VulkanObject for RawDescriptorSet
impl Eq for RawDescriptorSet
Auto Trait Implementations§
impl Freeze for RawDescriptorSet
impl !RefUnwindSafe for RawDescriptorSet
impl Send for RawDescriptorSet
impl Sync for RawDescriptorSet
impl Unpin for RawDescriptorSet
impl UnsafeUnpin for RawDescriptorSet
impl !UnwindSafe for RawDescriptorSet
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