Struct InstanceCullDescriptor
#[repr(C)]pub struct InstanceCullDescriptor {}Expand description
GPU-aligned per-instance culling & multi-modal routing descriptor (80 bytes, 5 x vec4).
Matches InstanceCullDescriptorGpu in instance_cull_indirect.wgsl byte-for-byte.
Fields§
§r: [f32; 4]PGA unit motor rotor part $R = (e_{023}, e_{031}, e_{012}, 1)$.
d: [f32; 4]PGA unit motor dual part $D = (e_{01}, e_{02}, e_{03}, e_{0123})$.
scale_radius: [f32; 4]xyz = non-uniform instance scale, w = local bounding sphere radius.
asset_id: u32Index into the resident ResidentAssetEntry table in MeshSlabArenaGpu.
material_id: u16Material slot identifier (0..65535).
rep_policy: u16Multi-modal representation policy (RepresentationPolicy as u16).
rig_offset: u32Base joint offset in skin_motors_buf (0 if unrigged).
proc_header_idx: u16Index into proc_headers_buf (0 if non-procedural).
tensor_q_v: u16Packed .10d tensor valence: low byte = q (quantum/field degree), high byte = v.
alpha_salience: f32Epistemic salience $\alpha \in [0.05, 4.0]$ modulating screen-space LOD priority.
sigma_spectral: f32Spectral uncertainty $\sigma \ge 0.0$ modulating coarse LOD fallback.
prev_lod_tier: f32Previous frame’s LOD tier (0.0..=3.0) used for hysteresis stability.
_pad: f32Implementations§
§impl InstanceCullDescriptor
impl InstanceCullDescriptor
pub const fn pack_tensor_q_v(q: u8, v: u8) -> u16
pub const fn pack_tensor_q_v(q: u8, v: u8) -> u16
Packs (q, v) tensor valence into tensor_q_v.
pub fn world_center(&self) -> [f32; 3]
pub fn world_center(&self) -> [f32; 3]
Evaluates the world-space center of this instance’s bounding sphere from its PGA motor $(R, D)$: $$\mathbf{p}_{\text{world}} = 2 (r_w \mathbf{d}_v - d_w \mathbf{r}_v + \mathbf{d}_v \times \mathbf{r}_v)$$
pub fn with_translation(
self,
pos: [f32; 3],
radius: f32,
) -> InstanceCullDescriptor
pub fn with_translation( self, pos: [f32; 3], radius: f32, ) -> InstanceCullDescriptor
Builds a pure-translation PGA motor from a world-space position pos.
For translation by $\mathbf{t}$ with identity rotation $R = (0, 0, 0, 1)$,
$D = \frac{1}{2}(t_x, t_y, t_z, 0)$.
pub fn world_radius(&self) -> f32
pub fn world_radius(&self) -> f32
Returns the world-space bounding sphere radius scaled by the maximum axis scale.
Trait Implementations§
§impl Clone for InstanceCullDescriptor
impl Clone for InstanceCullDescriptor
§fn clone(&self) -> InstanceCullDescriptor
fn clone(&self) -> InstanceCullDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for InstanceCullDescriptor
§impl Debug for InstanceCullDescriptor
impl Debug for InstanceCullDescriptor
§impl Default for InstanceCullDescriptor
impl Default for InstanceCullDescriptor
§fn default() -> InstanceCullDescriptor
fn default() -> InstanceCullDescriptor
§impl PartialEq for InstanceCullDescriptor
impl PartialEq for InstanceCullDescriptor
impl Pod for InstanceCullDescriptor
impl StructuralPartialEq for InstanceCullDescriptor
Auto Trait Implementations§
impl Freeze for InstanceCullDescriptor
impl RefUnwindSafe for InstanceCullDescriptor
impl Send for InstanceCullDescriptor
impl Sync for InstanceCullDescriptor
impl Unpin for InstanceCullDescriptor
impl UnsafeUnpin for InstanceCullDescriptor
impl UnwindSafe for InstanceCullDescriptor
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<T> AnyBitPattern for Twhere
T: Pod,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
impl<T> Interleave for Twhere
T: Pod,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more