feat(RHI): 实现 RHISampler 抽象基类

- 新增 RHISampler 抽象基类
- D3D12Sampler 继承 RHISampler
- OpenGLSampler 继承 RHISampler,使用 OpenGLSamplerDesc
- 文档更新 RHISampler 差异处理策略
This commit is contained in:
2026-03-17 17:31:32 +08:00
parent e38d5ccede
commit f046e17ad6
6 changed files with 1650 additions and 26 deletions

View File

@@ -34,7 +34,7 @@ OpenGLSampler::OpenGLSampler() : m_sampler(0) {
OpenGLSampler::~OpenGLSampler() {
}
bool OpenGLSampler::Initialize(const SamplerDesc& desc) {
bool OpenGLSampler::Initialize(const OpenGLSamplerDesc& desc) {
m_desc = desc;
glGenSamplers(1, &m_sampler);