book_4_sparkGenerated
code_blocksInput

Description

The BC6H field is a member of the ImageFormat enumeration in the Sandbox namespace. It represents a specific image format used for storing high dynamic range (HDR) images. The BC6H format is a block compression format that is designed to efficiently compress HDR images while maintaining high quality. This format is particularly useful in scenarios where memory usage and performance are critical, such as in real-time rendering applications.

Usage

Use the ImageFormat.BC6H enumeration value when you need to specify the BC6H image format for operations that involve image processing or rendering. This format is suitable for HDR images and can be used in graphics APIs that support block compression formats.

Example

// Example of using ImageFormat.BC6H

// Assume we have a method that sets the image format for a texture
void SetTextureFormat(Texture texture, ImageFormat format)
{
    texture.Format = format;
}

// Create a new texture and set its format to BC6H
Texture myTexture = new Texture();
SetTextureFormat(myTexture, ImageFormat.BC6H);

// Now myTexture is using the BC6H format, suitable for HDR content