Struct vulkano::descriptor::descriptor_set::DescriptorPool [] [src]

pub struct DescriptorPool {
    // some fields omitted
}

Pool from which descriptor sets are allocated from.

A pool has a maximum number of descriptor sets and a maximum number of descriptors (one value per descriptor type) it can allocate.

Methods

impl DescriptorPool
[src]

fn raw(device: &Arc<Device>) -> Result<DescriptorPoolOomError>

See the docs of new().

fn new(device: &Arc<Device>) -> Arc<DescriptorPool>

Initializes a new pool.

Panic

  • Panicks if the device or host ran out of memory.

fn device(&self) -> &Arc<Device>

Returns the device this pool was created from.

Trait Implementations

impl SynchronizedVulkanObject for DescriptorPool
[src]

type Object = DescriptorPool

The type of the object.

fn internal_object_guard(&self) -> MutexGuard<DescriptorPool>

Returns a reference to the object.

impl Drop for DescriptorPool
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more