# GetRenderTextureDescriptor(int, int, int, TextureDimension)

> Utility function to create a RenderTextureDescriptor compatible with a shading rate image. This function does not perform the conversion from pixel to tile.

## Definition

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

```csharp
public static RenderTextureDescriptor GetRenderTextureDescriptor(int width, int height, int volumeDepth = 1, TextureDimension textureDimension = TextureDimension.Tex2D)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Width of shading rate image**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Height of shading rate image**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of slices of the shading rate image. The default value is 1.**** (\[TextureDimension]\(/engine/6000.5/script-reference/unityengine/rendering/texturedimension)): Dimensionality of the resulting shading rate image. The default value is 2D

### Returns

| Type                                                                                              | Description                                                      |
| ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| [RenderTextureDescriptor](/engine/6000.5/script-reference/unityengine/rendertexturedescriptor.md) | The render texture descriptor compatible for shading rate image. |
