ImageFormat ATI_DST16

robot_2Generated
code_blocksInput

Description

The ATI_DST16 field is a member of the ImageFormat enumeration in the Sandbox namespace. It represents a specific image format used for depth-stencil textures, particularly optimized for ATI graphics hardware. This format uses 16 bits per pixel to store depth information, which can be beneficial for rendering performance and memory usage in certain graphics applications.

Usage

Use the ATI_DST16 format when you need to work with depth textures on ATI hardware, and when a 16-bit depth buffer is sufficient for your application's needs. This format is typically used in scenarios where depth precision is important, but the additional precision of a 24-bit or 32-bit depth buffer is not necessary.

Example

// Example of using ATI_DST16 in a texture creation
Texture depthTexture = new Texture();
depthTexture.Format = ImageFormat.ATI_DST16;
depthTexture.Create( width: 1024, height: 1024, usage: TextureUsage.DepthStencil );