Magnum/Vk/PixelFormat.h file new in Git master

Enum Magnum::Vk::PixelFormat, function Magnum::Vk::hasPixelFormat(), Magnum::Vk::pixelFormat()

Contents

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::Vk
Vulkan wrapping layer.

Enums

enum class PixelFormat: Int { R8Unorm = VK_FORMAT_R8_UNORM, RG8Unorm = VK_FORMAT_R8G8_UNORM, RGB8Unorm = VK_FORMAT_R8G8B8_UNORM, RGBA8Unorm = VK_FORMAT_R8G8B8A8_UNORM, R8Snorm = VK_FORMAT_R8_SNORM, RG8Snorm = VK_FORMAT_R8G8_SNORM, RGB8Snorm = VK_FORMAT_R8G8B8_SNORM, RGBA8Snorm = VK_FORMAT_R8G8B8A8_SNORM, R8Srgb = VK_FORMAT_R8_SRGB, RG8Srgb = VK_FORMAT_R8G8_SRGB, RGB8Srgb = VK_FORMAT_R8G8B8_SRGB, RGBA8Srgb = VK_FORMAT_R8G8B8A8_SRGB, R8UI = VK_FORMAT_R8_UINT, RG8UI = VK_FORMAT_R8G8_UINT, RGB8UI = VK_FORMAT_R8G8B8_UINT, RGBA8UI = VK_FORMAT_R8G8B8A8_UINT, R8I = VK_FORMAT_R8_SINT, RG8I = VK_FORMAT_R8G8_SINT, RGB8I = VK_FORMAT_R8G8B8_SINT, RGBA8I = VK_FORMAT_R8G8B8A8_SINT, R16Unorm = VK_FORMAT_R16_UNORM, RG16Unorm = VK_FORMAT_R16G16_UNORM, RGB16Unorm = VK_FORMAT_R16G16B16_UNORM, RGBA16Unorm = VK_FORMAT_R16G16B16A16_UNORM, R16Snorm = VK_FORMAT_R16_SNORM, RG16Snorm = VK_FORMAT_R16G16_SNORM, RGB16Snorm = VK_FORMAT_R16G16B16_SNORM, RGBA16Snorm = VK_FORMAT_R16G16B16A16_SNORM, R16UI = VK_FORMAT_R16_UINT, RG16UI = VK_FORMAT_R16G16_UINT, RGB16UI = VK_FORMAT_R16G16B16_UINT, RGBA16UI = VK_FORMAT_R16G16B16A16_UINT, R16I = VK_FORMAT_R16_SINT, RG16I = VK_FORMAT_R16G16_SINT, RGB16I = VK_FORMAT_R16G16B16_SINT, RGBA16I = VK_FORMAT_R16G16B16A16_SINT, R32UI = VK_FORMAT_R32_UINT, RG32UI = VK_FORMAT_R32G32_UINT, RGB32UI = VK_FORMAT_R32G32B32_UINT, RGBA32UI = VK_FORMAT_R32G32B32A32_UINT, R32I = VK_FORMAT_R32_SINT, RG32I = VK_FORMAT_R32G32_SINT, RGB32I = VK_FORMAT_R32G32B32_SINT, RGBA32I = VK_FORMAT_R32G32B32A32_SINT, R16F = VK_FORMAT_R16_SFLOAT, RG16F = VK_FORMAT_R16G16_SFLOAT, RGB16F = VK_FORMAT_R16G16B16_SFLOAT, RGBA16F = VK_FORMAT_R16G16B16A16_SFLOAT, R32F = VK_FORMAT_R32_SFLOAT, RG32F = VK_FORMAT_R32G32_SFLOAT, RGB32F = VK_FORMAT_R32G32B32_SFLOAT, RGBA32F = VK_FORMAT_R32G32B32A32_SFLOAT, Depth16Unorm = VK_FORMAT_D16_UNORM, Depth24Unorm = VK_FORMAT_X8_D24_UNORM_PACK32, Depth32F = VK_FORMAT_D32_SFLOAT, Stencil8UI = VK_FORMAT_S8_UINT, Depth16UnormStencil8UI = VK_FORMAT_D16_UNORM_S8_UINT, Depth24UnormStencil8UI = VK_FORMAT_D24_UNORM_S8_UINT, Depth32FStencil8UI = VK_FORMAT_D32_SFLOAT_S8_UINT, CompressedBc1RGBUnorm = VK_FORMAT_BC1_RGB_UNORM_BLOCK, CompressedBc1RGBSrgb = VK_FORMAT_BC1_RGB_SRGB_BLOCK, CompressedBc1RGBAUnorm = VK_FORMAT_BC1_RGBA_UNORM_BLOCK, CompressedBc1RGBASrgb = VK_FORMAT_BC1_RGBA_SRGB_BLOCK, CompressedBc2RGBAUnorm = VK_FORMAT_BC2_UNORM_BLOCK, CompressedBc2RGBASrgb = VK_FORMAT_BC2_SRGB_BLOCK, CompressedBc3RGBAUnorm = VK_FORMAT_BC3_UNORM_BLOCK, CompressedBc3RGBASrgb = VK_FORMAT_BC3_SRGB_BLOCK, CompressedBc4RUnorm = VK_FORMAT_BC4_UNORM_BLOCK, CompressedBc4RSnorm = VK_FORMAT_BC4_SNORM_BLOCK, CompressedBc5RGUnorm = VK_FORMAT_BC5_UNORM_BLOCK, CompressedBc5RGSnorm = VK_FORMAT_BC5_SNORM_BLOCK, CompressedBc6hRGBUfloat = VK_FORMAT_BC6H_UFLOAT_BLOCK, CompressedBc6hRGBSfloat = VK_FORMAT_BC6H_SFLOAT_BLOCK, CompressedBc7RGBAUnorm = VK_FORMAT_BC7_UNORM_BLOCK, CompressedBc7RGBASrgb = VK_FORMAT_BC7_SRGB_BLOCK, CompressedEacR11Unorm = VK_FORMAT_EAC_R11_UNORM_BLOCK, CompressedEacR11Snorm = VK_FORMAT_EAC_R11_SNORM_BLOCK, CompressedEacRG11Unorm = VK_FORMAT_EAC_R11G11_UNORM_BLOCK, CompressedEacRG11Snorm = VK_FORMAT_EAC_R11G11_SNORM_BLOCK, CompressedEtc2RGB8Unorm = VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK, CompressedEtc2RGB8Srgb = VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK, CompressedEtc2RGB8A1Unorm = VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK, CompressedEtc2RGB8A1Srgb = VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK, CompressedEtc2RGBA8Unorm = VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK, CompressedEtc2RGBA8Srgb = VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK, CompressedAstc4x4RGBAUnorm = VK_FORMAT_ASTC_4x4_UNORM_BLOCK, CompressedAstc4x4RGBASrgb = VK_FORMAT_ASTC_4x4_SRGB_BLOCK, CompressedAstc4x4RGBAF = VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT, CompressedAstc5x4RGBAUnorm = VK_FORMAT_ASTC_5x4_UNORM_BLOCK, CompressedAstc5x4RGBASrgb = VK_FORMAT_ASTC_5x4_SRGB_BLOCK, CompressedAstc5x4RGBAF = VK_FORMAT_ASTC_5x4_SFLOAT_BLOCK_EXT, CompressedAstc5x5RGBAUnorm = VK_FORMAT_ASTC_5x5_UNORM_BLOCK, CompressedAstc5x5RGBASrgb = VK_FORMAT_ASTC_5x5_SRGB_BLOCK, CompressedAstc5x5RGBAF = VK_FORMAT_ASTC_5x5_SFLOAT_BLOCK_EXT, CompressedAstc6x5RGBAUnorm = VK_FORMAT_ASTC_6x5_UNORM_BLOCK, CompressedAstc6x5RGBASrgb = VK_FORMAT_ASTC_6x5_SRGB_BLOCK, CompressedAstc6x5RGBAF = VK_FORMAT_ASTC_6x5_SFLOAT_BLOCK_EXT, CompressedAstc6x6RGBAUnorm = VK_FORMAT_ASTC_6x6_UNORM_BLOCK, CompressedAstc6x6RGBASrgb = VK_FORMAT_ASTC_6x6_SRGB_BLOCK, CompressedAstc6x6RGBAF = VK_FORMAT_ASTC_6x6_SFLOAT_BLOCK_EXT, CompressedAstc8x5RGBAUnorm = VK_FORMAT_ASTC_8x5_UNORM_BLOCK, CompressedAstc8x5RGBASrgb = VK_FORMAT_ASTC_8x5_SRGB_BLOCK, CompressedAstc8x5RGBAF = VK_FORMAT_ASTC_8x5_SFLOAT_BLOCK_EXT, CompressedAstc8x6RGBAUnorm = VK_FORMAT_ASTC_8x6_UNORM_BLOCK, CompressedAstc8x6RGBASrgb = VK_FORMAT_ASTC_8x6_SRGB_BLOCK, CompressedAstc8x6RGBAF = VK_FORMAT_ASTC_8x6_SFLOAT_BLOCK_EXT, CompressedAstc8x8RGBAUnorm = VK_FORMAT_ASTC_8x8_UNORM_BLOCK, CompressedAstc8x8RGBASrgb = VK_FORMAT_ASTC_8x8_SRGB_BLOCK, CompressedAstc8x8RGBAF = VK_FORMAT_ASTC_8x8_SFLOAT_BLOCK_EXT, CompressedAstc10x5RGBAUnorm = VK_FORMAT_ASTC_10x5_UNORM_BLOCK, CompressedAstc10x5RGBASrgb = VK_FORMAT_ASTC_10x5_SRGB_BLOCK, CompressedAstc10x5RGBAF = VK_FORMAT_ASTC_10x5_SFLOAT_BLOCK_EXT, CompressedAstc10x6RGBAUnorm = VK_FORMAT_ASTC_10x6_UNORM_BLOCK, CompressedAstc10x6RGBASrgb = VK_FORMAT_ASTC_10x6_SRGB_BLOCK, CompressedAstc10x6RGBAF = VK_FORMAT_ASTC_10x6_SFLOAT_BLOCK_EXT, CompressedAstc10x8RGBAUnorm = VK_FORMAT_ASTC_10x8_UNORM_BLOCK, CompressedAstc10x8RGBASrgb = VK_FORMAT_ASTC_10x8_SRGB_BLOCK, CompressedAstc10x8RGBAF = VK_FORMAT_ASTC_10x8_SFLOAT_BLOCK_EXT, CompressedAstc10x10RGBAUnorm = VK_FORMAT_ASTC_10x10_UNORM_BLOCK, CompressedAstc10x10RGBASrgb = VK_FORMAT_ASTC_10x10_SRGB_BLOCK, CompressedAstc10x10RGBAF = VK_FORMAT_ASTC_10x10_SFLOAT_BLOCK_EXT, CompressedAstc12x10RGBAUnorm = VK_FORMAT_ASTC_12x10_UNORM_BLOCK, CompressedAstc12x10RGBASrgb = VK_FORMAT_ASTC_12x10_SRGB_BLOCK, CompressedAstc12x10RGBAF = VK_FORMAT_ASTC_12x10_SFLOAT_BLOCK_EXT, CompressedAstc12x12RGBAUnorm = VK_FORMAT_ASTC_12x12_UNORM_BLOCK, CompressedAstc12x12RGBASrgb = VK_FORMAT_ASTC_12x12_SRGB_BLOCK, CompressedAstc12x12RGBAF = VK_FORMAT_ASTC_12x12_SFLOAT_BLOCK_EXT, CompressedPvrtcRGBA2bppUnorm = VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG, CompressedPvrtcRGBA2bppSrgb = VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG, CompressedPvrtcRGBA4bppUnorm = VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG, CompressedPvrtcRGBA4bppSrgb = VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG, CompressedPvrtc2RGBA2bppUnorm = VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG, CompressedPvrtc2RGBA2bppSrgb = VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG, CompressedPvrtc2RGBA4bppUnorm = VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG, CompressedPvrtc2RGBA4bppSrgb = VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG } new in Git master
Pixel format.

Functions

auto operator<<(Debug& debug, PixelFormat value) -> Debug& new in Git master
Debug output operator.
auto hasPixelFormat(Magnum::PixelFormat format) -> bool new in Git master
Check availability of a generic pixel format.
auto hasPixelFormat(Magnum::CompressedPixelFormat format) -> bool new in Git master
Check availability of a generic compressed pixel format.
auto pixelFormat(Magnum::PixelFormat format) -> PixelFormat new in Git master
Convert a generic pixel format to Vulkan pixel format.
auto pixelFormat(Magnum::CompressedPixelFormat format) -> PixelFormat new in Git master
Convert a generic compressed pixel format to Vulkan pixel format.