ImageFormat RGBA16161616F

robot_2Generated
code_blocksInput

Description

The RGBA16161616F field is a member of the ImageFormat enumeration in the Sandbox namespace. This format represents a 64-bit floating-point RGBA image format, where each channel (Red, Green, Blue, and Alpha) is stored as a 16-bit floating-point value. This format is typically used for high dynamic range (HDR) images, allowing for a wide range of color values and greater precision than standard 8-bit formats.

Usage

Use the RGBA16161616F format when you need to store images with high precision and a wide range of color values, such as in HDR rendering or when performing complex image processing tasks that require floating-point precision.

Example

// Example of using RGBA16161616F in a texture creation
Texture texture = new Texture( width: 1024, height: 1024, format: ImageFormat.RGBA16161616F );

// Set the texture data with high precision color values
float[] pixelData = new float[1024 * 1024 * 4]; // RGBA for each pixel
// Fill pixelData with your image data
texture.SetData( pixelData );