forked from Misaki/GhostEngine
Refactor and enhance codebase for maintainability
Refactored and reorganized the codebase to improve readability, performance, and maintainability. Introduced new interfaces and structs for better resource management, updated project configuration files, and refactored shader and graphics pipeline management. Improved error handling, code formatting, and removed unused code and namespaces. Updated DLL references and method signatures for consistency and maintainability.
This commit is contained in:
@@ -7,7 +7,6 @@ public readonly struct Handle<T>
|
||||
where T : IHandleType
|
||||
{
|
||||
public readonly int id;
|
||||
|
||||
public readonly int generation;
|
||||
|
||||
public Handle(int id, int generation)
|
||||
@@ -22,7 +21,7 @@ public readonly struct Handle<T>
|
||||
|
||||
public readonly override int GetHashCode()
|
||||
{
|
||||
return id.GetHashCode();
|
||||
return id + (generation << 16);
|
||||
}
|
||||
|
||||
public readonly override bool Equals(object? obj)
|
||||
|
||||
Reference in New Issue
Block a user