Struct ImportResourceParams
A helper struct describing the clear behavior of imported textures.
Inherited Members
Namespace: UnityEngine.Rendering.RenderGraphModule
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public struct ImportResourceParams
Fields
clearColor
The color to clear with on first use. Ignored if clearOnFirstUse==false;
Declaration
public Color clearColor
Field Value
Type | Description |
---|---|
Color |
clearOnFirstUse
Clear the imported texture the first time it is used by the graph.
Declaration
public bool clearOnFirstUse
Field Value
Type | Description |
---|---|
bool |
discardOnLastUse
Discard the imported texture the last time it is used by the graph. If MSAA enabled, only the multisampled version is discarded while the MSAA surface is always resolved. Fully discarding both multisampled and resolved data is not currently possible.
Declaration
public bool discardOnLastUse
Field Value
Type | Description |
---|---|
bool |