Skip to main content

Module d3d11_layout

Module d3d11_layout 

Source
Expand description

(PixelFormat, DType, width, height) -> D3D11 texture layout.

Compiled on every platform so the table is unit-tested on every CI lane; only the allocator that consumes it is Windows-only. Single source of truth for which DXGI format and texture geometry back each HAL image format; the image crate reads gl_internal_format when it builds the EGL_ANGLE_image_d3d11_texture attribute list.

Structs§

D3d11ImageLayout
One texture’s format and geometry for a HAL image. texture_width and texture_height are texels and rows, not image pixels: the packed rows fold several pixels or several planes into one texel, and a semi-planar row is the image’s row stride rather than its width.

Constants§

DXGI_FORMAT_B8G8R8A8_UNORM
DXGI_FORMAT_R8G8B8A8_UNORM
DXGI_FORMAT_R8G8_UNORM
DXGI_FORMAT_R8_UNORM
DXGI_FORMAT_R16G16B16A16_FLOAT
DXGI_FORMAT_R32G32B32A32_FLOAT
GL_BGRA_EXT
GL_RED_EXT
GL_RGBA
Values accepted for EGL_TEXTURE_INTERNAL_FORMAT_ANGLE by ANGLE’s D3D11 client-buffer validation (Renderer11::getD3DTextureInfo).
GL_RG_EXT

Functions§

image_d3d11_layout
The D3D11 texture that backs format/dtype at width x height, or None when the format has no zero-copy texture layout (it then falls to PBO or Mem in the allocation chain).