forked from Misaki/GhostEngine
Refactor error handling: use Error enum, update APIs
Replaces ErrorStatus with Error across all systems for consistency. Renames ResourceBarrierData fields to camelCase. Adds BindlessAccess enum and updates GetBindlessIndex API. Updates method signatures, result types, and error checks. Modernizes HLSL mesh shader syntax and fixes naming. Improves code style and updates comments for clarity.
This commit is contained in:
@@ -31,16 +31,16 @@ public static partial class AssetDatabase
|
||||
s_watcher.Renamed += OnAssetRenamed;
|
||||
}
|
||||
|
||||
private static Result<string, ErrorStatus> GetMetaFilePath(string assetPath)
|
||||
private static Result<string, Error> GetMetaFilePath(string assetPath)
|
||||
{
|
||||
if (Directory.Exists(assetPath))
|
||||
{
|
||||
return ErrorStatus.NotFound;
|
||||
return Error.NotFound;
|
||||
}
|
||||
|
||||
if (Path.GetExtension(assetPath).Equals(".meta", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return ErrorStatus.InvalidState;
|
||||
return Error.InvalidState;
|
||||
}
|
||||
|
||||
return assetPath + ".meta";
|
||||
|
||||
Reference in New Issue
Block a user