Refactor instance update flow, asset registry, and texture IO
- Renamed AddInstanceRequest to UpdateInstanceRequest; unified add/update logic for GPU instances - Introduced UpdateGPUInstanceSystem to handle changed MeshInstance components - Replaced QueryBuilder.Create() with QueryBuilder.New() for consistency - Switched versioning in ChunkView HasChanged/HasStructuralChanged to uint - Added extension-to-AssetType mapping in AssetHandlerRegistry - Changed TextureAssetHandler/Processor to use nint for image data - Enhanced DDS cache: read mipmap count, handle invalid files - Updated ProjectBrowserViewModel to use IAssetRegistry - Upgraded Misaki.HighPerformance and System.IO.Hashing packages - Set DependencyChainCapacity in JobSchedulerDesc - Fixed instance buffer logic in GhostRenderPipeline - Miscellaneous cleanups and namespace improvements
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Ghost.Editor.ViewModels.Controls;
|
||||
internal partial class ProjectBrowserViewModel : ObservableObject
|
||||
{
|
||||
private readonly IInspectorService _inspectorService;
|
||||
// private readonly IAssetService _assetService;
|
||||
private readonly IAssetRegistry _assetRegistry;
|
||||
|
||||
private readonly Dictionary<string, ExplorerItem> _pathToDirectoryItemMap = new();
|
||||
private ExplorerItem? _selectedItem;
|
||||
@@ -40,10 +40,10 @@ internal partial class ProjectBrowserViewModel : ObservableObject
|
||||
get; set;
|
||||
} = string.Empty;
|
||||
|
||||
public ProjectBrowserViewModel(IInspectorService inspectorService) // , IAssetService assetService)
|
||||
public ProjectBrowserViewModel(IInspectorService inspectorService, IAssetRegistry assetRegistry)
|
||||
{
|
||||
_inspectorService = inspectorService;
|
||||
// _assetService = assetService;
|
||||
_assetRegistry = assetRegistry;
|
||||
|
||||
var assetsRootItem = new ExplorerItem(EditorApplication.ASSETS_FOLDER_NAME, Path.Combine(EditorApplication.ProjectPath, EditorApplication.ASSETS_FOLDER_NAME), true);
|
||||
LoadSubFolderRecursive(assetsRootItem);
|
||||
@@ -109,7 +109,7 @@ internal partial class ProjectBrowserViewModel : ObservableObject
|
||||
}
|
||||
else
|
||||
{
|
||||
// _assetService.OpenAsset(SelectedItem.FullName);
|
||||
// _assetRegistry.OpenAsset(SelectedItem.FullName);
|
||||
return (null, 1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
x:Name="ContentFrame"
|
||||
Grid.Row="2"
|
||||
IsNavigationStackEnabled="False" />-->
|
||||
<!-- Edit View -->
|
||||
<Grid Grid.Row="1" Background="{ThemeResource LayerFillColorDefaultBrush}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
@@ -390,6 +391,7 @@
|
||||
Margin="8,0"
|
||||
PlaceholderText="Search components..." />
|
||||
|
||||
<!-- Components List -->
|
||||
<ListView
|
||||
Grid.Row="2"
|
||||
Padding="4,2,0,2"
|
||||
@@ -406,6 +408,7 @@
|
||||
<TextBlock Text="Test" />
|
||||
</ListView>
|
||||
|
||||
<!-- Component Properties for Selected Component -->
|
||||
<ScrollView
|
||||
Grid.Row="3"
|
||||
BorderBrush="{ThemeResource DividerStrokeColorDefaultBrush}"
|
||||
|
||||
Reference in New Issue
Block a user