![]() |
LLGL 0.05 Beta
|
Functions | |
| LLGL_EXPORT const FormatAttributes & | LLGL::GetFormatAttribs (const Format format) |
| Returns the attributes for the specified hardware format or a zero-initialized structure in case of an invalid argument. | |
| LLGL_EXPORT std::uint32_t | LLGL::ImageFormatSize (const ImageFormat imageFormat) |
| Returns the size (in number of components) of the specified image format. | |
| LLGL_EXPORT std::size_t | LLGL::GetMemoryFootprint (const Format format, std::size_t numTexels) |
| Returns the memory footprint (in bytes) of a texture or buffer with the specified hardware format and number of elements. | |
| LLGL_EXPORT std::size_t | LLGL::GetMemoryFootprint (const ImageFormat imageFormat, const DataType dataType, std::size_t numTexels) |
| Returns the memory footprint (in bytes) of an image with the specified format, data type, and number of elements. | |
| LLGL_EXPORT bool | LLGL::IsCompressedFormat (const Format format) |
| Returns true if the specified hardware format is a compressed format, e.g. Format::BC1UNorm, Format::BC2UNorm_sRGB, Format::BC4SNorm, etc. | |
| LLGL_EXPORT bool | LLGL::IsDepthOrStencilFormat (const Format format) |
| Returns true if the specified hardware format is a depth or depth-stencil format, i.e. Format::D16UNorm, Format::D24UNormS8UInt, Format::D32Float, or Format::D32FloatS8X24UInt. | |
| LLGL_EXPORT bool | LLGL::IsDepthAndStencilFormat (const Format format) |
| Returns true if the specified hardware format is a depth and stencil format, i.e. Format::D24UNormS8UInt or Format::D32FloatS8X24UInt. | |
| LLGL_EXPORT bool | LLGL::IsDepthOrStencilFormat (const ImageFormat imageFormat) |
| Returns true if the specified color format is a depth-stencil format, i.e. either ImageFormat::Depth or ImageFormat::DepthStencil. | |
| LLGL_EXPORT bool | LLGL::IsDepthFormat (const Format format) |
| Returns true if the specified hardware format is a depth format, i.e. Format::D16UNorm, Format::D24UNormS8UInt, Format::D32Float, or Format::D32FloatS8X24UInt. | |
| LLGL_EXPORT bool | LLGL::IsStencilFormat (const Format format) |
| Returns true if the specified hardware format is a stencil format, i.e. Format::D24UNormS8UInt or Format::D32FloatS8X24UInt. | |
| LLGL_EXPORT bool | LLGL::IsColorFormat (const Format format) |
| Returns true if the specified hardware format is a color format. | |
| LLGL_EXPORT bool | LLGL::IsNormalizedFormat (const Format format) |
| Returns true if the specified hardware format is a normalized format (like Format::RGBA8UNorm, Format::R8SNorm etc.). | |
| LLGL_EXPORT bool | LLGL::IsIntegerFormat (const Format format) |
| Returns true if the specified hardware format is a strict integer format (like Format::RGBA8UInt, Format::R8SInt etc.). | |
| LLGL_EXPORT bool | LLGL::IsFloatFormat (const Format format) |
| Returns true if the specified hardware format is a strict floating-point format (like Format::RGBA32Float, Format::R32Float etc.). | |
| LLGL_EXPORT const FormatAttributes & LLGL::GetFormatAttribs | ( | const Format | format | ) |
Returns the attributes for the specified hardware format or a zero-initialized structure in case of an invalid argument.
| LLGL_EXPORT std::size_t LLGL::GetMemoryFootprint | ( | const Format | format, |
| std::size_t | numTexels ) |
Returns the memory footprint (in bytes) of a texture or buffer with the specified hardware format and number of elements.
| [in] | format | Specifies the hardware format. |
| [in] | numTexels | Specifies the number of elements that make up the memory footprint. For the DXT compressed formats, this must be a multiple of 16, since these formats compress images in 4x4 texel blocks. |
| LLGL_EXPORT std::size_t LLGL::GetMemoryFootprint | ( | const ImageFormat | imageFormat, |
| const DataType | dataType, | ||
| std::size_t | numTexels ) |
Returns the memory footprint (in bytes) of an image with the specified format, data type, and number of elements.
| [in] | imageFormat | Specifies the image format. |
| [in] | dataType | Specifies the data type of each pixel component. |
| [in] | numTexels | Specifies the number of elements that make up the memory footprint. |
| LLGL_EXPORT std::uint32_t LLGL::ImageFormatSize | ( | const ImageFormat | imageFormat | ) |
Returns the size (in number of components) of the specified image format.
| [in] | imageFormat | Specifies the image format. |
imageFormat specifies a compressed color format. | LLGL_EXPORT bool LLGL::IsColorFormat | ( | const Format | format | ) |
Returns true if the specified hardware format is a color format.
(format != Format::Undefined && !IsDepthOrStencilFormat(format)). | LLGL_EXPORT bool LLGL::IsCompressedFormat | ( | const Format | format | ) |
Returns true if the specified hardware format is a compressed format, e.g. Format::BC1UNorm, Format::BC2UNorm_sRGB, Format::BC4SNorm, etc.
| LLGL_EXPORT bool LLGL::IsDepthAndStencilFormat | ( | const Format | format | ) |
Returns true if the specified hardware format is a depth and stencil format, i.e. Format::D24UNormS8UInt or Format::D32FloatS8X24UInt.
| LLGL_EXPORT bool LLGL::IsDepthFormat | ( | const Format | format | ) |
Returns true if the specified hardware format is a depth format, i.e. Format::D16UNorm, Format::D24UNormS8UInt, Format::D32Float, or Format::D32FloatS8X24UInt.
| LLGL_EXPORT bool LLGL::IsDepthOrStencilFormat | ( | const Format | format | ) |
Returns true if the specified hardware format is a depth or depth-stencil format, i.e. Format::D16UNorm, Format::D24UNormS8UInt, Format::D32Float, or Format::D32FloatS8X24UInt.
| LLGL_EXPORT bool LLGL::IsDepthOrStencilFormat | ( | const ImageFormat | imageFormat | ) |
Returns true if the specified color format is a depth-stencil format, i.e. either ImageFormat::Depth or ImageFormat::DepthStencil.
| LLGL_EXPORT bool LLGL::IsFloatFormat | ( | const Format | format | ) |
Returns true if the specified hardware format is a strict floating-point format (like Format::RGBA32Float, Format::R32Float etc.).
| LLGL_EXPORT bool LLGL::IsIntegerFormat | ( | const Format | format | ) |
Returns true if the specified hardware format is a strict integer format (like Format::RGBA8UInt, Format::R8SInt etc.).
| LLGL_EXPORT bool LLGL::IsNormalizedFormat | ( | const Format | format | ) |
Returns true if the specified hardware format is a normalized format (like Format::RGBA8UNorm, Format::R8SNorm etc.).
| LLGL_EXPORT bool LLGL::IsStencilFormat | ( | const Format | format | ) |
Returns true if the specified hardware format is a stencil format, i.e. Format::D24UNormS8UInt or Format::D32FloatS8X24UInt.