Skip to content

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

PixelFormat

Height

public uint Height { get; }

Property Value

uint

Width

public uint Width { get; }

Property Value

uint

Methods

Offscreen(GpuImage)

An offscreen image with ; it is left in for readback.

public static RenderTarget Offscreen(GpuImage image)

Parameters

image GpuImage

Returns

RenderTarget

Texture(GpuImage, uint)

An offscreen image with and , drawn as a texture afterwards (the editor shows the world in a panel): it is left in , so a later graph of the same frame, such as the ImGui pass, samples it through sampledIndex (its bindless index) with no barrier of its own.

public static RenderTarget Texture(GpuImage image, uint sampledIndex)

Parameters

image GpuImage

sampledIndex uint

Returns

RenderTarget

Window(Backbuffer)

public static RenderTarget Window(Backbuffer backbuffer)

Parameters

backbuffer Backbuffer

Returns

RenderTarget