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.

ImportantImportant

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
Public Enum SampleCount1
Allocates one sample per pixel. This is a normal single-sample texture, not an MSAA texture.
Public Enum SampleCount2
Allocates two samples per pixel.
Public Enum SampleCount4
Allocates four samples per pixel.
Public Enum SampleCount8
Allocates eight samples per pixel.
Public Enum SampleCount16
Allocates sixteen samples per pixel.
Public Enum SampleCount32
Allocates thirty-two samples per pixel.

See also