Struct DataPool.RtDescriptor
Describes a render target in the simplified form used by the graph runtime.
public struct DataPool.RtDescriptor : IEquatable<DataPool.RtDescriptor>, IEquatable<RenderTextureDescriptor>
- Implements
-
IEquatable<RenderTextureDescriptor>
- Inherited Members
Remarks
The pool intentionally tracks only width, height, and color format because those are the properties it uses to decide whether an existing GraphRenderTexture can be reused.
Properties
- format
Color format required by the node output that will use the render target.
- height
Height, in pixels, required by the render target.
- width
Width, in pixels, required by the render target.
Methods
- Create(int, int, RenderTextureFormat)
Creates a render-target descriptor for the requested resolution and format.
- Equals(RtDescriptor)
Compares two simplified render-target descriptors for pool reuse.
- Equals(RenderTextureDescriptor)
Compares this simplified descriptor against a full UnityEngine.RenderTextureDescriptor.
Operators
- implicit operator RenderTextureDescriptor(RtDescriptor)
Converts the simplified descriptor into the Unity descriptor used to allocate a render texture.