Struct screen_13::pool::PoolInfoBuilder
source · pub struct PoolInfoBuilder { /* private fields */ }
Expand description
Builder for PoolInfo
.
Implementations§
source§impl PoolInfoBuilder
impl PoolInfoBuilder
sourcepub fn accel_struct_capacity(self, value: usize) -> Self
pub fn accel_struct_capacity(self, value: usize) -> Self
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.
sourcepub fn buffer_capacity(self, value: usize) -> Self
pub fn buffer_capacity(self, value: usize) -> Self
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.
sourcepub fn image_capacity(self, value: usize) -> Self
pub fn image_capacity(self, value: usize) -> Self
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.
Trait Implementations§
source§impl Clone for PoolInfoBuilder
impl Clone for PoolInfoBuilder
source§fn clone(&self) -> PoolInfoBuilder
fn clone(&self) -> PoolInfoBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PoolInfoBuilder
impl Debug for PoolInfoBuilder
source§impl Default for PoolInfoBuilder
impl Default for PoolInfoBuilder
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 PoolInfoBuilder
Auto Trait Implementations§
impl RefUnwindSafe for PoolInfoBuilder
impl Send for PoolInfoBuilder
impl Sync for PoolInfoBuilder
impl Unpin for PoolInfoBuilder
impl UnwindSafe for PoolInfoBuilder
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.