#[non_exhaustive]pub struct PoolInfo {
pub accel_struct_capacity: usize,
pub buffer_capacity: usize,
pub image_capacity: usize,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.accel_struct_capacity: usize
The maximum size of a single bucket of acceleration structure resource instances. The
default value is PoolInfo::DEFAULT_RESOURCE_CAPACITY
.
§Note
Individual Pool
implementations store varying numbers of buckets. Read the documentation
of each implementation to understand how this affects total number of stored acceleration
structure instances.
buffer_capacity: usize
The maximum size of a single bucket of buffer resource instances. The default value is
PoolInfo::DEFAULT_RESOURCE_CAPACITY
.
§Note
Individual Pool
implementations store varying numbers of buckets. Read the documentation
of each implementation to understand how this affects total number of stored buffer
instances.
image_capacity: usize
The maximum size of a single bucket of image resource instances. The default value is
PoolInfo::DEFAULT_RESOURCE_CAPACITY
.
§Note
Individual Pool
implementations store varying numbers of buckets. Read the documentation
of each implementation to understand how this affects total number of stored image
instances.
Implementations§
source§impl PoolInfo
impl PoolInfo
sourcepub const DEFAULT_RESOURCE_CAPACITY: usize = 16usize
pub const DEFAULT_RESOURCE_CAPACITY: usize = 16usize
The maximum size of a single bucket of resource instances.
sourcepub const fn with_capacity(resource_capacity: usize) -> Self
pub const fn with_capacity(resource_capacity: usize) -> Self
Constructs a new PoolInfo
with the given acceleration structure, buffer and image resource
capacity for any single bucket.