# RenderTextureDescriptor

> This struct contains all the information required to create a RenderTexture. It can be copied, cached, and reused to easily create RenderTextures that all share the same properties. Avoid using the default constructor as it does not initialize some flags with the recommended values.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public struct RenderTextureDescriptor
```

## Constructors

| Constructor                                                                                                                                                                                                                    | Description                                                                                   |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------- |
| [RenderTextureDescriptor(System.Int32,System.Int32,UnityEngine.RenderTextureFormat,System.Int32,System.Int32,UnityEngine.RenderTextureReadWrite)](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/ctor.md) | Create a RenderTextureDescriptor with default values, or a certain width, height, and format. |

## Properties

| Property                                                                                                                  | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [autoGenerateMips](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/autogeneratemips.md)               | Mipmap levels are generated automatically when this flag is set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [bindMS](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/bindms.md)                                   | If true and [RenderTextureDescriptor.msaaSamples](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/msaasamples.md) is greater than 1, the render texture will not be resolved by default.  Use this if the render texture needs to be bound as a multisampled texture in a shader.                                                                                                                                                                                                                                                                    |
| [colorFormat](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/colorformat.md)                         | The format of the RenderTarget is expressed as a [RenderTextureFormat](/engine/6000.7/script-reference/unityengine/rendertextureformat.md). Internally, this format is stored as a [GraphicsFormat](/engine/6000.7/script-reference/unityengine/experimental/rendering/graphicsformat.md) compatible with the current system (see [SystemInfo.GetCompatibleFormat](/engine/6000.7/script-reference/unityengine/systeminfo/getcompatibleformat.md)). Therefore, if you set a format and immediately get it again, it may return a different result from the one just set. |
| [depthBufferBits](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/depthbufferbits.md)                 | The precision of the render texture's depth buffer in bits (0, 16, 24 and 32 are supported).                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [depthStencilFormat](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/depthstencilformat.md)           | The desired format of the depth/stencil buffer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [dimension](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/dimension.md)                             | Dimensionality (type) of the render texture.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [enableRandomWrite](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/enablerandomwrite.md)             | Enable random access write into this render texture on Shader Model 5.0 level shaders.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [enableShadingRate](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/enableshadingrate.md)             | Make this render texture usable as a shading rate image.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [flags](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/flags.md)                                     | A set of [RenderTextureCreationFlags](/engine/6000.7/script-reference/unityengine/rendertexturecreationflags.md) that control how the texture is created.                                                                                                                                                                                                                                                                                                                                                                                                                |
| [graphicsFormat](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/graphicsformat.md)                   | The color format for the RenderTexture. You can set this format to None to achieve depth-only rendering.                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [height](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/height.md)                                   | The height of the render texture in pixels.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [memoryless](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/memoryless.md)                           | The render texture memoryless mode property.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [mipCount](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/mipcount.md)                               | User-defined mipmap count.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [msaaSamples](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/msaasamples.md)                         | The multisample antialiasing level for the RenderTexture.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [shadowSamplingMode](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/shadowsamplingmode.md)           | Determines how the RenderTexture is sampled if it is used as a shadow map.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [sRGB](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/srgb.md)                                       | This flag causes the render texture uses sRGB read/write conversions.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [stencilFormat](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/stencilformat.md)                     | The format of the stencil data that you can encapsulate within a RenderTexture.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [useDynamicScale](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/usedynamicscale.md)                 | Set to true to enable dynamic resolution scaling on this render texture. Mutually exclusive with                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [useDynamicScaleExplicit](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/usedynamicscaleexplicit.md) | Set to true to enable dynamic resolution scaling on this render texture and control when this scaling happens. Mutually exclusive with                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [useMipMap](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/usemipmap.md)                             | Render texture has mipmaps when this flag is set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [volumeDepth](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/volumedepth.md)                         | Volume extent of a 3D render texture.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [vrUsage](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/vrusage.md)                                 | If this RenderTexture is a VR eye texture used in stereoscopic rendering, this property decides what special rendering occurs, if any. Instead of setting this manually, use the value returned by [eyeTextureDesc](/engine/6000.7/script-reference/unityengine/xr/xrsettings/eyetexturedesc.md) or other VR functions returning a [RenderTextureDescriptor](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor.md).                                                                                                                                    |
| [width](/engine/6000.7/script-reference/unityengine/rendertexturedescriptor/width.md)                                     | The width of the render texture in pixels.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
