Description
The ATI_DST16
field is a member of the ImageFormat
enumeration in the Sandbox namespace. This field represents a specific image format used for depth textures, particularly optimized for ATI graphics hardware. The format is a 16-bit depth buffer format, which is commonly used in rendering pipelines to store depth information for 3D graphics.
Usage
Use ImageFormat.ATI_DST16
when you need to specify a 16-bit depth buffer format for rendering operations that are optimized for ATI hardware. This format is particularly useful in scenarios where depth precision is important, but the memory footprint needs to be minimized compared to 24-bit or 32-bit depth formats.
Example
// Example of using ATI_DST16 in a rendering setup
var texture = new Texture();
texture.Format = ImageFormat.ATI_DST16;
// Use the texture in a rendering pipeline
var renderTarget = new RenderTarget();
renderTarget.AttachDepthTexture(texture);
// Ensure the rendering pipeline is configured to use the ATI_DST16 format
renderTarget.Configure();