Refactor render graph error handling and resource APIs
- RenderGraph.Compile/Execute now return Error for better failure detection; error handling is propagated throughout compiler and executor. - Renamed ScheduleReleaseResource to ReleaseResource for clarity; updated all usages. - ResourceManager now calls ReleaseResource directly on Mesh, Material, and Shader types. - Camera exposes Actual/Virtual size properties and Render returns Error. - RenderingContext now uses IResourceManager for mesh/resource ops. - Replaced custom BinaryWriter with BufferWriter in RenderGraphHasher. - Improved variable naming, interface signatures, and code formatting. - Added Error extension for IsSuccess/IsFailure. - Minor FMOD/native interop and test code cleanups. - No breaking API changes except for new Error return values on some methods.
This commit is contained in:
@@ -5,9 +5,9 @@ namespace Ghost.Editor.Core.Contracts;
|
||||
|
||||
public interface IInspectable
|
||||
{
|
||||
public IconSource? CreateIcon();
|
||||
IconSource? CreateIcon();
|
||||
|
||||
public UIElement? CreateHeader();
|
||||
UIElement? CreateHeader();
|
||||
|
||||
public UIElement? CreateInspector();
|
||||
UIElement? CreateInspector();
|
||||
}
|
||||
@@ -2,6 +2,6 @@ namespace Ghost.Editor.Core.Contracts;
|
||||
|
||||
public interface INavigationAware
|
||||
{
|
||||
public void OnNavigatedTo(object? parameter);
|
||||
public void OnNavigatedFrom();
|
||||
void OnNavigatedTo(object? parameter);
|
||||
void OnNavigatedFrom();
|
||||
}
|
||||
@@ -5,6 +5,6 @@ namespace Ghost.Editor.Core.Contracts;
|
||||
|
||||
public interface INotificationService
|
||||
{
|
||||
public void ShowNotification(string? message, MessageType type, int duration = 5, string? title = null);
|
||||
public void ShowNotification(Notification notification);
|
||||
void ShowNotification(string? message, MessageType type, int duration = 5, string? title = null);
|
||||
void ShowNotification(Notification notification);
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@ namespace Ghost.Editor.Core.Contracts;
|
||||
|
||||
public interface IProgressService
|
||||
{
|
||||
public void ShowProgress(string message, double progress = 0.0);
|
||||
public void ShowIndeterminateProgress(string message);
|
||||
public void SetProgress(double progress);
|
||||
public void HideProgress();
|
||||
void ShowProgress(string message, double progress = 0.0);
|
||||
void ShowIndeterminateProgress(string message);
|
||||
void SetProgress(double progress);
|
||||
void HideProgress();
|
||||
}
|
||||
Reference in New Issue
Block a user