Skip to main content

SampleCube

Trait SampleCube 

Source
pub trait SampleCube {
    type Sampler: IsSampler;

    // Required method
    fn sample_by_lod(&self, sampler: Self::Sampler, uv: Vec3, lod: f32) -> Vec4;
}

Required Associated Types§

Required Methods§

Source

fn sample_by_lod(&self, sampler: Self::Sampler, uv: Vec3, lod: f32) -> Vec4

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SampleCube for Cubemap

Source§

type Sampler = Sampler

Source§

fn sample_by_lod(&self, sampler: Self::Sampler, uv: Vec3, lod: f32) -> Vec4

Implementors§