Struct RenderTargetDescription
Describes how a concrete render target should be realized for a frame-graph resource.
public readonly record struct RenderTargetDescription : IEquatable<RenderTargetDescription>
- Implements
- Inherited Members
Constructors
RenderTargetDescription(int, int, FrameGraphResourceFormat, FrameGraphResourceFlags)
Describes how a concrete render target should be realized for a frame-graph resource.
public RenderTargetDescription(int Width, int Height, FrameGraphResourceFormat Format, FrameGraphResourceFlags Flags)
Parameters
WidthintHeightintFormatFrameGraphResourceFormatFlagsFrameGraphResourceFlags
Properties
Flags
public FrameGraphResourceFlags Flags { get; init; }
Property Value
Format
public FrameGraphResourceFormat Format { get; init; }
Property Value
Height
public int Height { get; init; }
Property Value
Width
public int Width { get; init; }
Property Value
Methods
From(FrameGraphResourceDescriptor, Func<(int width, int height)>)
Works out the pixel size of a target for descriptor. A size that is not set is the back buffer's size, from backBufferSizeProvider, times the scale, which is 1 when not set. Each size is at least one pixel.
public static RenderTargetDescription From(FrameGraphResourceDescriptor descriptor, Func<(int width, int height)> backBufferSizeProvider)