GraphicsAPI reference
Class Pipeline
Namespace: MicroEngine.Graphics.Devices
Assembly: MicroEngine.Graphics.dll
Guide: The graphics device
A graphics pipeline: built-in (device-owned) or custom.
public abstract class Pipeline : GraphicsResource, IDisposableInheritance
object ← GraphicsResource ← Pipeline
Implements
Inherited Members
GraphicsResource.Dispose(), GraphicsResource.Release(), GraphicsResource.Expire(), GraphicsResource.MarkLost(), GraphicsResource.Device, GraphicsResource.Name, GraphicsResource.Handle, GraphicsResource.IsDisposed, GraphicsResource.IsLost, GraphicsResource.OwnedBy, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Pipeline(IGraphicsDevice, BuiltInPipeline?, VertexLayout, BlendState, TextureFormat, TextureFormat?, ShaderResources, ShaderResources)
Creates the pipeline object.
protected Pipeline(IGraphicsDevice device, BuiltInPipeline? builtIn, VertexLayout layout, BlendState blend, TextureFormat colorFormat, TextureFormat? depthFormat, ShaderResources vertexResources, ShaderResources fragmentResources)Parameters
device IGraphicsDevice
builtIn BuiltInPipeline?
layout VertexLayout
blend BlendState
colorFormat TextureFormat
depthFormat TextureFormat?
vertexResources ShaderResources
fragmentResources ShaderResources
Properties
Blend
Blend state.
public BlendState Blend { get; }Property Value
BuiltIn
The built-in kind, or null for a custom pipeline.
public BuiltInPipeline? BuiltIn { get; }Property Value
ColorFormat
Colour attachment format the pipeline renders to.
public TextureFormat ColorFormat { get; }Property Value
DepthFormat
Depth attachment format, or null for passes without depth.
public TextureFormat? DepthFormat { get; }Property Value
FragmentResources
Fragment-stage resources (built-ins: one sampler).
public ShaderResources FragmentResources { get; }Property Value
Layout
Vertex layout (Vertex2D for built-ins).
public VertexLayout Layout { get; }Property Value
OwnedBy
When not null, Dispose throws InvalidOperationException with this text: device-owned
objects (built-in pipelines, a render target’s colour texture, the surface target) are not disposed by callers.
protected override string? OwnedBy { get; }Property Value
VertexResources
Vertex-stage resources (built-ins: none visible to callers).
public ShaderResources VertexResources { get; }