Move D3D12 cpp files to src/RHI/D3D12/ subdirectory

This commit is contained in:
2026-03-15 20:50:06 +08:00
parent 4af4326767
commit dfbd218435
21 changed files with 20 additions and 20 deletions

View File

@@ -0,0 +1,24 @@
#include "XCEngine/RHI/D3D12/D3D12Sampler.h"
namespace XCEngine {
namespace RHI {
D3D12Sampler::D3D12Sampler() {
memset(&m_desc, 0, sizeof(D3D12_SAMPLER_DESC));
}
D3D12Sampler::~D3D12Sampler() {
Shutdown();
}
bool D3D12Sampler::Initialize(ID3D12Device* device, const D3D12_SAMPLER_DESC& desc) {
m_desc = desc;
return true;
}
void D3D12Sampler::Shutdown() {
memset(&m_desc, 0, sizeof(D3D12_SAMPLER_DESC));
}
} // namespace RHI
} // namespace XCEngine