Skip to content

ludus::graphics::rhi::RasterColorAttachment

Ludus Wiki · API overview · Browse API

Struct

One selected color attachment, with independent initialization and optional MSAA resolve.

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/graph.h

#include <ludus/graphics/rhi/graph.h>
struct ludus::graphics::rhi::RasterColorAttachment final

Fields

View

TextureViewHandle ludus::graphics::rhi::RasterColorAttachment::View {}
Ready attachment view of exactly one mip/layer; retained through execution/completion.

Related types: TextureViewHandle

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/graph.h

Resolve

TextureViewHandle ludus::graphics::rhi::RasterColorAttachment::Resolve {}
Optional single-sample attachment view of matching extent/format. Source must be four-sample. Resolve initializes the destination even when source Store is Discard, provided source is defined.

Related types: TextureViewHandle

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/graph.h

Load

RasterLoad ludus::graphics::rhi::RasterColorAttachment::Load = RasterLoad::Clear
Full selected-subresource initialization, independent of viewport/scissor.

Related types: RasterLoad

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/graph.h

Store

RasterStore ludus::graphics::rhi::RasterColorAttachment::Store = RasterStore::Store
Validity of the selected source subresource after the pass.

Related types: RasterStore

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/graph.h

Clear

ludus::foundation::float32 ludus::graphics::rhi::RasterColorAttachment::Clear[4][4] {0, 0, 0, 1}
Linear clear RGBA, finite in [0,1].

Related types: ludus::foundation::float32

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/graph.h