Function TRAP::Graphics::API::ImageFormatPlaneWidth#

Function Documentation#

constexpr u32 TRAP::Graphics::API::ImageFormatPlaneWidth(const ImageFormat fmt, const u32 plane, const u32 width) noexcept#

Retrieve the width of a specific plane of the given image format.

Parameters:
  • fmtImage format.

  • plane – Plane index.

  • width – Width of the image (plane 0).

Returns:

Width of the plane.