Expand description
Image types
Macros
A macro for creating SPIR-V
OpTypeImage
types. Always produces a
spirv_std::image::Image<...>
type.Structs
An opaque image type. Corresponds to
OpTypeImage
.An image combined with a sampler in a single value, enabling filtered accesses of the image’s
contents. Corresponds to
OpTypeSampledImage
.Enums
The access permissions for the image.
Whether the image uses arrayed content.
The dimension of the image.
Whether a given image contains depth information. Note Whether or not
to perform depth comparisons is a property of the sampling code, not of this
type.
The underlying internal representation of the image.
Whether the image uses arrayed content.
Whether or not the image will be accessed in combination with a sampler.
Traits
This is a marker trait to represent the constraints on
OpImageGather
too complex to be
represented by const generics. Specifically:This is a marker trait to represent the constraints on
OpImageQueryLevels
and
OpImageQueryLod
too complex to be represented by const generics. Specifically:This is a marker trait to represent the constraints on
OpImageQuerySize
too complex to be
represented by const generics. Specifically:This is a marker trait to represent the constraints on
OpImageQuerySizeLod
too complex to be
represented by const generics. Specifically:Marker trait for arguments that accept a coordinate for an
crate::Image
.Marker trait for arguments that are valid for a
crate::image::Dimensionality::SubpassData
image query.Marker trait for arguments that accept single scalar values or vectors
of scalars.
Type Definitions
A cubemap, i.e. a cube of 6 textures, sampled using a direction rather than image coordinates.
A 1d image used with a sampler.
An array of 1d images, used with a sampler.
A 1d image used with a sampler, containing signed integer data.
An array of 1d images, used with a sampler, each containing signed integer data.
A 1d image used with a sampler, containing unsigned integer data.
An array of 1d images, used with a sampler, each containing unsigned integer data.
A 2d image used with a sampler. This is pretty typical and probably what you want.
An array of 2d images, used with a sampler.
A 2d image used with a sampler, containing signed integer data.
An array of 2d images, used with a sampler, each containing signed integer data.
A 2d image used with a sampler, containing unsigned integer data.
An array of 2d images, used with a sampler, each containing unsigned integer data.
A 3d image used with a sampler.
An array of 3d images, used with a sampler.
A 3d image used with a sampler, containing signed integer data.
An array of 3d images, used with a sampler, each containing signed integer data.
A 3d image used with a sampler, containing unsigned integer data.
An array of 3d images, used with a sampler, each containing unsigned integer data.
A 1d storage image, directly accessed, without using a sampler.
A 1d storage image, directly accessed without a sampler, containing signed integer data.
A 1d storage image, directly accessed without a sampler, containing unsigned integer data.
A 2d storage image, directly accessed, without using a sampler.
A 2d storage image, directly accessed without a sampler, containing signed integer data.
A 2d storage image, directly accessed without a sampler, containing unsigned integer data.
A 3d storage image, directly accessed, without using a sampler.
A 3d storage image, directly accessed without a sampler, containing signed integer data.
A 3d storage image, directly accessed without a sampler, containing unsigned integer data.