![]() |
LLGL 0.05 Beta
|
Functions | |
| LLGL_EXPORT std::uint32_t | LLGL::NumMipLevels (std::uint32_t width, std::uint32_t height=1, std::uint32_t depth=1) |
| Returns the number of MIP-map levels for a texture with the specified size. | |
| LLGL_EXPORT std::uint32_t | LLGL::NumMipLevels (const TextureType type, const Extent3D &extent) |
| Returns the number of MIP-map levels for the specified texture attributes. | |
| LLGL_EXPORT std::uint32_t | LLGL::NumMipLevels (const TextureDescriptor &textureDesc) |
| Returns the number of MIP-map levels for the specified texture descriptor. | |
| LLGL_EXPORT std::uint32_t | LLGL::NumMipTexels (const TextureType type, const Extent3D &extent, std::uint32_t mipLevel) |
Returns the number of texture elements (texels) for the specified texture attributes, or zero extent if mipLevel is out of bounds (see NumMipLevels). | |
| LLGL_EXPORT std::uint32_t | LLGL::NumMipTexels (const TextureType type, const Extent3D &extent, const TextureSubresource &subresource) |
| Returns the number of texture elements (texels) for the specified texture subresource range. | |
| LLGL_EXPORT std::uint32_t | LLGL::NumMipTexels (const TextureDescriptor &textureDesc, std::uint32_t mipLevel=~0u) |
| Returns the number of texture elements (texels) for the specified texture descriptor. | |
| LLGL_EXPORT std::uint32_t | LLGL::NumMipDimensions (const TextureType type) |
| Returns the number of MIP-map dimensions for the specified texture type. This is either 1, 2, 3, or 0 if the input is invalid. | |
| LLGL_EXPORT std::uint32_t | LLGL::NumTextureDimensions (const TextureType type) |
| Returns the number of texture dimensions for the specified texture type. This is either 1, 2, 3, or 0 if the input is invalid. | |
| LLGL_EXPORT Extent3D | LLGL::GetMipExtent (const TextureType type, const Extent3D &extent, std::uint32_t mipLevel) |
Returns the MIP-map extent (including array layers) for the specified texture type, or an empty extent if mipLevel is out of bounds (see NumMipLevels). | |
| LLGL_EXPORT Extent3D | LLGL::GetMipExtent (const TextureDescriptor &textureDesc, std::uint32_t mipLevel=0) |
| Returns the MIP-map extent (including array layers) for the specified texture descriptor. | |
| LLGL_EXPORT std::size_t | LLGL::GetMemoryFootprint (const TextureType type, const Format format, const Extent3D &extent, const TextureSubresource &subresource) |
| Returns the memory footprint (in bytes) of a texture subresource with the specified hardware format and extent. | |
| LLGL_EXPORT bool | LLGL::IsMipMappedTexture (const TextureDescriptor &textureDesc) |
| Returns true if the specified texture descriptor describes a texture with MIP-mapping enabled. | |
| LLGL_EXPORT bool | LLGL::IsArrayTexture (const TextureType type) |
| Returns true if the specified texture type is an array texture. | |
| LLGL_EXPORT bool | LLGL::IsMultiSampleTexture (const TextureType type) |
| Returns true if the specified texture type is a multi-sample texture. | |
| LLGL_EXPORT bool | LLGL::IsCubeTexture (const TextureType type) |
| Returns true if the specified texture type is a cube texture. | |
| LLGL_EXPORT bool | LLGL::IsTextureSwizzleIdentity (const TextureSwizzleRGBA &swizzle) |
| Returns true if the specified texture swizzling is equal to the identity mapping. | |
| LLGL_EXPORT std::size_t LLGL::GetMemoryFootprint | ( | const TextureType | type, |
| const Format | format, | ||
| const Extent3D & | extent, | ||
| const TextureSubresource & | subresource ) |
Returns the memory footprint (in bytes) of a texture subresource with the specified hardware format and extent.
| [in] | type | Specifies the texture type which determines how extent and subresource will result into the final texture dimensions. |
| [in] | format | Specifies the hardware format. |
| [in] | extent | Specifies the extent of the texture subresource. |
| [in] | subresource | Specifies the texture subresource. |
| LLGL_EXPORT Extent3D LLGL::GetMipExtent | ( | const TextureDescriptor & | textureDesc, |
| std::uint32_t | mipLevel = 0 ) |
Returns the MIP-map extent (including array layers) for the specified texture descriptor.
| [in] | textureDesc | Specifies the texture descriptor. |
| [in] | mipLevel | Specifies the MIP-map level whose extent is to be determined. The first and largest MIP-map level has index zero. |
| LLGL_EXPORT Extent3D LLGL::GetMipExtent | ( | const TextureType | type, |
| const Extent3D & | extent, | ||
| std::uint32_t | mipLevel ) |
Returns the MIP-map extent (including array layers) for the specified texture type, or an empty extent if mipLevel is out of bounds (see NumMipLevels).
| [in] | type | Specifies the texture type for which the MIP-map extent is to be determined. |
| [in] | extent | Specifies the extent of the first MIP-map level. |
| [in] | mipLevel | Specifies the MIP-map level whose extent is to be determined. The first and largest MIP-map level has index zero. |
| LLGL_EXPORT bool LLGL::IsArrayTexture | ( | const TextureType | type | ) |
Returns true if the specified texture type is an array texture.
type is either TextureType::Texture1DArray, TextureType::Texture2DArray, TextureType::TextureCubeArray, or TextureType::Texture2DMSArray. | LLGL_EXPORT bool LLGL::IsCubeTexture | ( | const TextureType | type | ) |
Returns true if the specified texture type is a cube texture.
type is either TextureType::TextureCube or TextureType::TextureCubeArray. | LLGL_EXPORT bool LLGL::IsMipMappedTexture | ( | const TextureDescriptor & | textureDesc | ) |
Returns true if the specified texture descriptor describes a texture with MIP-mapping enabled.
| LLGL_EXPORT bool LLGL::IsMultiSampleTexture | ( | const TextureType | type | ) |
Returns true if the specified texture type is a multi-sample texture.
type is either TextureType::Texture2DMS, or TextureType::Texture2DMSArray. | LLGL_EXPORT bool LLGL::IsTextureSwizzleIdentity | ( | const TextureSwizzleRGBA & | swizzle | ) |
Returns true if the specified texture swizzling is equal to the identity mapping.
r equals TextureSwizzle::Redg equals TextureSwizzle::Greenb equals TextureSwizzle::Bluea equals TextureSwizzle::Alpha | LLGL_EXPORT std::uint32_t LLGL::NumMipDimensions | ( | const TextureType | type | ) |
Returns the number of MIP-map dimensions for the specified texture type. This is either 1, 2, 3, or 0 if the input is invalid.
| LLGL_EXPORT std::uint32_t LLGL::NumMipLevels | ( | const TextureDescriptor & | textureDesc | ) |
Returns the number of MIP-map levels for the specified texture descriptor.
| [in] | textureDesc | Specifies the descriptor whose parameters are used to determine the number of MIP-map levels. |
mipLevels is zero. Otherwise, the value of this member is returned. | LLGL_EXPORT std::uint32_t LLGL::NumMipLevels | ( | const TextureType | type, |
| const Extent3D & | extent ) |
Returns the number of MIP-map levels for the specified texture attributes.
| [in] | type | Specifies the texture type for which the MIP-map extent is to be determined. |
| [in] | extent | Specifies the extent of the first MIP-map level. |
| LLGL_EXPORT std::uint32_t LLGL::NumMipLevels | ( | std::uint32_t | width, |
| std::uint32_t | height = 1, | ||
| std::uint32_t | depth = 1 ) |
Returns the number of MIP-map levels for a texture with the specified size.
| [in] | width | Specifies the texture width. |
| [in] | height | Specifies the texture height or number of layers for 1D array textures. By default 1 (if 1D textures are used). |
| [in] | depth | Specifies the texture depth or number of layers for 2D array textures. By default 1 (if 1D or 2D textures are used). |
| LLGL_EXPORT std::uint32_t LLGL::NumMipTexels | ( | const TextureDescriptor & | textureDesc, |
| std::uint32_t | mipLevel = ~0u ) |
Returns the number of texture elements (texels) for the specified texture descriptor.
| [in] | textureDesc | Specifies the texture descriptor for which the number of MIP-map texels are determined. |
| [in] | mipLevel | Optional parameter to specify only a single MIP-map level. If this is 0xFFFFFFFF, the number of texels for the entire MIP-map chain is determined. By default 0xFFFFFFFF. The size of the MIP-map chain is determined by textureDesc.mipLevels. |
| LLGL_EXPORT std::uint32_t LLGL::NumMipTexels | ( | const TextureType | type, |
| const Extent3D & | extent, | ||
| const TextureSubresource & | subresource ) |
Returns the number of texture elements (texels) for the specified texture subresource range.
| [in] | type | Specifies the texture type for which the number of texels are to be determined. |
| [in] | extent | Specifies the extent of the first MIP-map level. |
| [in] | subresource | Specifies the subresource range. Which dimension in extent specifies the number of array layers depends on the texture type. |
| LLGL_EXPORT std::uint32_t LLGL::NumMipTexels | ( | const TextureType | type, |
| const Extent3D & | extent, | ||
| std::uint32_t | mipLevel ) |
Returns the number of texture elements (texels) for the specified texture attributes, or zero extent if mipLevel is out of bounds (see NumMipLevels).
| [in] | type | Specifies the texture type for which the number of texels are to be determined. |
| [in] | extent | Specifies the extent of the first MIP-map level. |
| [in] | mipLevel | Specifies the MIP-map level whose number of texels is to be determined. The first and largest MIP-map level has index zero. |
| LLGL_EXPORT std::uint32_t LLGL::NumTextureDimensions | ( | const TextureType | type | ) |
Returns the number of texture dimensions for the specified texture type. This is either 1, 2, 3, or 0 if the input is invalid.