pub enum InstancePoolError {
PoolFull {
capacity: u32,
in_use: u32,
},
InvalidBounds {
min: [f32; 3],
max: [f32; 3],
},
Hal(HalError),
}Expand description
What an InstancePool refuses to do.
Variants§
PoolFull
Every slot is in use.
in_use is normally the number of live instances. It can exceed that
only through generation exhaustion — see Pool’s docs on retired
slots, which needs about 4.3 billion removals of one slot — and the two
are reported together so that case is legible rather than baffling.
InvalidBounds
A box handed over for an instance to be culled by has a non-finite
corner, or a min past its max on some axis.
Refused rather than written, because the culls would test it as given:
an inverted box reaches no frustum and a NaN lane fails every plane
test, so either would drop the object from every view without a word.
See SkinnedInstanceDesc::bounds.
Hal(HalError)
Anything the seam refused.
Trait Implementations§
Source§impl Debug for InstancePoolError
impl Debug for InstancePoolError
Source§impl Display for InstancePoolError
impl Display for InstancePoolError
Source§impl Error for InstancePoolError
impl Error for InstancePoolError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<HalError> for InstancePoolError
impl From<HalError> for InstancePoolError
Source§impl From<InstancePoolError> for HalError
Flattens a pool error into the seam’s, for callers whose constructors are
already Result<_, HalError>.
impl From<InstancePoolError> for HalError
Flattens a pool error into the seam’s, for callers whose constructors are
already Result<_, HalError>.
Same shape and same reason as crate::mesh_pool::MeshPoolError’s: the seam
has no vocabulary for “this pool is full”, so everything that is not already
a HalError arrives as Backend, which renders
verbatim and keeps the numbers.