# IsHDRFormat

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

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Experimental.Rendering](/engine/6000.7/script-reference/unityengine/experimental/rendering.md)
* **Assembly:** UnityEngine.CoreModule

## IsHDRFormat(GraphicsFormat)

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

```csharp
public static bool IsHDRFormat(GraphicsFormat format)
```

### Parameters

**** (\[GraphicsFormat]\(/engine/6000.7/script-reference/unityengine/experimental/rendering/graphicsformat)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

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](/engine/6000.7/script-reference/unityengine/experimental/rendering/graphicsformatutility/isxrformat.md).

## IsHDRFormat(TextureFormat)

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

```csharp
public static bool IsHDRFormat(TextureFormat format)
```

### Parameters

**** (\[TextureFormat]\(/engine/6000.7/script-reference/unityengine/textureformat)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

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](/engine/6000.7/script-reference/unityengine/experimental/rendering/graphicsformatutility/isxrformat.md).
