ImageFormat NV_DST16

robot_2Generated
code_blocksInput

Description

The NV_DST16 field is a member of the ImageFormat enumeration in the Sandbox namespace. It represents a specific image format used for rendering or processing images within the s&box game engine. This format is typically used for depth textures, providing a 16-bit depth buffer format.

Usage

Use ImageFormat.NV_DST16 when you need to specify a 16-bit depth buffer format for rendering operations. This is particularly useful in scenarios where depth precision is important, such as in 3D rendering pipelines.

Example

// Example of using NV_DST16 in a rendering context
var texture = new Texture2D( width: 1024, height: 1024, format: ImageFormat.NV_DST16 );

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