feat: 实现 D3D12Sampler 采样器类
- 添加 D3D12Sampler.h/cpp - 支持采样器描述符 - 测试通过
This commit is contained in:
28
engine/include/XCEngine/RHI/D3D12/D3D12Sampler.h
Normal file
28
engine/include/XCEngine/RHI/D3D12/D3D12Sampler.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <d3d12.h>
|
||||
#include <wrl/client.h>
|
||||
|
||||
#include "D3D12Enum.h"
|
||||
|
||||
using Microsoft::WRL::ComPtr;
|
||||
|
||||
namespace XCEngine {
|
||||
namespace RHI {
|
||||
|
||||
class D3D12Sampler {
|
||||
public:
|
||||
D3D12Sampler();
|
||||
~D3D12Sampler();
|
||||
|
||||
bool Initialize(ID3D12Device* device, const D3D12_SAMPLER_DESC& desc);
|
||||
void Shutdown();
|
||||
|
||||
D3D12_SAMPLER_DESC GetDesc() const { return m_desc; }
|
||||
|
||||
private:
|
||||
D3D12_SAMPLER_DESC m_desc;
|
||||
};
|
||||
|
||||
} // namespace RHI
|
||||
} // namespace XCEngine
|
||||
Reference in New Issue
Block a user