Struct MeshHandle
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
handlenuintThe 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
Methods
Equals(MeshHandle)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(MeshHandle other)
Parameters
otherMeshHandleAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand 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
leftMeshHandlerightMeshHandle
Returns
operator ==(MeshHandle, nuint)
public static bool operator ==(MeshHandle left, nuint right)
Parameters
leftMeshHandlerightnuint
Returns
operator ==(nuint, MeshHandle)
public static bool operator ==(nuint left, MeshHandle right)
Parameters
leftnuintrightMeshHandle
Returns
implicit operator nuint(MeshHandle)
public static implicit operator nuint(MeshHandle handle)
Parameters
handleMeshHandle
Returns
implicit operator MeshHandle(nuint)
public static implicit operator MeshHandle(nuint handle)
Parameters
handlenuint
Returns
operator !=(MeshHandle, MeshHandle)
public static bool operator !=(MeshHandle left, MeshHandle right)
Parameters
leftMeshHandlerightMeshHandle
Returns
operator !=(MeshHandle, nuint)
public static bool operator !=(MeshHandle left, nuint right)
Parameters
leftMeshHandlerightnuint
Returns
operator !=(nuint, MeshHandle)
public static bool operator !=(nuint left, MeshHandle right)
Parameters
leftnuintrightMeshHandle