[−][src]Struct bedrock::DescriptorPool
Opaque handle to a descriptor pool object
Methods
impl DescriptorPool
[src]
Following methods are enabled with [feature = "Implements"]
pub fn new(
device: &Device,
max_sets: u32,
pool_sizes: &[DescriptorPoolSize],
allow_free: bool
) -> Result<Self>
[src]
device: &Device,
max_sets: u32,
pool_sizes: &[DescriptorPoolSize],
allow_free: bool
) -> 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
pub fn alloc(
&self,
layouts: &[&DescriptorSetLayout]
) -> Result<Vec<VkDescriptorSet>>
[src]
&self,
layouts: &[&DescriptorSetLayout]
) -> Result<Vec<VkDescriptorSet>>
Allocate one or more descriptor sets
Failures
On failure, this command returns
- VK_ERROR_OUT_OF_HOST_MEMORY
- VK_ERROR_OUT_OF_DEVICE_MEMORY
- VK_ERROR_FRAGMENTED_POOL
pub unsafe fn reset(&self) -> Result<()>
[src]
Resets a descriptor pool object
Safety
Application cannot use descriptor sets after this call
Failures
On failure, this command returns
- VK_ERROR_OUT_OF_HOST_MEMORY
- VK_ERROR_OUT_OF_DEVICE_MEMORY
pub fn free(&self, sets: &[VkDescriptorSet]) -> Result<()>
[src]
Free one or more descriptor sets
Failures
On failure, this command returns
- VK_ERROR_OUT_OF_HOST_MEMORY
- VK_ERROR_OUT_OF_DEVICE_MEMORY
Trait Implementations
impl DeviceChild for DescriptorPool
[src]
impl Drop for DescriptorPool
[src]
impl VkHandle for DescriptorPool
[src]
type Handle = VkDescriptorPool
fn native_ptr(&self) -> VkDescriptorPool
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DescriptorPool
impl !Send for DescriptorPool
impl !Sync for DescriptorPool
impl Unpin for DescriptorPool
impl !UnwindSafe for DescriptorPool
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>,