Make D3D12Sampler implement ISampler interface
This commit is contained in:
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user