ImageFormat ATI_DST16

book_4_sparkGenerated
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 storing depth information in a 16-bit format, optimized for ATI graphics hardware. This format is typically used in rendering pipelines where depth precision is crucial, such as in shadow mapping or depth buffering.

Usage

Use ImageFormat.ATI_DST16 when you need to specify a 16-bit depth format for textures or render targets that are compatible with ATI hardware. This format is particularly useful in scenarios where memory efficiency is important, and the precision of 16 bits is sufficient for the depth calculations.

Example

// Example of using ATI_DST16 in a texture creation
Texture depthTexture = new Texture();
depthTexture.Format = ImageFormat.ATI_DST16;
depthTexture.Create(1024, 1024);