GaussianShConfig

Trait GaussianShConfig 

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

    const FEATURE: &'static str;

    // Required methods
    fn from_sh(sh: &[Vec3; 15]) -> Self::Field;
    fn to_sh(field: &Self::Field) -> [Vec3; 15];
}
Expand description

The spherical harmonics configuration of Gaussian.

Currently, there are four configurations:

Required Associated Constants§

Source

const FEATURE: &'static str

The feature 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_sh(sh: &[Vec3; 15]) -> Self::Field

Create from Gaussian::sh.

Source

fn to_sh(field: &Self::Field) -> [Vec3; 15]

Convert the field to Gaussian::sh.

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§