ImageFormat ATI_DST24

book_4_sparkGenerated
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 3D graphics applications.

Usage

Use ImageFormat.ATI_DST24 when you need to specify a depth-stencil format that is compatible with ATI hardware. This format is particularly useful in scenarios where depth precision is important, such as shadow mapping or depth testing in 3D scenes.

Example

// Example of using ATI_DST24 in a rendering setup
var texture = new Texture2D(1024, 1024, ImageFormat.ATI_DST24);

// Use the texture in a rendering pipeline
var material = new Material();
material.SetTexture("_DepthTex", texture);

// Render scene with depth texture
Scene.Render(material);