Struct vulkano::descriptor_set::sys::UnsafeDescriptorSet
source · pub struct UnsafeDescriptorSet<P = StandardDescriptorSetAlloc> { /* private fields */ }
Expand description
Low-level descriptor set.
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 UnsafeDescriptorSet
impl UnsafeDescriptorSet
sourcepub fn new<A>(
allocator: &A,
layout: &Arc<DescriptorSetLayout>,
variable_descriptor_count: u32
) -> Result<UnsafeDescriptorSet<A::Alloc>, Validated<VulkanError>>where
A: DescriptorSetAllocator + ?Sized,
pub fn new<A>( allocator: &A, layout: &Arc<DescriptorSetLayout>, variable_descriptor_count: u32 ) -> Result<UnsafeDescriptorSet<A::Alloc>, Validated<VulkanError>>where A: DescriptorSetAllocator + ?Sized,
Allocates a new descriptor set and returns it.
source§impl<P> UnsafeDescriptorSet<P>where
P: DescriptorSetAlloc,
impl<P> UnsafeDescriptorSet<P>where P: DescriptorSetAlloc,
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(
&mut self,
descriptor_writes: &[WriteDescriptorSet],
descriptor_copies: &[CopyDescriptorSet]
) -> Result<(), Box<ValidationError>>
pub unsafe fn update( &mut self, descriptor_writes: &[WriteDescriptorSet], descriptor_copies: &[CopyDescriptorSet] ) -> Result<(), Box<ValidationError>>
Updates the descriptor set with new values.
Safety
- The resources in
descriptor_writes
anddescriptor_copies
must be kept alive for as long asself
is 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.
Trait Implementations§
source§impl<P: Debug> Debug for UnsafeDescriptorSet<P>
impl<P: Debug> Debug for UnsafeDescriptorSet<P>
source§impl<P> DeviceOwned for UnsafeDescriptorSet<P>where
P: DescriptorSetAlloc,
impl<P> DeviceOwned for UnsafeDescriptorSet<P>where P: DescriptorSetAlloc,
source§impl<P> Hash for UnsafeDescriptorSet<P>where
P: DescriptorSetAlloc,
impl<P> Hash for UnsafeDescriptorSet<P>where P: DescriptorSetAlloc,
source§impl<P> PartialEq for UnsafeDescriptorSet<P>where
P: DescriptorSetAlloc,
impl<P> PartialEq for UnsafeDescriptorSet<P>where P: DescriptorSetAlloc,
source§impl<P> VulkanObject for UnsafeDescriptorSet<P>where
P: DescriptorSetAlloc,
impl<P> VulkanObject for UnsafeDescriptorSet<P>where P: DescriptorSetAlloc,
impl<P> Eq for UnsafeDescriptorSet<P>where P: DescriptorSetAlloc,
Auto Trait Implementations§
impl<P> RefUnwindSafe for UnsafeDescriptorSet<P>where P: RefUnwindSafe,
impl<P> Send for UnsafeDescriptorSet<P>where P: Send,
impl<P> Sync for UnsafeDescriptorSet<P>where P: Sync,
impl<P> Unpin for UnsafeDescriptorSet<P>where P: Unpin,
impl<P> UnwindSafe for UnsafeDescriptorSet<P>where P: UnwindSafe,
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