34 lines
728 B
C++
34 lines
728 B
C++
#pragma once
|
|
|
|
#include <d3d12.h>
|
|
#include <wrl/client.h>
|
|
|
|
#include "../Enums.h"
|
|
#include "D3D12Enum.h"
|
|
|
|
using Microsoft::WRL::ComPtr;
|
|
|
|
namespace XCEngine {
|
|
namespace RHI {
|
|
|
|
class D3D12RootSignature {
|
|
public:
|
|
D3D12RootSignature();
|
|
~D3D12RootSignature();
|
|
|
|
bool Initialize(ID3D12Device* device, const D3D12_ROOT_SIGNATURE_DESC& desc);
|
|
void Shutdown();
|
|
|
|
ID3D12RootSignature* GetRootSignature() const { return m_rootSignature.Get(); }
|
|
|
|
void* GetNativeHandle() const { return m_rootSignature.Get(); }
|
|
uint32_t GetParameterCount() const { return m_parameterCount; }
|
|
|
|
private:
|
|
ComPtr<ID3D12RootSignature> m_rootSignature;
|
|
uint32_t m_parameterCount = 0;
|
|
};
|
|
|
|
} // namespace RHI
|
|
} // namespace XCEngine
|