Module gfx::format

source ·
Expand description

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

Structs

  • Complete run-time surface format.
  • Channel swizzle configuration for the resource views. Note: It’s not currently mirrored at compile-time, thus providing less safety and convenience.

Enums

Traits

Type Definitions

  • Standard 8bits BGRA format.
  • Standard 24-bit depth format.
  • Standard 32-bit floating-point depth format.
  • Standard 24-bit depth format with 8-bit stencil.
  • Standard HDR floating-point format with 10 bits for RGB components and 2 bits for the alpha.
  • Standard 8bits RGBA format.
  • Standard 16-bit floating-point RGBA format.
  • Standard 32-bit floating-point RGBA format.
  • Standard 8bit gamma transforming RGB format.
  • Abstracted 1-element container for macro internal use
  • Abstracted 2-element container for macro internal use
  • Abstracted 3-element container for macro internal use
  • Abstracted 4-element container for macro internal use