Module gfx_hal::image

source ·
Expand description

Image related structures.

An image is a block of GPU memory representing a grid of texels.

Structs

Bitflags to describe how memory in an image or buffer can be accessed.
Texture depth-stencil view descriptor. Legacy code to be removed, per msiglreith.
Depth-stencil read-only flags
Describes the size of an image, which may be up to three dimensional.
Image format properties.
A wrapper for the LOD level of an image.
A wrapper for an RGBA color with 8 bits per texel, encoded as a u32.
Texture render view descriptor. Legacy code to be removed, per msiglreith.
Texture resource view descriptor. Legacy code to be removed, per msiglreith.
Specifies how to sample from an image.
Selector of a concrete subresource in an image.
Footprint of a subresource in memory.
A subset of resource layers contained within an image’s level.
A subset of resources contained within an image.
TODO: Find out if TRANSIENT_ATTACHMENT + INPUT_ATTACHMENT are applicable on backends other than Vulkan. –AP Image usage flags
Capabilities to create views into an image.

Enums

Anisotropic filtering description for the sampler.
Pure image object creation error.
The face of a cube image to do an operation on.
How to filter the image when sampling. They correspond to increasing levels of quality, but also cost.
Specifies the kind of an image to be allocated.
An error associated with selected image layer.
Specifies options for how memory for an image is arranged. These are hints to the GPU driver and may or may not have actual performance effects, but describe constraints on how the data may be used that a program must obey. They do not specify how channel values or such are laid out in memory; the actual image data is considered opaque.
Image tiling modes.
Error creating an ImageView.
Specifies the kind of an image view.
Specifies how image coordinates outside the range [0, 1] are handled.

Constants

A constant array of cube faces in the order they map to the hardware.
Maximum accessible mipmap level of an image.

Type Definitions

Image layer.
Image mipmap level.
Number of MSAA samples.
Dimension size.
Image state, combining access methods and the image’s layout.