Table of Contents

Struct MeshHandle

Namespace
SharpPluginLoader.Core.Rendering
Assembly
SharpPluginLoader.Core.dll

Represents a mesh handle that can be passed to the Primitives Renderer

public readonly struct MeshHandle : IEquatable<MeshHandle>
Implements
Inherited Members

Remarks

You should not create instances of this struct yourself. Handles can be retrieved via SupplyCustomMesh(Span<Vector4>, Span<uint>).

Constructors

MeshHandle(nuint)

Represents a mesh handle that can be passed to the Primitives Renderer

public MeshHandle(nuint handle)

Parameters

handle nuint

The handle

Remarks

You should not create instances of this struct yourself. Handles can be retrieved via SupplyCustomMesh(Span<Vector4>, Span<uint>).

Properties

Invalid

An invalid mesh handle.

public static MeshHandle Invalid { get; }

Property Value

MeshHandle

Methods

Equals(MeshHandle)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(MeshHandle other)

Parameters

other MeshHandle

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Operators

operator ==(MeshHandle, MeshHandle)

public static bool operator ==(MeshHandle left, MeshHandle right)

Parameters

left MeshHandle
right MeshHandle

Returns

bool

operator ==(MeshHandle, nuint)

public static bool operator ==(MeshHandle left, nuint right)

Parameters

left MeshHandle
right nuint

Returns

bool

operator ==(nuint, MeshHandle)

public static bool operator ==(nuint left, MeshHandle right)

Parameters

left nuint
right MeshHandle

Returns

bool

implicit operator nuint(MeshHandle)

public static implicit operator nuint(MeshHandle handle)

Parameters

handle MeshHandle

Returns

nuint

implicit operator MeshHandle(nuint)

public static implicit operator MeshHandle(nuint handle)

Parameters

handle nuint

Returns

MeshHandle

operator !=(MeshHandle, MeshHandle)

public static bool operator !=(MeshHandle left, MeshHandle right)

Parameters

left MeshHandle
right MeshHandle

Returns

bool

operator !=(MeshHandle, nuint)

public static bool operator !=(MeshHandle left, nuint right)

Parameters

left MeshHandle
right nuint

Returns

bool

operator !=(nuint, MeshHandle)

public static bool operator !=(nuint left, MeshHandle right)

Parameters

left nuint
right MeshHandle

Returns

bool