Make D3D12PipelineState implement IPipelineState 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 D3D12PipelineState {
|
class D3D12PipelineState : public IPipelineState {
|
||||||
public:
|
public:
|
||||||
D3D12PipelineState();
|
D3D12PipelineState();
|
||||||
~D3D12PipelineState();
|
~D3D12PipelineState();
|
||||||
@@ -20,6 +21,9 @@ public:
|
|||||||
|
|
||||||
ID3D12PipelineState* GetPipelineState() const { return m_pipelineState.Get(); }
|
ID3D12PipelineState* GetPipelineState() const { return m_pipelineState.Get(); }
|
||||||
|
|
||||||
|
void* GetNativeHandle() const override { return m_pipelineState.Get(); }
|
||||||
|
PipelineType GetType() const override { return PipelineType::Graphics; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ComPtr<ID3D12PipelineState> m_pipelineState;
|
ComPtr<ID3D12PipelineState> m_pipelineState;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user