Struct vulkano::descriptor_set::pool::DescriptorPoolCreateInfo
source · pub struct DescriptorPoolCreateInfo {
pub flags: DescriptorPoolCreateFlags,
pub max_sets: u32,
pub pool_sizes: HashMap<DescriptorType, u32>,
pub max_inline_uniform_block_bindings: u32,
pub _ne: NonExhaustive,
}
Expand description
Parameters to create a new UnsafeDescriptorPool
.
Fields§
§flags: DescriptorPoolCreateFlags
Additional properties of the descriptor pool.
The default value is empty.
max_sets: u32
The maximum number of descriptor sets that can be allocated from the pool.
The default value is 0
, which must be overridden.
pool_sizes: HashMap<DescriptorType, u32>
The number of descriptors of each type to allocate for the pool.
If the descriptor type is DescriptorType::InlineUniformBlock
, then the value is the
number of bytes to allocate for such descriptors. The value must then be a multiple of 4.
The default value is empty, which must be overridden.
max_inline_uniform_block_bindings: u32
The maximum number of DescriptorType::InlineUniformBlock
bindings that can be allocated
from the descriptor pool.
If this is not 0, the device API version must be at least 1.3, or the
khr_inline_uniform_block
extension must be enabled on the device.
The default value is 0.
_ne: NonExhaustive
Trait Implementations§
source§impl Clone for DescriptorPoolCreateInfo
impl Clone for DescriptorPoolCreateInfo
source§fn clone(&self) -> DescriptorPoolCreateInfo
fn clone(&self) -> DescriptorPoolCreateInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more