文档

Unity Engine

Unity Engine

RandomWriteTarget

Allows random write access into this GraphicsTexture on Shader Model 5.0 level shaders.
阅读时间1 分钟最后更新于 1 个月前

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.