[Tests] Initialize presenter state for GPU binding validation

This commit is contained in:
kuba 2026-10-01 13:00:10 +02:00
parent 9c03cb0b0b
commit efa2f549cb
2 changed files with 6 additions and 3 deletions

View File

@ -71,7 +71,7 @@ internal sealed class CacheWorker : IDisposable
done.Wait();
if (failure != null)
{
throw failure;
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Capture(failure).Throw();
}
}

View File

@ -76,7 +76,9 @@ internal sealed class PresenterUnderTest : IDisposable
{
"_batchResources", "_batchRetireBuffers", "_pendingGuestSubmissions",
"_deferredGuestImageVersionDestroys",
"_pipelineEntries", "_shaderModules",
"_pipelineEntries", "_shaderModules", "_shaderModuleSpirvBytes",
"_preparedTextures", "_barriersAfterRendering", "_feedbackSnapshotPool",
"_pipelineCacheShards", "_tracedBufferWriters",
})
{
var field = PresenterType.GetField(name, InstanceMembers)!;
@ -113,7 +115,8 @@ internal sealed class PresenterUnderTest : IDisposable
}
catch (TargetInvocationException exception) when (exception.InnerException is not null)
{
throw exception.InnerException;
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Capture(exception.InnerException).Throw();
throw;
}
}