Skip to main content

Sample2dArray

Trait Sample2dArray 

Source
pub trait Sample2dArray {
    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 Sample2dArray for Image2dArray

Source§

type Sampler = Sampler

Source§

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

Source§

impl Sample2dArray for Image<f32, { _ }, { _ }, { _ }, { _ }, { _ }, { _ }, { _ }>

Source§

type Sampler = Sampler

Source§

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

Implementors§

Source§

impl Sample2dArray for ConstTexture

Source§

impl<P, Container> Sample2dArray for CpuTexture2dArray<P, Container>
where P: Pixel, Container: Deref<Target = [P::Subpixel]>,