Struct sierra::DescriptorSet
source · pub struct DescriptorSet { /* private fields */ }
Expand description
Set of descriptors with specific layout.
This value does not guarantees unique access to the descriptor set. Other references to the set may exist. Mutation of the set is not safe.
Unsafe mutation can be performed for bindings with UPDATE_AFTER_BIND
and UPDATE_UNUSED_WHILE_PENDING
flags.
Implementations§
source§impl DescriptorSet
impl DescriptorSet
pub fn info(&self) -> &DescriptorSetInfo
pub fn try_into_writable(self) -> Result<WritableDescriptorSet, Self>
sourcepub unsafe fn into_writable(self) -> WritableDescriptorSet
pub unsafe fn into_writable(self) -> WritableDescriptorSet
Safety
Caller must ensure that writes would not create races.
pub fn try_as_writtable(&mut self) -> Option<&mut WritableDescriptorSet>
sourcepub unsafe fn as_writable(&mut self) -> &mut WritableDescriptorSet
pub unsafe fn as_writable(&mut self) -> &mut WritableDescriptorSet
Safety
Caller must ensure that writes would not create races.
Trait Implementations§
source§impl Clone for DescriptorSet
impl Clone for DescriptorSet
source§fn clone(&self) -> DescriptorSet
fn clone(&self) -> DescriptorSet
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 more