diff --git a/engine/include/XCEngine/RHI/D3D12/D3D12Sampler.h b/engine/include/XCEngine/RHI/D3D12/D3D12Sampler.h index 619abb37..cc328424 100644 --- a/engine/include/XCEngine/RHI/D3D12/D3D12Sampler.h +++ b/engine/include/XCEngine/RHI/D3D12/D3D12Sampler.h @@ -3,6 +3,7 @@ #include #include +#include "../DescriptorHeap.h" #include "D3D12Enum.h" using Microsoft::WRL::ComPtr; @@ -10,7 +11,7 @@ using Microsoft::WRL::ComPtr; namespace XCEngine { namespace RHI { -class D3D12Sampler { +class D3D12Sampler : public ISampler { public: D3D12Sampler(); ~D3D12Sampler(); @@ -20,6 +21,8 @@ public: D3D12_SAMPLER_DESC GetDesc() const { return m_desc; } + void* GetNativeHandle() const override { return nullptr; } + private: D3D12_SAMPLER_DESC m_desc; };