Refactoring Rendering backend

This commit is contained in:
2025-10-05 16:26:37 +09:00
parent a39f377533
commit 01a850ff94
99 changed files with 5056 additions and 5136 deletions

View File

@@ -1,6 +1,10 @@
namespace Ghost.Core;
public interface IHandleType;
public interface IIdentifierType;
public readonly struct Handle<T>
where T : IHandleType
{
public readonly int id;
@@ -14,6 +18,8 @@ public readonly struct Handle<T>
public static Handle<T> Invalid => new(-1, -1);
public bool IsValid => this != Invalid;
public readonly override int GetHashCode()
{
return id.GetHashCode();
@@ -46,6 +52,7 @@ public readonly struct Handle<T>
}
public readonly struct Identifier<T>
where T : IIdentifierType
{
public readonly int value;
@@ -56,6 +63,8 @@ public readonly struct Identifier<T>
public static Identifier<T> Invalid => new(-1);
public bool IsValid => this != Invalid;
public readonly override int GetHashCode()
{
return value.GetHashCode();