Struct RenderTargetInfo
Basic properties of a RTHandle needed by the render graph compiler. It is not always possible to derive these given an RTHandle so the user needs to pass these in.
We don't use a full RenderTargetDescriptor here as filling out a full descriptor may not be trivial for users and not all members of the descriptor are actually used by the render graph. This struct is the minimum set of info needed by the render graph. If you want to develop some utility framework to work with render textures, etc. it's probably better to use RenderTargetDescriptor.
Inherited Members
Namespace: UnityEngine.Rendering.RenderGraphModule
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[MovedFrom(true, "UnityEngine.Experimental.Rendering.RenderGraphModule", "UnityEngine.Rendering.RenderGraphModule", null)]
public struct RenderTargetInfo
Fields
bindMS
Set to true if the render texture needs to be bound as a multisampled texture in a shader.
Declaration
public bool bindMS
Field Value
Type | Description |
---|---|
bool |
format
The Graphics format of the render texture.
Declaration
public GraphicsFormat format
Field Value
Type | Description |
---|---|
GraphicsFormat |
height
The height in pixels of the render texture.
Declaration
public int height
Field Value
Type | Description |
---|---|
int |
msaaSamples
The number of msaa samples in the render texture.
Declaration
public int msaaSamples
Field Value
Type | Description |
---|---|
int |
volumeDepth
The number of volume/array slices of the render texture.
Declaration
public int volumeDepth
Field Value
Type | Description |
---|---|
int |
width
The width in pixels of the render texture.
Declaration
public int width
Field Value
Type | Description |
---|---|
int |