Trait Sample2d

Source
pub trait Sample2d {
    type Sampler: IsSampler;

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

Required Associated Types§

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl Sample2d for Image2d

Source§

type Sampler = Sampler

Source§

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

Source§

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

Source§

type Sampler = Sampler

Source§

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

Implementors§

Source§

impl Sample2d for ConstTexture

Source§

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