线程安全的无锁命令分配器池,继承自 CommandPoolBase。
设计
template <D3D12_COMMAND_LIST_TYPE Type>
class CommandAllocatorPool : public CommandPoolBase {
Handle Acquire(uint64_t currentGpuCompletedValue) override;
void Release(const Handle& handle) override;
void ReleaseWithFence(const Handle& handle, uint64_t fenceValue);
Allocator* GetAllocator(size_t index);
Stats GetStats() const;
};
2026年5月10日小于 1 分钟
