기술 자료

Unity Engine

Unity Engine

RandomWriteTarget

Allows random write access into this GraphicsTexture on Shader Model 5.0 level shaders.
읽는 시간 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.