![]() |
wisdom
|
C version:
C++ version:
Data format for data. Used as a template for data in several cases. Can be used to describe:
DXGI_FORMAT for DirectX 12 implementation, and VkFormat for Vulkan implementation.Values:
WisDataFormatUnknown = 0: Unknown format.WisDataFormatRGBA32Float = 2: 32 bit per channel RGBA format. A four-component, 128-bit signed floating-point format that has a 32-bit R component in bytes 0..3, a 32-bit G component in bytes 4..7, a 32-bit B component in bytes 8..11, a 32-bit A component in bytes 12..15.WisDataFormatRGBA32Uint = 3: 32 bit per channel RGBA format. A four-component, 128-bit unsigned integer format that has a 32-bit R component in bytes 0..3, a 32-bit G component in bytes 4..7, a 32-bit B component in bytes 8..11, a 32-bit A component in bytes 12..15.WisDataFormatRGBA32Sint = 4: 32 bit per channel RGBA format. A four-component, 128-bit signed integer format that has a 32-bit R component in bytes 0..3, a 32-bit G component in bytes 4..7, a 32-bit B component in bytes 8..11, a 32-bit A component in bytes 12..15.WisDataFormatRGB32Float = 6: 32 bit per channel RGB format. A three-component, 96-bit signed floating-point format that has a 32-bit R component in bytes 0..3, a 32-bit G component in bytes 4..7, a 32-bit B component in bytes 8..11.WisDataFormatRGB32Uint = 7: 32 bit per channel RGB format. A three-component, 96-bit unsigned integer format that has a 32-bit R component in bytes 0..3, a 32-bit G component in bytes 4..7, a 32-bit B component in bytes 8..11.WisDataFormatRGB32Sint = 8: 32 bit per channel RGB format. A three-component, 96-bit signed integer format that has a 32-bit R component in bytes 0..3, a 32-bit G component in bytes 4..7, a 32-bit B component in bytes 8..11.WisDataFormatRGBA16Float = 10: 16 bit per channel RGBA format. A four-component, 64-bit signed floating-point format that has a 16-bit R component in bytes 0..1, a 16-bit G component in bytes 2..3, a 16-bit B component in bytes 4..5, a 16-bit A component in bytes 6..7.WisDataFormatRGBA16Unorm = 11: 16 bit per channel RGBA format. A four-component, 64-bit unsigned normalized format that has a 16-bit R component in bytes 0..1, a 16-bit G component in bytes 2..3, a 16-bit B component in bytes 4..5, a 16-bit A component in bytes 6..7.WisDataFormatRGBA16Uint = 12: 16 bit per channel RGBA format. A four-component, 64-bit unsigned integer format that has a 16-bit R component in bytes 0..1, a 16-bit G component in bytes 2..3, a 16-bit B component in bytes 4..5, a 16-bit A component in bytes 6..7.WisDataFormatRGBA16Snorm = 13: 16 bit per channel RGBA format. A four-component, 64-bit signed normalized format that has a 16-bit R component in bytes 0..1, a 16-bit G component in bytes 2..3, a 16-bit B component in bytes 4..5, a 16-bit A component in bytes 6..7.WisDataFormatRGBA16Sint = 14: 16 bit per channel RGBA format. A four-component, 64-bit signed integer format that has a 16-bit R component in bytes 0..1, a 16-bit G component in bytes 2..3, a 16-bit B component in bytes 4..5, a 16-bit A component in bytes 6..7.WisDataFormatRG32Float = 16: 32 bit per channel RG format. A two-component, 64-bit signed floating-point format that has a 32-bit R component in bytes 0..3, a 32-bit G component in bytes 4..7.WisDataFormatRG32Uint = 17: 32 bit per channel RG format. A two-component, 64-bit unsigned integer format that has a 32-bit R component in bytes 0..3, a 32-bit G component in bytes 4..7.WisDataFormatRG32Sint = 18: 32 bit per channel RG format. A two-component, 64-bit signed integer format that has a 32-bit R component in bytes 0..3, a 32-bit G component in bytes 4..7.WisDataFormatD32FloatS8Uint = 20: 32 bit depth, 8 bit stencil format. A combined depth/stencil format with a 32-bit depth component in bytes 0..3 and an 8-bit stencil component in bytes 4..4.WisDataFormatRGB10A2Unorm = 24: 10 bit per channel RGB format with 2 bit alpha. A four-component, 32-bit unsigned normalized format that has a 10-bit R component in bits 0..9, a 10-bit G component in bits 10..19, a 10-bit B component in bits 20..29, a 2-bit A component in bits 30..31.WisDataFormatRGB10A2Uint = 25: 10 bit per channel RGB format with 2 bit alpha. A four-component, 32-bit unsigned integer format that has a 10-bit R component in bits 0..9, a 10-bit G component in bits 10..19, a 10-bit B component in bits 20..29, a 2-bit A component in bits 30..31.WisDataFormatRG11B10Float = 26: 11 bit per channel RG format with 10 bit blue. A three-component, 32-bit signed floating-point format that has a 11-bit R component in bits 0..10, a 11-bit G component in bits 11..21, a 10-bit B component in bits 22..31.WisDataFormatRGBA8Unorm = 28: 8 bit per channel RGBA format. A four-component, 32-bit unsigned normalized format that has an 8-bit R component in bytes 0..0, an 8-bit G component in bytes 1..1, an 8-bit B component in bytes 2..2, an 8-bit A component in bytes 3..3.WisDataFormatRGBA8UnormSrgb = 29: 8 bit per channel RGBA format. SRGB non-linear color space. A four-component, 32-bit unsigned normalized non-linear SRGB format that has an 8-bit R component in bytes 0..0, an 8-bit G component in bytes 1..1, an 8-bit B component in bytes 2..2, an 8-bit A component in bytes 3..3.WisDataFormatRGBA8Uint = 30: 8 bit per channel RGBA format. A four-component, 32-bit unsigned integer format that has an 8-bit R component in bytes 0..0, an 8-bit G component in bytes 1..1, an 8-bit B component in bytes 2..2, an 8-bit A component in bytes 3..3.WisDataFormatRGBA8Snorm = 31: 8 bit per channel RGBA format. A four-component, 32-bit signed normalized format that has an 8-bit R component in bytes 0..0, an 8-bit G component in bytes 1..1, an 8-bit B component in bytes 2..2, an 8-bit A component in bytes 3..3.WisDataFormatRGBA8Sint = 32: 8 bit per channel RGBA format. A four-component, 32-bit signed integer format that has an 8-bit R component in bytes 0..0, an 8-bit G component in bytes 1..1, an 8-bit B component in bytes 2..2, an 8-bit A component in bytes 3..3.WisDataFormatRG16Float = 34: 16 bit per channel RG format. A two-component, 32-bit signed floating-point format that has a 16-bit R component in bytes 0..1, a 16-bit G component in bytes 2..3.WisDataFormatRG16Unorm = 35: 16 bit per channel RG format. A two-component, 32-bit unsigned normalized format that has a 16-bit R component in bytes 0..1, a 16-bit G component in bytes 2..3.WisDataFormatRG16Uint = 36: 16 bit per channel RG format. A two-component, 32-bit unsigned integer format that has a 16-bit R component in bytes 0..1, a 16-bit G component in bytes 2..3.WisDataFormatRG16Snorm = 37: 16 bit per channel RG format. A two-component, 32-bit signed normalized format that has a 16-bit R component in bytes 0..1, a 16-bit G component in bytes 2..3.WisDataFormatRG16Sint = 38: 16 bit per channel RG format. A two-component, 32-bit signed integer format that has a 16-bit R component in bytes 0..1, a 16-bit G component in bytes 2..3.WisDataFormatD32Float = 40: 32 bit depth format. A 32-bit depth format supporting 32-bit floating-point depth values.WisDataFormatR32Float = 41: 32 bit per channel R format. A one-component, 32-bit signed floating-point format that has a 32-bit R component in bytes 0..3.WisDataFormatR32Uint = 42: 32 bit per channel R format. A one-component, 32-bit unsigned integer format that has a 32-bit R component in bytes 0..3.WisDataFormatR32Sint = 43: 32 bit per channel R format. A one-component, 32-bit signed integer format that has a 32-bit R component in bytes 0..3.WisDataFormatD24UnormS8Uint = 45: 24 bit depth, 8 bit stencil format. A combined depth/stencil format with a 24-bit depth component in bytes 0..2 and an 8-bit stencil component in bytes 3..3.WisDataFormatRG8Unorm = 49: 8 bit per channel RG format. A two-component, 16-bit unsigned normalized format that has an 8-bit R component in bytes 0..0, an 8-bit G component in bytes 1..1.WisDataFormatRG8Uint = 50: 8 bit per channel RG format. A two-component, 16-bit unsigned integer format that has an 8-bit R component in bytes 0..0, an 8-bit G component in bytes 1..1.WisDataFormatRG8Snorm = 51: 8 bit per channel RG format. A two-component, 16-bit signed normalized format that has an 8-bit R component in bytes 0..0, an 8-bit G component in bytes 1..1.WisDataFormatRG8Sint = 52: 8 bit per channel RG format. A two-component, 16-bit signed integer format that has an 8-bit R component in bytes 0..0, an 8-bit G component in bytes 1..1.WisDataFormatR16Float = 54: 16 bit per channel R format. A one-component, 16-bit signed floating-point format that has a 16-bit R component in bytes 0..1.WisDataFormatD16Unorm = 55: 16 bit depth format. A 16-bit depth format supporting 16-bit unsigned normalized depth values.WisDataFormatR16Unorm = 56: 16 bit per channel R format. A one-component, 16-bit unsigned normalized format that has a 16-bit R component in bytes 0..1.WisDataFormatR16Uint = 57: 16 bit per channel R format. A one-component, 16-bit unsigned integer format that has a 16-bit R component in bytes 0..1.WisDataFormatR16Snorm = 58: 16 bit per channel R format. A one-component, 16-bit signed normalized format that has a 16-bit R component in bytes 0..1.WisDataFormatR16Sint = 59: 16 bit per channel R format. A one-component, 16-bit signed integer format that has a 16-bit R component in bytes 0..1.WisDataFormatR8Unorm = 61: 8 bit per channel R format. A one-component, 8-bit unsigned normalized format that has an 8-bit R component in bytes 0..0.WisDataFormatR8Uint = 62: 8 bit per channel R format. A one-component, 8-bit unsigned integer format that has an 8-bit R component in bytes 0..0.WisDataFormatR8Snorm = 63: 8 bit per channel R format. A one-component, 8-bit signed normalized format that has an 8-bit R component in bytes 0..0.WisDataFormatR8Sint = 64: 8 bit per channel R format. A one-component, 8-bit signed integer format that has an 8-bit R component in bytes 0..0.WisDataFormatRGB9E5UFloat = 67: 9 bit per channel RGB format with shared exponent. A three-component, 32-bit unsigned floating-point format that has a 9-bit R component in bits 0..8, a 9-bit G component in bits 9..17, a 9-bit B component in bits 18..26, a shared 5-bit exponent in bits 27..31.WisDataFormatBC1RGBAUnorm = 71: BC1/DXT1 compressed format. A four-component, block-compressed format where each 64-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized RGB texel data, and provides 1 bit of alpha.WisDataFormatBC1RGBAUnormSrgb = 72: BC1/DXT1 compressed format. A four-component, block-compressed format where each 64-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized RGB texel data with sRGB nonlinear encoding, and provides 1 bit of alpha.WisDataFormatBC2RGBAUnorm = 74: BC2/DXT3 compressed format. A four-component, block-compressed format where each 128-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized RGBA texel data with the first 64 bits encoding alpha values followed by 64 bits encoding RGB valuesWisDataFormatBC2RGBAUnormSrgb = 75: BC2/DXT3 compressed format. A four-component, block-compressed format where each 128-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized RGBA texel data with sRGB nonlinear encoding with the first 64 bits encoding alpha values followed by 64 bits encoding RGB valuesWisDataFormatBC3RGBAUnorm = 77: BC3/DXT5 compressed format. A four-component, block-compressed format where each 128-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized RGBA texel data with the first 64 bits encoding alpha values followed by 64 bits encoding RGB valuesWisDataFormatBC3RGBAUnormSrgb = 78: BC3/DXT5 compressed format. A four-component, block-compressed format where each 128-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized RGBA texel data with sRGB nonlinear encoding with the first 64 bits encoding alpha values followed by 64 bits encoding RGB valuesWisDataFormatBC4RUnorm = 80: BC4 compressed format. A single-component, block-compressed format where each 64-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized red texel dataWisDataFormatBC4RSnorm = 81: BC4 compressed format. A single-component, block-compressed format where each 64-bit compressed texel block encodes a 4×4 rectangle of signed normalized red texel dataWisDataFormatBC5RGUnorm = 83: BC5 compressed format. A two-component, block-compressed format where each 128-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized red and green texel dataWisDataFormatBC5RGSnorm = 84: BC5 compressed format. A two-component, block-compressed format where each 128-bit compressed texel block encodes a 4×4 rectangle of signed normalized red and green texel dataWisDataFormatB5G6R5Unorm = 85: 16 bit per channel RGB format. A three-component, 16-bit unsigned normalized format that has a 5-bit B component in bits 0..4, a 6-bit G component in bits 5..10, a 5-bit R component in bits 11..15.WisDataFormatB5G5R5A1Unorm = 86: 16 bit per channel RGBA format. A four-component, 16-bit unsigned normalized format that has a 5-bit B component in bits 0..4, a 5-bit G component in bits 5..9, a 5-bit R component in bits 10..14, a 1-bit A component in bits 15..15.WisDataFormatBGRA8Unorm = 87: 8 bit per channel RGBA format. A four-component, 32-bit unsigned normalized format that has an 8-bit B component in bytes 0..0, an 8-bit G component in bytes 1..1, an 8-bit R component in bytes 2..2, an 8-bit A component in bytes 3..3.WisDataFormatBGRA8UnormSrgb = 91: 8 bit per channel RGBA format. SRGB non-linear color space. A four-component, 32-bit unsigned normalized non-linear SRGB format that has an 8-bit B component in bytes 0..0, an 8-bit G component in bytes 1..1, an 8-bit R component in bytes 2..2, an 8-bit A component in bytes 3..3.WisDataFormatBC6HUfloat16 = 95: BC6H compressed format. A three-component, block-compressed format where each 128-bit compressed texel block encodes a 4×4 rectangle of unsigned floating-point RGB texel dataWisDataFormatBC6HSfloat16 = 96: BC6H compressed format. A three-component, block-compressed format where each 128-bit compressed texel block encodes a 4×4 rectangle of signed floating-point RGB texel dataWisDataFormatBC7RGBAUnorm = 98: BC7 compressed format. A four-component, block-compressed format where each 128-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized RGBA texel dataWisDataFormatBC7RGBAUnormSrgb = 99: BC7 compressed format. A four-component, block-compressed format where each 128-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized RGBA texel data with sRGB nonlinear encodingWisDataFormatBGRA4Unorm = 115: 4 bit per channel RGB format. A four-component, 16-bit unsigned normalized format that has a 4-bit B component in bits 0..3, a 4-bit G component in bits 4..7, a 4-bit R component in bits 8..11, a 4-bit A component in bits 12..15.