Home -> ITextureBuffer -> SampleCount
Description
The SampleCount enumeration selects the number of samples stored for each pixel in a multisampled two dimensional texture. It is used by SetSampleCount when creating textures for multisample anti-aliasing (MSAA) framebuffer attachments, and by IsSampleCountSupported when querying whether a specific texture format supports a requested sample count.
Important
Sample count support depends on the renderer, device, texture format, and attachment usage. A sample count listed in this enumeration is an API value, not a guarantee that every device and format combination can allocate it.
Members
| Name | Description | |
|---|---|---|
| SampleCount1 |
Allocates one sample per pixel. This is a normal single-sample texture, not an MSAA texture.
|
|
| SampleCount2 |
Allocates two samples per pixel.
|
|
| SampleCount4 |
Allocates four samples per pixel.
|
|
| SampleCount8 |
Allocates eight samples per pixel.
|
|
| SampleCount16 |
Allocates sixteen samples per pixel.
|
|
| SampleCount32 |
Allocates thirty-two samples per pixel.
|