[Tests] Initialize presenter state for GPU binding validation
This commit is contained in:
parent
9c03cb0b0b
commit
efa2f549cb
|
|
@ -71,7 +71,7 @@ internal sealed class CacheWorker : IDisposable
|
|||
done.Wait();
|
||||
if (failure != null)
|
||||
{
|
||||
throw failure;
|
||||
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Capture(failure).Throw();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue