[−][src]Struct rendy_resource::DescriptorSetLayout
Generic descriptor set layout resource wrapper.
Implementations
impl<B> DescriptorSetLayout<B> where
B: Backend,
[src]
B: Backend,
pub fn device_id(&self) -> DeviceId
[src]
Get owned id.
pub fn assert_device_owner(&self, device: &Device<B>)
[src]
Assert specified device is owner.
pub fn instance_id(&self) -> InstanceId
[src]
Get owned id.
pub fn assert_instance_owner(&self, instance: &Instance<B>)
[src]
Assert specified instance is owner.
impl<B> DescriptorSetLayout<B> where
B: Backend,
[src]
B: Backend,
pub unsafe fn create(
device: &Device<B>,
info: DescriptorSetInfo
) -> Result<Self, OutOfMemory>
[src]
device: &Device<B>,
info: DescriptorSetInfo
) -> Result<Self, OutOfMemory>
Create new descriptor set layout
pub unsafe fn dispose(self, device: &Device<B>)
[src]
Destroy descriptor set layout resource.
pub fn raw(&self) -> &B::DescriptorSetLayout
[src]
Get reference to raw descriptor set layout resource.
pub unsafe fn raw_mut(&mut self) -> &mut B::DescriptorSetLayout
[src]
Get mutable reference to raw descriptor set layout resource.
pub fn info(&self) -> &DescriptorSetInfo
[src]
Get descriptor set layout info.
Trait Implementations
impl<B: Debug + Backend> Debug for DescriptorSetLayout<B> where
B::DescriptorSetLayout: Debug,
[src]
B::DescriptorSetLayout: Debug,
Auto Trait Implementations
impl<B> RefUnwindSafe for DescriptorSetLayout<B> where
<B as Backend>::DescriptorSetLayout: RefUnwindSafe,
<B as Backend>::DescriptorSetLayout: RefUnwindSafe,
impl<B> Send for DescriptorSetLayout<B> where
<B as Backend>::DescriptorSetLayout: Send,
<B as Backend>::DescriptorSetLayout: Send,
impl<B> Sync for DescriptorSetLayout<B> where
<B as Backend>::DescriptorSetLayout: Sync,
<B as Backend>::DescriptorSetLayout: Sync,
impl<B> Unpin for DescriptorSetLayout<B> where
<B as Backend>::DescriptorSetLayout: Unpin,
<B as Backend>::DescriptorSetLayout: Unpin,
impl<B> UnwindSafe for DescriptorSetLayout<B> where
<B as Backend>::DescriptorSetLayout: UnwindSafe,
<B as Backend>::DescriptorSetLayout: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,