Struct spirv_std::Image2d[][src]

pub struct Image2d { /* fields omitted */ }

Implementations

impl Image2d[src]

pub fn sample<V: Vector<f32, 4>>(
    &self,
    sampler: Sampler,
    coordinate: impl Vector<f32, 2>
) -> V
[src]

pub fn sample_by_lod<V: Vector<f32, 4>>(
    &self,
    sampler: Sampler,
    coordinate: impl Vector<f32, 2>,
    lod: f32
) -> V
[src]

Sample the image at a coordinate by a lod

pub fn sample_by_gradient<V: Vector<f32, 4>>(
    &self,
    sampler: Sampler,
    coordinate: impl Vector<f32, 2>,
    gradient_dx: impl Vector<f32, 2>,
    gradient_dy: impl Vector<f32, 2>
) -> V
[src]

Sample the image based on a gradient formed by (dx, dy). Specifically, ([du/dx, dv/dx], [du/dy, dv/dy])

pub fn sample_with_project_coordinate<V: Vector<f32, 4>>(
    &self,
    sampler: Sampler,
    project_coordinate: impl Vector<f32, 3>
) -> V
[src]

pub fn sample_with_project_coordinate_by_lod<V: Vector<f32, 4>>(
    &self,
    sampler: Sampler,
    project_coordinate: impl Vector<f32, 3>,
    lod: f32
) -> V
[src]

Sample the image with a project coordinate by a lod

pub fn sample_with_project_coordinate_by_gradient<V: Vector<f32, 4>>(
    &self,
    sampler: Sampler,
    project_coordinate: impl Vector<f32, 3>,
    gradient_dx: impl Vector<f32, 2>,
    gradient_dy: impl Vector<f32, 2>
) -> V
[src]

Sample the image with a project coordinate based on a gradient formed by (dx, dy). Specifically, ([du/dx, dv/dx], [du/dy, dv/dy])

pub fn sample_depth_reference(
    &self,
    sampler: Sampler,
    coordinate: impl Vector<f32, 2>,
    depth_reference: f32
) -> f32
[src]

Sample the image’s depth reference

pub fn sample_depth_reference_by_lod(
    &self,
    sampler: Sampler,
    coordinate: impl Vector<f32, 2>,
    depth_reference: f32,
    lod: f32
) -> f32
[src]

Sample the image’s depth reference based on an explicit lod

pub fn sample_depth_reference_by_gradient(
    &self,
    sampler: Sampler,
    coordinate: impl Vector<f32, 2>,
    depth_reference: f32,
    gradient_dx: impl Vector<f32, 2>,
    gradient_dy: impl Vector<f32, 2>
) -> f32
[src]

Sample the image’s depth reference based on a gradient formed by (dx, dy). Specifically, ([du/dx, dv/dx], [du/dy, dv/dy])

pub fn sample_depth_reference_with_project_coordinate(
    &self,
    sampler: Sampler,
    project_coordinate: impl Vector<f32, 3>,
    depth_reference: f32
) -> f32
[src]

Sample the image’s depth reference with the project coordinate

pub fn sample_depth_reference_with_project_coordinate_by_lod(
    &self,
    sampler: Sampler,
    coordinate: impl Vector<f32, 3>,
    depth_reference: f32,
    lod: f32
) -> f32
[src]

Sample the image’s depth reference with the project coordinate based on an explicit lod

pub fn sample_depth_reference_with_project_coordinate_by_gradient(
    &self,
    sampler: Sampler,
    coordinate: impl Vector<f32, 3>,
    depth_reference: f32,
    gradient_dx: impl Vector<f32, 2>,
    gradient_dy: impl Vector<f32, 2>
) -> f32
[src]

Sample the image’s depth reference with the project coordinate based on a gradient formed by (dx, dy). Specifically, ([du/dx, dv/dx], [du/dy, dv/dy])

pub fn fetch<V, I, const N: usize>(&self, coordinate: impl Vector<I, N>) -> V where
    V: Vector<f32, 4>,
    I: Integer
[src]

Fetch a single texel with a sampler set at compile time

Trait Implementations

impl Clone for Image2d[src]

impl Copy for Image2d[src]

Auto Trait Implementations

impl Send for Image2d

impl Sync for Image2d

impl Unpin for Image2d

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.