GraphicsAPI reference
Class GraphicsCapabilityException
Namespace: MicroEngine.Graphics.Devices
Assembly: MicroEngine.Graphics.dll
Guide: The graphics device
The one typed error for a missing capability: names the operation, the device and what it lacks. Thrown at creation or recording time, never deferred to a draw.
public sealed class GraphicsCapabilityException : NotSupportedException, ISerializableInheritance
object ← Exception ← SystemException ← NotSupportedException ← GraphicsCapabilityException
Implements
Inherited Members
Exception.GetBaseException(), Exception.ToString(), Exception.GetType(), Exception.TargetSite, Exception.Message, Exception.Data, Exception.InnerException, Exception.HelpLink, Exception.Source, Exception.HResult, Exception.StackTrace, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
GraphicsCapabilityException(string, string, GraphicsFeatures, string?)
Creates the error.
public GraphicsCapabilityException(string operation, string device, GraphicsFeatures missing, string? requirement = null)Parameters
operation string
The operation, e.g. “CreatePipeline(depth)”.
device string
The backend name (Backend).
missing GraphicsFeatures
The undeclared feature, or None when the requirement is not a feature (a format, shader format or present mode: see requirement).
requirement string?
What exactly is missing, e.g. “TextureFormat.D24UnormS8 as DepthStencil”.
Properties
Device
The backend name.
public string Device { get; }Property Value
Missing
The undeclared feature, or None for a non-feature requirement.
public GraphicsFeatures Missing { get; }Property Value
Operation
The refused operation.
public string Operation { get; }Property Value
Requirement
The non-feature requirement (format and usage, shader format, present mode), when there is one.
public string? Requirement { get; }