GraphicsAPI reference
Class GraphicsLimits
Namespace: MicroEngine.Graphics.Devices
Assembly: MicroEngine.Graphics.dll
Guide: The graphics device
Limits. Each value is a guaranteed minimum: a backend that cannot query its API reports the minimum the API specification guarantees, so a limit may be conservative but never optimistic.
public sealed record GraphicsLimits : IEquatable<GraphicsLimits>Inheritance
Implements
Constructors
GraphicsLimits(int, int, int, int, int)
Limits. Each value is a guaranteed minimum: a backend that cannot query its API reports the minimum the API specification guarantees, so a limit may be conservative but never optimistic.
public GraphicsLimits(int MaxTextureSize, int MaxRenderTargetSize, int MaxTextureSlots, int MaxUniformBytes, int MaxVertexAttributes)Parameters
MaxTextureSize int
Largest texture width or height.
MaxRenderTargetSize int
Largest render target width or height.
MaxTextureSlots int
Texture-sampler slots per fragment stage.
MaxUniformBytes int
Bytes per uniform slot (0 on tier 0).
MaxVertexAttributes int
Attributes per vertex layout.
Properties
MaxRenderTargetSize
Largest render target width or height.
public int MaxRenderTargetSize { get; init; }Property Value
MaxTextureSize
Largest texture width or height.
public int MaxTextureSize { get; init; }Property Value
MaxTextureSlots
Texture-sampler slots per fragment stage.
public int MaxTextureSlots { get; init; }Property Value
MaxUniformBytes
Bytes per uniform slot (0 on tier 0).
public int MaxUniformBytes { get; init; }Property Value
MaxVertexAttributes
Attributes per vertex layout.
public int MaxVertexAttributes { get; init; }Property Value
Methods
<Clone>$()
public GraphicsLimits <Clone>$()Returns
Deconstruct(out int, out int, out int, out int, out int)
public void Deconstruct(out int MaxTextureSize, out int MaxRenderTargetSize, out int MaxTextureSlots, out int MaxUniformBytes, out int MaxVertexAttributes)Parameters
MaxTextureSize int
MaxRenderTargetSize int
MaxTextureSlots int
MaxUniformBytes int
MaxVertexAttributes int
Equals(object?)
public override bool Equals(object? obj)Parameters
obj object?
Returns
Equals(GraphicsLimits?)
public bool Equals(GraphicsLimits? other)Parameters
other GraphicsLimits?
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(GraphicsLimits?, GraphicsLimits?)
public static bool operator ==(GraphicsLimits? left, GraphicsLimits? right)Parameters
left GraphicsLimits?
right GraphicsLimits?
Returns
operator !=(GraphicsLimits?, GraphicsLimits?)
public static bool operator !=(GraphicsLimits? left, GraphicsLimits? right)Parameters
left GraphicsLimits?
right GraphicsLimits?