From f231e3dc18adea3f7a971eea7759b9382ab48cc8 Mon Sep 17 00:00:00 2001 From: ssdfasd <2156608475@qq.com> Date: Sun, 15 Mar 2026 23:50:45 +0800 Subject: [PATCH] Make D3D12CommandAllocator implement ICommandAllocator interface --- engine/include/XCEngine/RHI/D3D12/D3D12CommandAllocator.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/engine/include/XCEngine/RHI/D3D12/D3D12CommandAllocator.h b/engine/include/XCEngine/RHI/D3D12/D3D12CommandAllocator.h index c5dc4d17..eebc6bbd 100644 --- a/engine/include/XCEngine/RHI/D3D12/D3D12CommandAllocator.h +++ b/engine/include/XCEngine/RHI/D3D12/D3D12CommandAllocator.h @@ -4,13 +4,14 @@ #include #include "../Enums.h" +#include "../CommandAllocator.h" using Microsoft::WRL::ComPtr; namespace XCEngine { namespace RHI { -class D3D12CommandAllocator { +class D3D12CommandAllocator : public ICommandAllocator { public: D3D12CommandAllocator(); ~D3D12CommandAllocator(); @@ -18,8 +19,8 @@ public: bool Initialize(ID3D12Device* device, CommandQueueType type = CommandQueueType::Direct); void Shutdown(); - void Reset(); - bool IsReady() const; + void Reset() override; + bool IsReady() const override; ID3D12CommandAllocator* GetCommandAllocator() const { return m_commandAllocator.Get(); }