GaussianCov3dConfig

Trait GaussianCov3dConfig 

Source
pub trait GaussianCov3dConfig {
    type Field: Pod + Zeroable;

    const FEATURE: &'static str;

    // Required methods
    fn from_rot_scale(rot: Quat, scale: Vec3) -> Self::Field;
    fn to_rot_scale(field: &Self::Field) -> (Quat, Vec3);
}
Expand description

The covariance 3D configuration of Gaussian.

Currently, there are three configurations:

Required Associated Constants§

Source

const FEATURE: &'static str

The name of the configuration.

Must match the wesl::Feature name in the shader.

Required Associated Types§

Source

type Field: Pod + Zeroable

The GaussianPod field type.

Required Methods§

Source

fn from_rot_scale(rot: Quat, scale: Vec3) -> Self::Field

Create from Gaussian::rot and Gaussian::scale.

Source

fn to_rot_scale(field: &Self::Field) -> (Quat, Vec3)

Convert the field to Gaussian::rot and Gaussian::scale.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§