Version: 1.3
LanguageEnglish
  • C#
Experimental: this API is experimental and might be changed or removed in the future.

GraphicsFormatUtility.IsHDRFormat

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static bool IsHDRFormat(Experimental.Rendering.GraphicsFormat format);

Declaration

public static bool IsHDRFormat(TextureFormat format);

Description

Returns true if the format is capable of representing HDR data. Returns false otherwise.

Formats able to represent values beyond the typical LDR limit of 1.0f should return true. Note that some formats that do not qualify as HDR according to this function are able to represent a slightly larger range (like (-0.75 to 1.25) than what is usual for LDR formats. Identify these "Extended Range" formats with GraphicsFormatUtility.IsXRFormat. Additional resources: GraphicsFormatUtility.IsXRFormat.