feat(rendergraph): async queue, pool refactor, barrier cleanup

Refactor resource pool to use UnsafeQueue/UnsafeList for transient resources, improving memory management and performance.
Add async GPU wait support to ICommandQueue and D3D12.
Refactor render graph barrier system, streamline CompiledBarrier, and remove ResourceBarrier.
RenderGraphCompiler now returns Result<float2, Error> for dynamic resolution scaling.
Replace custom memory pools with Allocator.FreeList for temp allocations.
Add ResourceUploadBatch for async/sync resource uploads.
Fix D3D12 disposal and fence tracking bugs.
Update NuGet dependencies.
Numerous minor cleanups and code improvements.
This commit is contained in:
2026-04-05 17:54:23 +09:00
parent 92970f85ef
commit effd33b285
35 changed files with 472 additions and 494 deletions

View File

@@ -117,20 +117,25 @@ internal sealed unsafe class NvttBindingTest : ITest
pOutOpts->SetSrgbFlag(true);
pOutOpts->SetContainer(NvttContainer.NVTT_Container_DDS10);
pOutOpts->SetOutputHandler(
(size, w, h, d, face, mip) =>
using var handler = new NvttOutputHandler
{
beginImageHandler = (size, w, h, d, face, mip) =>
{
imagesBegun++;
},
(ptr, len) =>
outputHandler = (ptr, len) =>
{
totalBytesReceived += len;
return true;
},
null
);
pOutOpts->SetErrorHandler(err =>
Console.WriteLine($"/n [NVTT Error] {err}"));
endImageHandler = null,
errorHandler = (err) =>
{
Console.WriteLine($"/n [NVTT Error] {err}");
}
};
pOutOpts->SetOutputHandler(handler);
var pCtx = NvttContext.Create();
pCtx->SetCudaAcceleration(false); // CPU only for the test
@@ -214,7 +219,7 @@ internal sealed unsafe class NvttBindingTest : ITest
{
(*(int*)userData)++;
int i = 0;
var i = 0;
while (msg[i] != 0)
{
i++;