Skip to content

Struct PassContext

Namespace: Apogee.Rendering.Graph
Assembly: Apogee.Rendering.dll

What a pass's execute callback gets: the command recorder and its resources.

public readonly struct PassContext

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Properties

Frame

public Frame Frame { get; }

Property Value

Frame

Recorder

public CommandRecorder Recorder { get; }

Property Value

CommandRecorder

Methods

Buffer(BufferHandle)

public GpuBuffer Buffer(BufferHandle handle)

Parameters

handle BufferHandle

Returns

GpuBuffer

Image(ImageHandle)

public ResolvedImage Image(ImageHandle handle)

Parameters

handle ImageHandle

Returns

ResolvedImage

Image(ImageHandle, SubresourceRange)

The image as a view of some of its mips and layers: is a view of just that part, the bindless indices read or write just that part (a mip to build the next one from, a face to store into), and the size is that of its first mip. The view lives as long as the image's frame slot needs it: do not keep it past the frame.

public ResolvedImage Image(ImageHandle handle, SubresourceRange range)

Parameters

handle ImageHandle

range SubresourceRange

Returns

ResolvedImage