ImageFormat ATI_DST24

robot_2Generated
code_blocksInput

Description

The ATI_DST24 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 is typically used in rendering pipelines where depth information is crucial, such as in shadow mapping or depth testing.

Usage

Use the ATI_DST24 format when you need to work with depth-stencil textures on ATI hardware. This format is particularly useful in scenarios where depth precision is important, and it is supported by ATI graphics cards.

To use this format, you can specify it when creating or configuring textures in your rendering pipeline. Ensure that your hardware supports this format to avoid compatibility issues.

Example

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

// Use the texture in a rendering pass
RenderPass pass = new RenderPass();
pass.SetDepthTexture(depthTexture);
pass.Execute();