ImageFormat NV_RAWZ

book_4_sparkGenerated
code_blocksInput

Description

The NV_RAWZ field is a member of the ImageFormat enumeration in the Sandbox namespace. This field represents a specific image format used for handling raw depth data, typically in graphics programming and rendering pipelines. The NV_RAWZ format is often associated with NVIDIA hardware and is used for depth buffer formats that store raw depth values.

Usage

Use the NV_RAWZ field when you need to specify an image format that handles raw depth data, particularly when working with NVIDIA graphics hardware. This format is useful in scenarios where precise depth information is required, such as in shadow mapping or depth-based effects.

Example

// Example of using NV_RAWZ in a graphics context
ImageFormat format = ImageFormat.NV_RAWZ;

// Use the format in a texture creation or rendering setup
Texture depthTexture = new Texture(width, height, format);

// Configure the texture for depth rendering
Renderer.SetDepthTexture(depthTexture);