pub struct PoolInfo {
pub accel_struct_capacity: usize,
pub buffer_capacity: usize,
pub image_capacity: usize,
}Fields§
§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 = 4usize
pub const DEFAULT_RESOURCE_CAPACITY: usize = 4usize
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 RefUnwindSafe for PoolInfo
impl Send for PoolInfo
impl Sync for PoolInfo
impl Unpin for PoolInfo
impl UnwindSafe for PoolInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.