From f4d94bda3d26f1ff83851f8d5f72b01fcb6f8e44 Mon Sep 17 00:00:00 2001 From: ssdfasd <2156608475@qq.com> Date: Mon, 16 Mar 2026 00:35:18 +0800 Subject: [PATCH] Make D3D12Sampler implement ISampler interface --- engine/include/XCEngine/RHI/D3D12/D3D12Sampler.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; };