#[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: usizeThe 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: usizeThe 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: usizeThe 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.
Trait Implementations§
Source§impl From<PoolInfoBuilder> for PoolInfo
impl From<PoolInfoBuilder> for PoolInfo
Source§fn from(info: PoolInfoBuilder) -> Self
fn from(info: PoolInfoBuilder) -> Self
impl Copy for PoolInfo
Auto Trait Implementations§
impl Freeze for PoolInfo
impl RefUnwindSafe for PoolInfo
impl Send for PoolInfo
impl Sync for PoolInfo
impl Unpin for PoolInfo
impl UnwindSafe for PoolInfo
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)