Description
The R32_UINT
field is a member of the ImageFormat
enumeration in the Sandbox namespace. This field represents an image format where each pixel is stored as a 32-bit unsigned integer. This format is typically used for storing single-channel data where the channel is represented as a 32-bit unsigned integer value.
Usage
Use the R32_UINT
format when you need to store or process images with a single channel of 32-bit unsigned integer data. This format is suitable for applications that require high precision for a single channel, such as depth maps or certain types of scientific data.
Example
// Example of using R32_UINT in a texture creation
Texture texture = new Texture( width: 256, height: 256, format: ImageFormat.R32_UINT );
// Set pixel data for the texture
uint[] pixelData = new uint[256 * 256];
// Fill pixelData with appropriate values
texture.SetData(pixelData);