# RandomWriteTarget

> Allows random write access into this GraphicsTexture on Shader Model 5.0 level shaders.

## Definition

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

```csharp
RandomWriteTarget = 2
```

### Remarks

Allows Shader Model 5.0 level pixel or compute shaders to write into arbitrary locations on this texture, called "unordered access views" in [UsingDX11GL3Features](/engine/6000.7/manual/platform-specific/cross-platform-features/graphics-apis/using-dx11gl3features.md). Note that this flag does nothing if [GraphicsTextureDescriptorFlags.RenderTarget](/engine/6000.7/script-reference/unityengine/rendering/graphicstexturedescriptorflags/rendertarget.md) is not also set. [GraphicsTextureDescriptor.numSamples](/engine/6000.7/script-reference/unityengine/rendering/graphicstexturedescriptor/numsamples.md) must be 1, as random write access is not compatible with anti-aliasing.

Additional Resources: [RenderTexture.enableRandomWrite](/engine/6000.7/script-reference/unityengine/rendertexture/enablerandomwrite.md).
