Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RandomWriteTarget

Allows random write access into this GraphicsTexture on Shader Model 5.0 level shaders.
Read time 1 minuteLast updated 8 days ago

Definition

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. Note that this flag does nothing if GraphicsTextureDescriptorFlags.RenderTarget is not also set. GraphicsTextureDescriptor.numSamples must be 1, as random write access is not compatible with anti-aliasing.
Additional Resources: RenderTexture.enableRandomWrite.