Skip to content

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.

C#
public sealed record GraphicsLimits : IEquatable<GraphicsLimits>

Inheritance

object ← GraphicsLimits

Implements

IEquatable<GraphicsLimits>

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.

C#
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.

C#
public int MaxRenderTargetSize { get; init; }

Property Value

int

MaxTextureSize

Largest texture width or height.

C#
public int MaxTextureSize { get; init; }

Property Value

int

MaxTextureSlots

Texture-sampler slots per fragment stage.

C#
public int MaxTextureSlots { get; init; }

Property Value

int

MaxUniformBytes

Bytes per uniform slot (0 on tier 0).

C#
public int MaxUniformBytes { get; init; }

Property Value

int

MaxVertexAttributes

Attributes per vertex layout.

C#
public int MaxVertexAttributes { get; init; }

Property Value

int

Methods

<Clone>$()

C#
public GraphicsLimits <Clone>$()

Returns

GraphicsLimits

Deconstruct(out int, out int, out int, out int, out int)

C#
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?)

C#
public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(GraphicsLimits?)

C#
public bool Equals(GraphicsLimits? other)

Parameters

other GraphicsLimits?

Returns

bool

GetHashCode()

C#
public override int GetHashCode()

Returns

int

ToString()

C#
public override string ToString()

Returns

string

Operators

operator ==(GraphicsLimits?, GraphicsLimits?)

C#
public static bool operator ==(GraphicsLimits? left, GraphicsLimits? right)

Parameters

left GraphicsLimits?

right GraphicsLimits?

Returns

bool

operator !=(GraphicsLimits?, GraphicsLimits?)

C#
public static bool operator !=(GraphicsLimits? left, GraphicsLimits? right)

Parameters

left GraphicsLimits?

right GraphicsLimits?

Returns

bool