Updated D3D12Renderer for testing.

This commit is contained in:
2025-11-11 16:10:17 +09:00
parent 56f73e774b
commit fb003da26a
7 changed files with 107 additions and 87 deletions

View File

@@ -165,6 +165,12 @@ internal class D3D12ResourceDatabase : IResourceDatabase, IDisposable
return handle;
}
public bool HasResource(Handle<GPUResource> handle)
{
ObjectDisposedException.ThrowIf(_disposed, this);
return _resources.Contain(handle.id, handle.generation);
}
public ref ResourceRecord GetResourceInfo(Handle<GPUResource> handle)
{
ObjectDisposedException.ThrowIf(_disposed, this);