Skip to content

GraphicsAPI reference

Struct PassDescription

Namespace: MicroEngine.Graphics.Devices
Assembly: MicroEngine.Graphics.dll
Guide: The graphics device

A render pass: one colour attachment and an optional depth attachment (several colour attachments are a later, additive extension). Viewport and scissor start as the whole colour target; bindings start empty.

C#
public readonly struct PassDescription : IEquatable<PassDescription>

Implements

IEquatable<PassDescription>

Constructors

PassDescription(ColorAttachment, DepthAttachment?)

A render pass: one colour attachment and an optional depth attachment (several colour attachments are a later, additive extension). Viewport and scissor start as the whole colour target; bindings start empty.

C#
public PassDescription(ColorAttachment Color, DepthAttachment? Depth = null)

Parameters

Color ColorAttachment

Colour attachment.

Depth DepthAttachment?

Depth attachment, or null.

Properties

Color

Colour attachment.

C#
public ColorAttachment Color { get; init; }

Property Value

ColorAttachment

Depth

Depth attachment, or null.

C#
public DepthAttachment? Depth { get; init; }

Property Value

DepthAttachment?

Methods

Deconstruct(out ColorAttachment, out DepthAttachment?)

C#
public void Deconstruct(out ColorAttachment Color, out DepthAttachment? Depth)

Parameters

Color ColorAttachment

Depth DepthAttachment?

Equals(object)

C#
public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(PassDescription)

C#
public bool Equals(PassDescription other)

Parameters

other PassDescription

Returns

bool

GetHashCode()

C#
public override int GetHashCode()

Returns

int

ToString()

C#
public override string ToString()

Returns

string

Operators

operator ==(PassDescription, PassDescription)

C#
public static bool operator ==(PassDescription left, PassDescription right)

Parameters

left PassDescription

right PassDescription

Returns

bool

operator !=(PassDescription, PassDescription)

C#
public static bool operator !=(PassDescription left, PassDescription right)

Parameters

left PassDescription

right PassDescription

Returns

bool