Description
The RGBA16161616_EDRAM_RGBA16161616
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 format is characterized by its high color depth, utilizing 16 bits per channel for red, green, blue, and alpha, providing a total of 64 bits per pixel. This format is particularly useful for applications requiring high dynamic range (HDR) imaging or precise color representation.
Usage
Use the RGBA16161616_EDRAM_RGBA16161616
format when you need to work with images that require high precision in color representation. This format is suitable for scenarios where color accuracy and depth are critical, such as in HDR rendering or when performing complex image processing tasks.
To use this format, you can specify it when creating or manipulating textures or images within the s&box engine. Ensure that your rendering pipeline and hardware support this high bit-depth format to avoid compatibility issues.
Example
// Example of using RGBA16161616_EDRAM_RGBA16161616 in a texture creation
Texture texture = new Texture();
texture.Format = ImageFormat.RGBA16161616_EDRAM_RGBA16161616;
texture.Create( width: 1024, height: 1024 );
// Ensure the rendering pipeline supports this format
if (texture.IsFormatSupported())
{
// Proceed with using the texture
Scene.AddTexture(texture);
}
else
{
// Handle unsupported format scenario
Log.Warning("The RGBA16161616_EDRAM_RGBA16161616 format is not supported on this hardware.");
}