Make D3D12Sampler implement ISampler interface

This commit is contained in:
2026-03-16 00:35:18 +08:00
parent 1d99ef4d31
commit f4d94bda3d

View File

@@ -3,6 +3,7 @@
#include <d3d12.h> #include <d3d12.h>
#include <wrl/client.h> #include <wrl/client.h>
#include "../DescriptorHeap.h"
#include "D3D12Enum.h" #include "D3D12Enum.h"
using Microsoft::WRL::ComPtr; using Microsoft::WRL::ComPtr;
@@ -10,7 +11,7 @@ using Microsoft::WRL::ComPtr;
namespace XCEngine { namespace XCEngine {
namespace RHI { namespace RHI {
class D3D12Sampler { class D3D12Sampler : public ISampler {
public: public:
D3D12Sampler(); D3D12Sampler();
~D3D12Sampler(); ~D3D12Sampler();
@@ -20,6 +21,8 @@ public:
D3D12_SAMPLER_DESC GetDesc() const { return m_desc; } D3D12_SAMPLER_DESC GetDesc() const { return m_desc; }
void* GetNativeHandle() const override { return nullptr; }
private: private:
D3D12_SAMPLER_DESC m_desc; D3D12_SAMPLER_DESC m_desc;
}; };