Enum AccessFlags
Express the operations the rendergraph pass will do on a resource.
Namespace: UnityEngine.Rendering.RenderGraphModule
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[Flags]
[MovedFrom(true, "UnityEngine.Experimental.Rendering.RenderGraphModule", "UnityEngine.Rendering.RenderGraphModule", null)]
public enum AccessFlags
Fields
Name | Description |
---|---|
Discard | Previous data in the resource is not preserved. The resource will contain undefined data at the beginning of the pass. |
None | The pass does not access the resource at all. Calling Use* functions with none has no effect. |
Read | This pass will read data the resource. Data in the resource should never be written unless one of the write flags is also present. Writing to a read-only resource may lead to undefined results, significant performance penaties, and GPU crashes. |
ReadWrite | Shortcut for Read | Write |
Write | This pass will at least write some data to the resource. Data in the resource should never be read unless one of the read flags is also present. Reading from a write-only resource may lead to undefined results, significant performance penaties, and GPU crashes. |
WriteAll | All data in the resource will be written by this pass. Data in the resource should never be read. |