Expand description
Image types
Modules§
- sample_
with - Contains extra image operands
Macros§
- Image
- A macro for creating SPIR-V
OpTypeImage
types. Always produces aspirv_std::image::Image<...>
type.
Structs§
- Image
- An opaque image type. Corresponds to
OpTypeImage
. - Sampled
Image - An image combined with a sampler in a single value, enabling filtered accesses of the image’s
contents. Corresponds to
OpTypeSampledImage
.
Enums§
- Access
Qualifier - The access permissions for the image.
- Arrayed
- Whether the image uses arrayed content.
- Dimensionality
- The dimension of the image.
- Image
Depth - 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.
- Image
Format - The underlying internal representation of the image.
- Multisampled
- Whether the image uses arrayed content.
- Sampled
- Whether or not the image will be accessed in combination with a sampler.
Traits§
- HasGather
- This is a marker trait to represent the constraints on
OpImageGather
too complex to be represented by const generics. Specifically: - HasQuery
Levels - This is a marker trait to represent the constraints on
OpImageQueryLevels
andOpImageQueryLod
too complex to be represented by const generics. Specifically: - HasQuery
Size - This is a marker trait to represent the constraints on
OpImageQuerySize
too complex to be represented by const generics. Specifically: - HasQuery
Size Lod - This is a marker trait to represent the constraints on
OpImageQuerySizeLod
too complex to be represented by const generics. Specifically: - Image
Coordinate - Marker trait for arguments that accept a coordinate for an
crate::Image
. - Image
Coordinate Subpass Data - Marker trait for arguments that are valid for a
crate::image::Dimensionality::SubpassData
image query. - Image
With Methods - Helper trait that defines all
*_with
methods on anImage
that use the extra image operands, such as bias or lod, defined by theSampleParams
struct. - Sample
Type - Marker trait for arguments that accept single scalar values or vectors of scalars. Defines 2-, 3- and 4-component vector types based on the sample type.
Type Aliases§
- Cubemap
- A cubemap, i.e. a cube of 6 textures, sampled using a direction rather than image coordinates.
- Image1d
- A 1d image used with a sampler.
- Image1d
Array - An array of 1d images, used with a sampler.
- Image1dI
- A 1d image used with a sampler, containing signed integer data.
- Image1dI
Array - An array of 1d images, used with a sampler, each containing signed integer data.
- Image1dU
- A 1d image used with a sampler, containing unsigned integer data.
- Image1dU
Array - An array of 1d images, used with a sampler, each containing unsigned integer data.
- Image2d
- A 2d image used with a sampler. This is pretty typical and probably what you want.
- Image2d
Array - An array of 2d images, used with a sampler.
- Image2dI
- A 2d image used with a sampler, containing signed integer data.
- Image2dI
Array - An array of 2d images, used with a sampler, each containing signed integer data.
- Image2dU
- A 2d image used with a sampler, containing unsigned integer data.
- Image2dU
Array - An array of 2d images, used with a sampler, each containing unsigned integer data.
- Image3d
- A 3d image used with a sampler.
- Image3d
Array - An array of 3d images, used with a sampler.
- Image3dI
- A 3d image used with a sampler, containing signed integer data.
- Image3dI
Array - An array of 3d images, used with a sampler, each containing signed integer data.
- Image3dU
- A 3d image used with a sampler, containing unsigned integer data.
- Image3dU
Array - An array of 3d images, used with a sampler, each containing unsigned integer data.
- Storage
Image1d - A 1d storage image, directly accessed, without using a sampler.
- Storage
Image1dI - A 1d storage image, directly accessed without a sampler, containing signed integer data.
- Storage
Image1dU - A 1d storage image, directly accessed without a sampler, containing unsigned integer data.
- Storage
Image2d - A 2d storage image, directly accessed, without using a sampler.
- Storage
Image2dI - A 2d storage image, directly accessed without a sampler, containing signed integer data.
- Storage
Image2dU - A 2d storage image, directly accessed without a sampler, containing unsigned integer data.
- Storage
Image3d - A 3d storage image, directly accessed, without using a sampler.
- Storage
Image3dI - A 3d storage image, directly accessed without a sampler, containing signed integer data.
- Storage
Image3dU - A 3d storage image, directly accessed without a sampler, containing unsigned integer data.