Expand description

Universal format specification. Applicable to textures, views, and vertex buffers.

For a more detailed description of all the specific format specifiers, please see the official Vulkan documentation

gfx-rs splits a Format into two sub-components, a SurfaceType and a ChannelType. The SurfaceType specifies how the large the channels are, for instance R32_G32_B32_A32. The ChannelType specifies how the components are interpreted, for instance Sfloat or Sint.

Structs

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

Bitflags which describe what properties of an image a format specifies or does not specify. For example, the Rgba8Unorm format only specifies a COLOR aspect, while D32SfloatS8Uint specifies both a depth and stencil aspect but no color.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

Generic run-time base format.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

Buffer feature flags.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

Drm format properties

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

Description of the bits distribution of a format.

Description of a format.

Image feature flags.

Format properties of the physical device.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

Channel swizzle configuration for the resource views. This specifies a “swizzle” operation which remaps the various channels of a format into a different order. For example, Swizzle(Component::B, Component::G, Component::R, Component::A) will swap RGBA formats into BGRA formats and back.

A struct equivalent to the matching Format enum member, which allows an API to be strongly typed on particular formats.

Enums

Type of a surface channel. This is how we interpret the storage allocated with SurfaceType.

Source channel in a swizzle configuration. Some may redirect onto different physical channels, some may be hardcoded to 0 or 1.

A format descriptor that describes the channels present in a texture or view, how they are laid out, what size they are, and how the elements of the channels are interpreted (integer, float, etc.)

Type of the allocated texture surface. It is supposed to only carry information about the number of bits per each channel. The actual types are up to the views to decide and interpret. The actual components are up to the swizzle to define.

Constants

Conversion table from Format to BaseFormat, excluding Undefined.

Format bits configuration with no bits assigned.

Number of formats.

Traits

Conversion trait into Format;