pub struct DescriptorSet<B: Backend> { /* private fields */ }
Expand description
Generic descriptor set resource wrapper.
Implementations§
Source§impl<B> DescriptorSet<B>where
B: Backend,
impl<B> DescriptorSet<B>where
B: Backend,
Sourcepub fn assert_device_owner(&self, device: &Device<B>)
pub fn assert_device_owner(&self, device: &Device<B>)
Assert specified device is owner.
Sourcepub fn instance_id(&self) -> InstanceId
pub fn instance_id(&self) -> InstanceId
Get owned id.
Sourcepub fn assert_instance_owner(&self, instance: &Instance<B>)
pub fn assert_instance_owner(&self, instance: &Instance<B>)
Assert specified instance is owner.
Source§impl<B> DescriptorSet<B>where
B: Backend,
impl<B> DescriptorSet<B>where
B: Backend,
Sourcepub unsafe fn create(
device: &Device<B>,
allocator: &mut DescriptorAllocator<B>,
layout: Handle<DescriptorSetLayout<B>>,
) -> Result<Self, OutOfMemory>
pub unsafe fn create( device: &Device<B>, allocator: &mut DescriptorAllocator<B>, layout: Handle<DescriptorSetLayout<B>>, ) -> Result<Self, OutOfMemory>
Create new descriptor set.
Sourcepub unsafe fn create_many(
device: &Device<B>,
allocator: &mut DescriptorAllocator<B>,
layout: Handle<DescriptorSetLayout<B>>,
count: u32,
extend: &mut impl Extend<Self>,
) -> Result<(), OutOfMemory>
pub unsafe fn create_many( device: &Device<B>, allocator: &mut DescriptorAllocator<B>, layout: Handle<DescriptorSetLayout<B>>, count: u32, extend: &mut impl Extend<Self>, ) -> Result<(), OutOfMemory>
Create new descriptor sets.
Sourcepub unsafe fn dispose(self, allocator: &mut DescriptorAllocator<B>)
pub unsafe fn dispose(self, allocator: &mut DescriptorAllocator<B>)
Destroy descriptor set resource.
Sourcepub fn raw(&self) -> &B::DescriptorSet
pub fn raw(&self) -> &B::DescriptorSet
Get reference to raw descriptor set resource.
Sourcepub unsafe fn raw_mut(&mut self) -> &mut B::DescriptorSet
pub unsafe fn raw_mut(&mut self) -> &mut B::DescriptorSet
Get mutable reference to raw descriptor set resource.
Sourcepub fn layout(&mut self) -> &Handle<DescriptorSetLayout<B>>
pub fn layout(&mut self) -> &Handle<DescriptorSetLayout<B>>
Get layout of descriptor set.
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for DescriptorSet<B>
impl<B> RefUnwindSafe for DescriptorSet<B>where
<B as Backend>::DescriptorSet: RefUnwindSafe,
<B as Backend>::DescriptorSetLayout: RefUnwindSafe,
impl<B> Send for DescriptorSet<B>
impl<B> Sync for DescriptorSet<B>
impl<B> Unpin for DescriptorSet<B>
impl<B> UnwindSafe for DescriptorSet<B>where
<B as Backend>::DescriptorSet: UnwindSafe,
<B as Backend>::DescriptorSetLayout: RefUnwindSafe,
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