pub struct SampleParams<B: OptionTy, L: OptionTy, G: OptionTy, S: OptionTy> {
pub bias: B,
pub lod: L,
pub grad: G,
pub sample_index: S,
}
Expand description
Helper struct that allows building image operands.
Start with a global function that returns this struct, and then chain additional calls.
No care is taken to avoid stating multiple operands that, together, make no sense, such as Lod and Grad.
Example: image.sample_with(coords, sample_with::bias(3.0).sample_index(1))
Fields§
§bias: B
‘Bias’ image operand
lod: L
‘Lod’ image operand
grad: G
‘Grad’ image operand
sample_index: S
‘Sample’ image operandy
Implementations§
Source§impl<L: OptionTy, G: OptionTy, S: OptionTy> SampleParams<NoneTy, L, G, S>
impl<L: OptionTy, G: OptionTy, S: OptionTy> SampleParams<NoneTy, L, G, S>
Sourcepub fn bias<B>(self, bias: B) -> SampleParams<SomeTy<B>, L, G, S>
pub fn bias<B>(self, bias: B) -> SampleParams<SomeTy<B>, L, G, S>
Sets the ‘Bias’ image operand
Source§impl<B: OptionTy, G: OptionTy, S: OptionTy> SampleParams<B, NoneTy, G, S>
impl<B: OptionTy, G: OptionTy, S: OptionTy> SampleParams<B, NoneTy, G, S>
Sourcepub fn lod<L>(self, lod: L) -> SampleParams<B, SomeTy<L>, G, S>
pub fn lod<L>(self, lod: L) -> SampleParams<B, SomeTy<L>, G, S>
Sets the ‘Lod’ image operand
Source§impl<B: OptionTy, L: OptionTy, S: OptionTy> SampleParams<B, L, NoneTy, S>
impl<B: OptionTy, L: OptionTy, S: OptionTy> SampleParams<B, L, NoneTy, S>
Sourcepub fn grad<T>(
self,
grad_x: T,
grad_y: T,
) -> SampleParams<B, L, SomeTy<(T, T)>, S>
pub fn grad<T>( self, grad_x: T, grad_y: T, ) -> SampleParams<B, L, SomeTy<(T, T)>, S>
Sets the ‘Lod’ image operand
Source§impl<B: OptionTy, L: OptionTy, G: OptionTy> SampleParams<B, L, G, NoneTy>
impl<B: OptionTy, L: OptionTy, G: OptionTy> SampleParams<B, L, G, NoneTy>
Sourcepub fn sample_index<S>(
self,
sample_index: S,
) -> SampleParams<B, L, G, SomeTy<S>>
pub fn sample_index<S>( self, sample_index: S, ) -> SampleParams<B, L, G, SomeTy<S>>
Sets the ‘Sample’ image operand
Trait Implementations§
Source§impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, S> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, NoneTy, NoneTy, SomeTy<S>>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, S> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, NoneTy, NoneTy, SomeTy<S>>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
Source§fn gather_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
component: u32,
params: SampleParams<NoneTy, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledType::Vec4
fn gather_with<F>( &self, sampler: Sampler, coordinate: impl ImageCoordinate<F, DIM, ARRAYED>, component: u32, params: SampleParams<NoneTy, NoneTy, NoneTy, SomeTy<S>>, ) -> SampledType::Vec4
Gathers the requested component from four texels.
Source§fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<NoneTy, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<NoneTy, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
Sample texels at coord
from the image using sampler
.
Source§fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<NoneTy, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<NoneTy, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference
Source§fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<NoneTy, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<NoneTy, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
Sample the image with a project coordinate
Source§fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<NoneTy, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<NoneTy, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference with the project coordinate
Source§fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<NoneTy, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
I: Integer,
fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<NoneTy, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
I: Integer,
Source§impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, G> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, NoneTy>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, G> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, NoneTy>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
Source§fn gather_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
component: u32,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::Vec4
fn gather_with<F>( &self, sampler: Sampler, coordinate: impl ImageCoordinate<F, DIM, ARRAYED>, component: u32, params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, NoneTy>, ) -> SampledType::Vec4
Gathers the requested component from four texels.
Source§fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
Sample texels at coord
from the image using sampler
.
Source§fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference
Source§fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
Sample the image with a project coordinate
Source§fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference with the project coordinate
Source§fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
I: Integer,
fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
I: Integer,
Source§impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, G, S> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, SomeTy<S>>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, G, S> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, SomeTy<S>>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
Source§fn gather_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
component: u32,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::Vec4
fn gather_with<F>( &self, sampler: Sampler, coordinate: impl ImageCoordinate<F, DIM, ARRAYED>, component: u32, params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, SomeTy<S>>, ) -> SampledType::Vec4
Gathers the requested component from four texels.
Source§fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
Sample texels at coord
from the image using sampler
.
Source§fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference
Source§fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
Sample the image with a project coordinate
Source§fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference with the project coordinate
Source§fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
I: Integer,
fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
I: Integer,
Source§impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, L> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, SomeTy<L>, NoneTy, NoneTy>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, L> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, SomeTy<L>, NoneTy, NoneTy>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
Source§fn gather_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
component: u32,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledType::Vec4
fn gather_with<F>( &self, sampler: Sampler, coordinate: impl ImageCoordinate<F, DIM, ARRAYED>, component: u32, params: SampleParams<NoneTy, SomeTy<L>, NoneTy, NoneTy>, ) -> SampledType::Vec4
Gathers the requested component from four texels.
Source§fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
Sample texels at coord
from the image using sampler
.
Source§fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference
Source§fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
Sample the image with a project coordinate
Source§fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference with the project coordinate
Source§fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledType::SampleResultwhere
I: Integer,
fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledType::SampleResultwhere
I: Integer,
Source§impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, L, S> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, SomeTy<L>, NoneTy, SomeTy<S>>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, L, S> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, SomeTy<L>, NoneTy, SomeTy<S>>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
Source§fn gather_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
component: u32,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledType::Vec4
fn gather_with<F>( &self, sampler: Sampler, coordinate: impl ImageCoordinate<F, DIM, ARRAYED>, component: u32, params: SampleParams<NoneTy, SomeTy<L>, NoneTy, SomeTy<S>>, ) -> SampledType::Vec4
Gathers the requested component from four texels.
Source§fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
Sample texels at coord
from the image using sampler
.
Source§fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference
Source§fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
Sample the image with a project coordinate
Source§fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference with the project coordinate
Source§fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
I: Integer,
fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<NoneTy, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
I: Integer,
Source§impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, L, G> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, NoneTy>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, L, G> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, NoneTy>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
Source§fn gather_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
component: u32,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::Vec4
fn gather_with<F>( &self, sampler: Sampler, coordinate: impl ImageCoordinate<F, DIM, ARRAYED>, component: u32, params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, NoneTy>, ) -> SampledType::Vec4
Gathers the requested component from four texels.
Source§fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
Sample texels at coord
from the image using sampler
.
Source§fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference
Source§fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
Sample the image with a project coordinate
Source§fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference with the project coordinate
Source§fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
I: Integer,
fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
I: Integer,
Source§impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, L, G, S> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, L, G, S> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
Source§fn gather_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
component: u32,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::Vec4
fn gather_with<F>( &self, sampler: Sampler, coordinate: impl ImageCoordinate<F, DIM, ARRAYED>, component: u32, params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>, ) -> SampledType::Vec4
Gathers the requested component from four texels.
Source§fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
Sample texels at coord
from the image using sampler
.
Source§fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference
Source§fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
Sample the image with a project coordinate
Source§fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference with the project coordinate
Source§fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
I: Integer,
fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
I: Integer,
Source§impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, B> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, NoneTy, NoneTy, NoneTy>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, B> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, NoneTy, NoneTy, NoneTy>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
Source§fn gather_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
component: u32,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, NoneTy>,
) -> SampledType::Vec4
fn gather_with<F>( &self, sampler: Sampler, coordinate: impl ImageCoordinate<F, DIM, ARRAYED>, component: u32, params: SampleParams<SomeTy<B>, NoneTy, NoneTy, NoneTy>, ) -> SampledType::Vec4
Gathers the requested component from four texels.
Source§fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
Sample texels at coord
from the image using sampler
.
Source§fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, NoneTy>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, NoneTy>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference
Source§fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
Sample the image with a project coordinate
Source§fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, NoneTy>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, NoneTy>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference with the project coordinate
Source§fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, NoneTy>,
) -> SampledType::SampleResultwhere
I: Integer,
fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, NoneTy>,
) -> SampledType::SampleResultwhere
I: Integer,
Source§impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, B, S> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, NoneTy, NoneTy, SomeTy<S>>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, B, S> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, NoneTy, NoneTy, SomeTy<S>>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
Source§fn gather_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
component: u32,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledType::Vec4
fn gather_with<F>( &self, sampler: Sampler, coordinate: impl ImageCoordinate<F, DIM, ARRAYED>, component: u32, params: SampleParams<SomeTy<B>, NoneTy, NoneTy, SomeTy<S>>, ) -> SampledType::Vec4
Gathers the requested component from four texels.
Source§fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
Sample texels at coord
from the image using sampler
.
Source§fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference
Source§fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
Sample the image with a project coordinate
Source§fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference with the project coordinate
Source§fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
I: Integer,
fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, NoneTy, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
I: Integer,
Source§impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, B, G> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, NoneTy>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, B, G> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, NoneTy>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
Source§fn gather_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
component: u32,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::Vec4
fn gather_with<F>( &self, sampler: Sampler, coordinate: impl ImageCoordinate<F, DIM, ARRAYED>, component: u32, params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, NoneTy>, ) -> SampledType::Vec4
Gathers the requested component from four texels.
Source§fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
Sample texels at coord
from the image using sampler
.
Source§fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference
Source§fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
Sample the image with a project coordinate
Source§fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference with the project coordinate
Source§fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
I: Integer,
fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
I: Integer,
Source§impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, B, G, S> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, SomeTy<S>>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, B, G, S> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, SomeTy<S>>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
Source§fn gather_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
component: u32,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::Vec4
fn gather_with<F>( &self, sampler: Sampler, coordinate: impl ImageCoordinate<F, DIM, ARRAYED>, component: u32, params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, SomeTy<S>>, ) -> SampledType::Vec4
Gathers the requested component from four texels.
Source§fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
Sample texels at coord
from the image using sampler
.
Source§fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference
Source§fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
Sample the image with a project coordinate
Source§fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference with the project coordinate
Source§fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
I: Integer,
fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
I: Integer,
Source§impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, B, L> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, NoneTy>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, B, L> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, NoneTy>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
Source§fn gather_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
component: u32,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledType::Vec4
fn gather_with<F>( &self, sampler: Sampler, coordinate: impl ImageCoordinate<F, DIM, ARRAYED>, component: u32, params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, NoneTy>, ) -> SampledType::Vec4
Gathers the requested component from four texels.
Source§fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
Sample texels at coord
from the image using sampler
.
Source§fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference
Source§fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
Sample the image with a project coordinate
Source§fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference with the project coordinate
Source§fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledType::SampleResultwhere
I: Integer,
fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, NoneTy>,
) -> SampledType::SampleResultwhere
I: Integer,
Source§impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, B, L, S> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, SomeTy<S>>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, B, L, S> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, SomeTy<S>>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
Source§fn gather_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
component: u32,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledType::Vec4
fn gather_with<F>( &self, sampler: Sampler, coordinate: impl ImageCoordinate<F, DIM, ARRAYED>, component: u32, params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, SomeTy<S>>, ) -> SampledType::Vec4
Gathers the requested component from four texels.
Source§fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
Sample texels at coord
from the image using sampler
.
Source§fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference
Source§fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
Sample the image with a project coordinate
Source§fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference with the project coordinate
Source§fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
I: Integer,
fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, SomeTy<S>>,
) -> SampledType::SampleResultwhere
I: Integer,
Source§impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, B, L, G> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, NoneTy>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, B, L, G> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, NoneTy>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
Source§fn gather_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
component: u32,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::Vec4
fn gather_with<F>( &self, sampler: Sampler, coordinate: impl ImageCoordinate<F, DIM, ARRAYED>, component: u32, params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, NoneTy>, ) -> SampledType::Vec4
Gathers the requested component from four texels.
Source§fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
Sample texels at coord
from the image using sampler
.
Source§fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference
Source§fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
F: Float,
Sample the image with a project coordinate
Source§fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference with the project coordinate
Source§fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
I: Integer,
fn fetch_with<I>(
&self,
coordinate: impl ImageCoordinate<I, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, NoneTy>,
) -> SampledType::SampleResultwhere
I: Integer,
Source§impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, B, L, G, S> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
impl<SampledType: SampleType<FORMAT, COMPONENTS>, const DIM: u32, const DEPTH: u32, const ARRAYED: u32, const MULTISAMPLED: u32, const SAMPLED: u32, const FORMAT: u32, const COMPONENTS: u32, B, L, G, S> ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>> for Image<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS>
Source§fn gather_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
component: u32,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::Vec4
fn gather_with<F>( &self, sampler: Sampler, coordinate: impl ImageCoordinate<F, DIM, ARRAYED>, component: u32, params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>, ) -> SampledType::Vec4
Gathers the requested component from four texels.
Source§fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with<F>(
&self,
sampler: Sampler,
coord: impl ImageCoordinate<F, DIM, ARRAYED>,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
Sample texels at coord
from the image using sampler
.
Source§fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with<F>(
&self,
sampler: Sampler,
coordinate: impl ImageCoordinate<F, DIM, ARRAYED>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference
Source§fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
fn sample_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledType::SampleResultwhere
F: Float,
Sample the image with a project coordinate
Source§fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
fn sample_depth_reference_with_project_coordinate_with<F>(
&self,
sampler: Sampler,
project_coordinate: impl ImageCoordinate<F, DIM, { _ }>,
depth_reference: f32,
params: SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>,
) -> SampledTypewhere
F: Float,
Sample the image’s depth reference with the project coordinate