Struct RenderTarget¶
Namespace: Apogee.Rendering
Assembly: Apogee.Rendering.dll
Where the final image goes: the window's image, an offscreen one that is read back, or one that is drawn as a texture afterwards (an editor's viewport).
public readonly struct RenderTarget
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Properties¶
Format¶
public PixelFormat Format { get; }
Property Value¶
Height¶
public uint Height { get; }
Property Value¶
Width¶
public uint Width { get; }
Property Value¶
Methods¶
Offscreen(GpuImage)¶
An offscreen image with
public static RenderTarget Offscreen(GpuImage image)
Parameters¶
image GpuImage
Returns¶
Texture(GpuImage, uint)¶
An offscreen image with sampledIndex (its bindless index) with no barrier of its own.
public static RenderTarget Texture(GpuImage image, uint sampledIndex)
Parameters¶
image GpuImage
sampledIndex uint
Returns¶
Window(Backbuffer)¶
public static RenderTarget Window(Backbuffer backbuffer)
Parameters¶
backbuffer Backbuffer