Optimize editor profiler native allocations when capturing data

This commit is contained in:
Wojtek Figat
2025-06-09 15:23:31 +02:00
parent 057ec9d41e
commit d7ff9fdade
7 changed files with 83 additions and 3 deletions

View File

@@ -236,7 +236,7 @@ public:
/// <summary>
/// Gets the list with all active GPU resources.
/// </summary>
API_PROPERTY() Array<GPUResource*> GetResources() const;
Array<GPUResource*> GetResources() const;
/// <summary>
/// Gets the GPU asynchronous work manager.
@@ -432,6 +432,12 @@ public:
/// </summary>
/// <returns>The GPU tasks executor.</returns>
virtual GPUTasksExecutor* CreateTasksExecutor();
private:
// Internal bindings
#if !COMPILE_WITHOUT_CSHARP
API_FUNCTION(NoProxy) void* GetResourcesInternal();
#endif
};
/// <summary>