pub struct DescriptorSetLayout<B: Backend> { /* private fields */ }
Expand description
Generic descriptor set layout resource wrapper.
Implementations§
Source§impl<B> DescriptorSetLayout<B>where
B: Backend,
impl<B> DescriptorSetLayout<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> DescriptorSetLayout<B>where
B: Backend,
impl<B> DescriptorSetLayout<B>where
B: Backend,
Sourcepub unsafe fn create(
device: &Device<B>,
info: DescriptorSetInfo,
) -> Result<Self, OutOfMemory>
pub unsafe fn create( device: &Device<B>, info: DescriptorSetInfo, ) -> Result<Self, OutOfMemory>
Create new descriptor set layout
Sourcepub fn raw(&self) -> &B::DescriptorSetLayout
pub fn raw(&self) -> &B::DescriptorSetLayout
Get reference to raw descriptor set layout resource.
Sourcepub unsafe fn raw_mut(&mut self) -> &mut B::DescriptorSetLayout
pub unsafe fn raw_mut(&mut self) -> &mut B::DescriptorSetLayout
Get mutable reference to raw descriptor set layout resource.
Sourcepub fn info(&self) -> &DescriptorSetInfo
pub fn info(&self) -> &DescriptorSetInfo
Get descriptor set layout info.
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for DescriptorSetLayout<B>
impl<B> RefUnwindSafe for DescriptorSetLayout<B>
impl<B> Send for DescriptorSetLayout<B>
impl<B> Sync for DescriptorSetLayout<B>
impl<B> Unpin for DescriptorSetLayout<B>
impl<B> UnwindSafe for DescriptorSetLayout<B>
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