Skip to content

Class GraphicsPipelineDescription

Namespace: Apogee.Graphics
Assembly: Apogee.Graphics.dll

Everything that makes a graphics pipeline (front faces are counter-clockwise by default, as in glTF). Geometry is pulled from buffers by the vertex shader (no vertex input state), depth is reverse-Z (the near plane is 1, so is greater-or-equal), and the pipelines render with dynamic rendering into attachments of these formats.

public sealed record GraphicsPipelineDescription : IEquatable<GraphicsPipelineDescription>

Inheritance

object ← GraphicsPipelineDescription

Implements

IEquatable<GraphicsPipelineDescription>

Inherited Members

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

Constructors

GraphicsPipelineDescription(ShaderCode, ShaderCode?, PixelFormat[], PixelFormat, PrimitiveTopology, CullMode, FrontFace, bool, bool, CompareOp, BlendMode)

Everything that makes a graphics pipeline (front faces are counter-clockwise by default, as in glTF). Geometry is pulled from buffers by the vertex shader (no vertex input state), depth is reverse-Z (the near plane is 1, so is greater-or-equal), and the pipelines render with dynamic rendering into attachments of these formats.

public GraphicsPipelineDescription(ShaderCode Vertex, ShaderCode? Fragment, PixelFormat[] ColorFormats, PixelFormat DepthFormat = PixelFormat.Undefined, PrimitiveTopology Topology = PrimitiveTopology.TriangleList, CullMode CullMode = CullMode.Back, FrontFace FrontFace = FrontFace.CounterClockwise, bool DepthTest = false, bool DepthWrite = false, CompareOp DepthCompare = CompareOp.GreaterOrEqual, BlendMode Blend = BlendMode.Opaque)

Parameters

Vertex ShaderCode

Fragment ShaderCode?

ColorFormats PixelFormat[]

DepthFormat PixelFormat

Topology PrimitiveTopology

CullMode CullMode

FrontFace FrontFace

DepthTest bool

DepthWrite bool

DepthCompare CompareOp

Blend BlendMode

Properties

Blend

public BlendMode Blend { get; init; }

Property Value

BlendMode

ColorFormats

public PixelFormat[] ColorFormats { get; init; }

Property Value

PixelFormat[]

CullMode

public CullMode CullMode { get; init; }

Property Value

CullMode

DepthCompare

public CompareOp DepthCompare { get; init; }

Property Value

CompareOp

DepthFormat

public PixelFormat DepthFormat { get; init; }

Property Value

PixelFormat

DepthTest

public bool DepthTest { get; init; }

Property Value

bool

DepthWrite

public bool DepthWrite { get; init; }

Property Value

bool

Fragment

public ShaderCode? Fragment { get; init; }

Property Value

ShaderCode?

FrontFace

public FrontFace FrontFace { get; init; }

Property Value

FrontFace

Topology

public PrimitiveTopology Topology { get; init; }

Property Value

PrimitiveTopology

Vertex

public ShaderCode Vertex { get; init; }

Property Value

ShaderCode