Edit

Share via


MTLPixelFormat Enum

Definition

The format used by pixels, including color, depth, compression technigue, and data type for components.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
public enum MTLPixelFormat
type MTLPixelFormat = 
Inheritance
MTLPixelFormat
Attributes

Fields

Name Value Description
Invalid 0

Indicates an invalid pixel format.

A8Unorm 1

Indicates the unsigned, normalized integer format.

R8Unorm 10

Indicates a single 8-bit normalized integer format.

R8Unorm_sRGB 11

Indicates a single 8-bit unnormalized signed integer format with sRGB-Linear conversion.

R8Snorm 12

Indicates a single 8-bit normalized integer format.

R8Uint 13

Indicates a single 8-bit unsigned integer format.

R8Sint 14

Indicates a single 8-bit signed integer format.

R16Unorm 20

Indicates a single 16-bit normalized integer format.

R16Snorm 22

Indicates a single 16-bit normalized integer format.

R16Uint 23

Indicates a single 16-bit unsigned integer format.

R16Sint 24

Indicates a single 16-bit signed integer format.

R16Float 25

Indicates a single 16-bit floating point format.

RG8Unorm 30

Indicates a 2-channel unnormalized signed integer format with 8 bits per channel.

RG8Unorm_sRGB 31

Indicates a 2-channel unnormalized signed integer format with 8 bits per channel and sRGB-Linear conversion.

RG8Snorm 32

Indicates a 2-channel normalized signed integer format with 8 bits per channel.

RG8Uint 33

Indicates a 2-channel unsigned integer format with 8 bits per channel.

RG8Sint 34

Indicates a 2-channel signed integer format with 8 bits per channel.

B5G6R5Unorm 40

Indicates a 5-bit B, 6-bit G, and 5-bit R unsigned, normalized integer format.

A1BGR5Unorm 41

Indicates the unsigned, normalized integer format.

ABGR4Unorm 42

Indicates the unsigned, normalized integer format.

BGR5A1Unorm 43

Indicates a 5-bit B, 6-bit G, 5-bit R, and 1-bit Alpha unnormalized signed integer format.

R32Uint 53

Indicates a single 32-bit unsigned integer format.

R32Sint 54

Indicates a single 32-bit signed integer format.

R32Float 55

Indicates a single 32-bit floating point format.

RG16Unorm 60

Indicates a 2-channel unnormalized signed integer format with 16 bits per channel.

RG16Snorm 62

Indicates a 2-channel normalized integer format with 16 bits per channel.

RG16Uint 63

Indicates a 2-channel unsigned integer format with 16 bits per channel.

RG16Sint 64

Indicates a 2-channel signed integer format with 16 bits per channel.

RG16Float 65

Indicates a 2-channel floating point format with 16 bits per channel.

RGBA8Unorm 70

Indicates a format with 4 8-bit normalized unsigned integer channels.

RGBA8Unorm_sRGB 71

Indicates a format with 4 8-bit normalized unsigned integer channels, with sRGB-Linear conversion.

RGBA8Snorm 72

Indicates a format with 4 8-bit normalized signed integer channels.

RGBA8Uint 73

Indicates a format with 4 8-bit unsigned integer channels.

RGBA8Sint 74

Indicates a format with 4 8-bit signed integer channels.

BGRA8Unorm 80

Indicates an 8-bit BGRA unnormalized signed integer format.

BGRA8Unorm_sRGB 81

Indicates an 8-bit BGRA unnormalized signed integer format with sRGB-Linear conversion

RGB10A2Unorm 90

Indicates a format with 10-bit normalized unsigned integer RGB values plus 2 alpha bits.

RGB10A2Uint 91

Indicates a format with 10-bit unsigned integer RGB values plus 2 alpha bits.

RG11B10Float 92

Indicates an 11-bit RG plus 10-bit B value floating-point format.

RGB9E5Float 93

Indicates a format with 9 bits per RGB channel plus a 5-bit shared exponent.

BGR10A2Unorm 94

Indicates a 10-bit B, 10-bit G, 10-bit R, and 2-bit Alpha normalized unsigned integer format.

RG32Uint 103

Indicates a 2-channel unsigned integer format with 32 bits per channel.

RG32Sint 104

Indicates a 2-channel signed integer format with 32 bits per channel.

RG32Float 105

Indicates a 2-channel floating point format with 32 bits per channel.

RGBA16Unorm 110

Indicates a format with 4 16-bit normalized unsigned integer channels.

RGBA16Snorm 112

Indicates a format with 4 16-bit normalized signed integer channels.

RGBA16Uint 113

Indicates a format with 4 16-bit unsigned integer channels.

RGBA16Sint 114

Indicates a format with 4 16-bit signed integer channels.

RGBA16Float 115

Indicates a format with 4 16-bit floating point channels.

RGBA32Uint 123

Indicates a format with 4 32-bit unsigned integer channels.

RGBA32Sint 124

Indicates a format with 4 32-bit signed integer channels.

RGBA32Float 125

Indicates a format with 4 32-bit floating point channels.

BC1RGBA 130
BC1_RGBA_sRGB 131
BC2RGBA 132
BC2_RGBA_sRGB 133
BC3RGBA 134
BC3_RGBA_sRGB 135
BC4_RUnorm 140
BC4_RSnorm 141
BC5_RGUnorm 142
BC5_RGSnorm 143
BC6H_RGBFloat 150
BC6H_RGBUFloat 151
BC7_RGBAUnorm 152
BC7_RGBAUnorm_sRGB 153
PVRTC_RGB_2BPP 160

Indicatea a 2bpp PVRTC RGB format.

PVRTC_RGB_2BPP_sRGB 161

Indicatea a 2bpp PVRTC RGB format with sRGB-Linear conversion.

PVRTC_RGB_4BPP 162

Indicatea a 4bpp PVRTC RGB format.

PVRTC_RGB_4BPP_sRGB 163

Indicatea a 4bpp PVRTC RGB format with sRGB-Linear conversion.

PVRTC_RGBA_2BPP 164

Indicatea a 2bpp PVRTC RGBA format.

PVRTC_RGBA_2BPP_sRGB 165

Indicatea a 2bpp PVRTC RGBA format with sRGB-Linear conversion.

PVRTC_RGBA_4BPP 166

Indicatea a 4bpp PVRTC RGBA format.

PVRTC_RGBA_4BPP_sRGB 167

Indicatea a 4bpp PVRTC RGBA format with sRGB-Linear conversion.

EAC_R11Unorm 170

Indicates a single-channel EAC, unnormalized signed integer format.

EAC_R11Snorm 172

Indicates a single-channel EAC, normalized signed integer format.

EAC_RG11Unorm 174

Indicates a two-channel EAC, unnormalized signed integer format.

EAC_RG11Snorm 176

Indicates a two-channel EAC, normalized signed integer format.

EAC_RGBA8 178

Indicates an 8-bit RGB EAC format.

EAC_RGBA8_sRGB 179

Indicates an 8-bit RGBa EAC format with sRGB-Linear conversion.

ETC2_RGB8 180

Indicates an ETC2 format.

ETC2_RGB8_sRGB 181

Indicates an ETC2 format with sRGB-Linear conversion.

ETC2_RGB8A1 182

Indicates an ETC2 format with 8-bit RGB channels and a single-bit Alpha channel.

ETC2_RGB8A1_sRGB 183

Indicates an ETC2 format with 8-bit RGB channels and a single-bit Alpha channel, with sRGB-Linear conversion.

ASTC_4x4_sRGB 186

Indicates the 4x4 ASTC format, with sRGB-Linear conversion.

ASTC_5x4_sRGB 187

Indicates the 5x4 ASTC format, with sRGB-Linear conversion.

ASTC_5x5_sRGB 188

Indicates the 5x5 ASTC format, with sRGB-Linear conversion.

ASTC_6x5_sRGB 189

Indicates the 6x5 ASTC format, with sRGB-Linear conversion.

ASTC_6x6_sRGB 190

Indicates the 6x6 ASTC format, with sRGB-Linear conversion.

ASTC_8x5_sRGB 192

Indicates the 8x5 ASTC format, with sRGB-Linear conversion.

ASTC_8x6_sRGB 193

Indicates the 8x6 ASTC format, with sRGB-Linear conversion.

ASTC_8x8_sRGB 194

Indicates the 8x8 ASTC format, with sRGB-Linear conversion.

ASTC_10x5_sRGB 195

Indicates the 10x5 ASTC format, with sRGB-Linear conversion.

ASTC_10x6_sRGB 196

Indicates the 10x6 ASTC format, with sRGB-Linear conversion.

ASTC_10x8_sRGB 197

Indicates the 10x8 ASTC format, with sRGB-Linear conversion.

ASTC_10x10_sRGB 198

Indicates the 10x10 ASTC format, with sRGB-Linear conversion.

ASTC_12x10_sRGB 199

Indicates the 12x10 ASTC format, with sRGB-Linear conversion.

ASTC_12x12_sRGB 200

Indicates the 12x12 ASTC format, with sRGB-Linear conversion.

ASTC_4x4_LDR 204

Indicates the 4x4 ASTC, low dynamic range format.

ASTC_5x4_LDR 205

Indicates the 5x4 ASTC, low dynamic range format.

ASTC_5x5_LDR 206

Indicates the 5x5 ASTC, low dynamic range format.

ASTC_6x5_LDR 207

Indicates the 6x5 ASTC, low dynamic range format.

ASTC_6x6_LDR 208

Indicates the 6x6 ASTC, low dynamic range format.

ASTC_8x5_LDR 210

Indicates the 8x5 ASTC, low dynamic range format.

ASTC_8x6_LDR 211

Indicates the 8x6 ASTC, low dynamic range format.

ASTC_8x8_LDR 212

Indicates the 8x8 ASTC, low dynamic range format.

ASTC_10x5_LDR 213

Indicates the 10x5 ASTC, low dynamic range format.

ASTC_10x6_LDR 214

Indicates the 10x6 ASTC, low dynamic range format.

ASTC_10x8_LDR 215

Indicates the 10x8 ASTC, low dynamic range format.

ASTC_10x10_LDR 216

Indicates the 10x10 ASTC, low dynamic range format.

ASTC_12x10_LDR 217

Indicates the 12x10 ASTC, low dynamic range format.

ASTC_12x12_LDR 218

Indicates the 12x12 ASTC, low dynamic range format.

GBGR422 240

Indicates a red-green horizontally subsampled format.

BGRG422 241

Indicates a red-green horizontally subsampled format.

Depth32Float 252

Indicates a 32-bit format that is suitable for depth stencils.

Stencil8 253

Indicates a single-channel 8-bit stencil format.

Depth24Unorm_Stencil8 255
Depth32Float_Stencil8 260

Indicates a 24-bit depth and 8-bit stencil floating-point format.

X32_Stencil8 261

Indicates an 8-bit stencil format.

X24_Stencil8 262

Applies to