pub struct DescriptorPoolObject<Device: VkHandle<Handle = VkDevice>>(/* private fields */);Implementations§
Source§impl<Device: VkHandle<Handle = VkDevice>> DescriptorPoolObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> DescriptorPoolObject<Device>
Sourcepub fn new(device: Device, info: &DescriptorPoolCreateInfo<'_>) -> Result<Self>
pub fn new(device: Device, info: &DescriptorPoolCreateInfo<'_>) -> Result<Self>
Creates a descriptor pool object
§Failures
On failure, this command returns
- VK_ERROR_OUT_OF_HOST_MEMORY
- VK_ERROR_OUT_OF_DEVICE_MEMORY
Sourcepub const unsafe fn manage(handle: VkDescriptorPool, parent: Device) -> Self
pub const unsafe fn manage(handle: VkDescriptorPool, parent: Device) -> Self
Constructs from raw values
§Safety
the resource must be created from the device and not freed anywhere
Sourcepub const fn unmanage(self) -> (VkDescriptorPool, Device)
pub const fn unmanage(self) -> (VkDescriptorPool, Device)
Purges the construct (Drop will not be called for this resource)
Source§impl<Device: VkHandle<Handle = VkDevice> + Clone> DescriptorPoolObject<&Device>
impl<Device: VkHandle<Handle = VkDevice> + Clone> DescriptorPoolObject<&Device>
Sourcepub fn clone_parent(self) -> DescriptorPoolObject<Device>
pub fn clone_parent(self) -> DescriptorPoolObject<Device>
Owning parent object by cloning it.
Trait Implementations§
Source§impl<Device: VkHandle<Handle = VkDevice>> DescriptorPoolMut for DescriptorPoolObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> DescriptorPoolMut for DescriptorPoolObject<Device>
Source§unsafe fn alloc_raw(
&mut self,
info: &VkDescriptorSetAllocateInfo,
objects: &mut [VkDescriptorSet],
) -> Result<()>
unsafe fn alloc_raw( &mut self, info: &VkDescriptorSetAllocateInfo, objects: &mut [VkDescriptorSet], ) -> Result<()>
Allocate one or more descriptor sets Read more
Source§fn alloc(
&mut self,
layouts: &[VkHandleRef<'_, VkDescriptorSetLayout>],
) -> Result<Vec<DescriptorSet>>
fn alloc( &mut self, layouts: &[VkHandleRef<'_, VkDescriptorSetLayout>], ) -> Result<Vec<DescriptorSet>>
Allocate one or more descriptor sets Read more
Source§fn alloc_array<const N: usize>(
&mut self,
layouts: &[VkHandleRef<'_, VkDescriptorSetLayout>; N],
) -> Result<[DescriptorSet; N]>
fn alloc_array<const N: usize>( &mut self, layouts: &[VkHandleRef<'_, VkDescriptorSetLayout>; N], ) -> Result<[DescriptorSet; N]>
Allocate one or more descriptor sets Read more
Source§impl<Device: Device> DeviceChild for DescriptorPoolObject<Device>
impl<Device: Device> DeviceChild for DescriptorPoolObject<Device>
Source§type ConcreteDevice = Device
type ConcreteDevice = Device
A concrete type of the parent device object.
Source§fn device(&self) -> &Self::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Retrieve a reference to a device object that creates this object
Source§impl<Device: VkHandle<Handle = VkDevice>> DeviceChildHandle for DescriptorPoolObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> DeviceChildHandle for DescriptorPoolObject<Device>
Source§fn device_handle(&self) -> VkDevice
fn device_handle(&self) -> VkDevice
Retrieve a reference to a device handle that creates this objecs
Source§impl<Device: VkHandle<Handle = VkDevice>> VkHandle for DescriptorPoolObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> VkHandle for DescriptorPoolObject<Device>
type Handle = VkDescriptorPool
Source§fn native_ptr(&self) -> Self::Handle
fn native_ptr(&self) -> Self::Handle
Retrieve an underlying handle
fn as_transparent_ref(&self) -> VkHandleRef<'_, Self::Handle>
Source§impl<Device: VkHandle<Handle = VkDevice>> VkHandleMut for DescriptorPoolObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> VkHandleMut for DescriptorPoolObject<Device>
Source§fn native_ptr_mut(&mut self) -> Self::Handle
fn native_ptr_mut(&mut self) -> Self::Handle
Retrieve an underlying mutable handle
fn as_transparent_ref_mut(&mut self) -> VkHandleRefMut<'_, Self::Handle>
Source§impl<Device: VkHandle<Handle = VkDevice>> VkObject for DescriptorPoolObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> VkObject for DescriptorPoolObject<Device>
const TYPE: VkObjectType = 22i32
impl<Device: VkHandle<Handle = VkDevice>> DescriptorPool for DescriptorPoolObject<Device>
impl<Device: VkHandle<Handle = VkDevice> + Send> Send for DescriptorPoolObject<Device>
impl<Device: VkHandle<Handle = VkDevice> + Sync> Sync for DescriptorPoolObject<Device>
Auto Trait Implementations§
impl<Device> Freeze for DescriptorPoolObject<Device>where
Device: Freeze,
impl<Device> RefUnwindSafe for DescriptorPoolObject<Device>where
Device: RefUnwindSafe,
impl<Device> Unpin for DescriptorPoolObject<Device>where
Device: Unpin,
impl<Device> UnwindSafe for DescriptorPoolObject<Device>where
Device: 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