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
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
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¶
ColorFormats¶
public PixelFormat[] ColorFormats { get; init; }
Property Value¶
CullMode¶
public CullMode CullMode { get; init; }
Property Value¶
DepthCompare¶
public CompareOp DepthCompare { get; init; }
Property Value¶
DepthFormat¶
public PixelFormat DepthFormat { get; init; }
Property Value¶
DepthTest¶
public bool DepthTest { get; init; }
Property Value¶
DepthWrite¶
public bool DepthWrite { get; init; }
Property Value¶
Fragment¶
public ShaderCode? Fragment { get; init; }
Property Value¶
FrontFace¶
public FrontFace FrontFace { get; init; }
Property Value¶
Topology¶
public PrimitiveTopology Topology { get; init; }
Property Value¶
Vertex¶
public ShaderCode Vertex { get; init; }