Description
The NV_INTZ
field is a member of the ImageFormat
enumeration in the Sandbox namespace. This field represents a specific image format used for rendering or processing images within the s&box game engine. The NV_INTZ
format is typically used for depth textures, providing a way to store depth information in a texture format that is compatible with NVIDIA hardware.
Usage
Use the NV_INTZ
format when you need to work with depth textures in a way that is optimized for NVIDIA graphics cards. This format is particularly useful in scenarios where depth information needs to be stored and accessed efficiently, such as in shadow mapping or other depth-based rendering techniques.
Example
// Example of using NV_INTZ in a texture setup
Texture depthTexture = new Texture();
depthTexture.Format = ImageFormat.NV_INTZ;
// Use the texture in a rendering pipeline
RenderTarget renderTarget = new RenderTarget();
renderTarget.AttachDepthTexture(depthTexture);