核心变更: - 新增 d3d12_texture 和 d3d12_render_texture 类 - 新增 d3d12_texture_init_info 结构,支持三种资源创建方式 - 新增 D3D12Helpers.h,提供堆属性辅助结构 - 改用 utl::free_list 管理 surface,解决重复释放问题 - 为 d3d12_surface 添加移动语义,支持撕裂检测 文档完善: - 为 FreeList.h 和 Vector.h 添加完整 Doxygen 中文注释 - 更新 D3D12 学习 Wiki,添加 SRV、资源创建方式、纹理资源类章节 - 新增变更记录文档
23 lines
579 B
C++
23 lines
579 B
C++
#include "D3D12Interface.h"
|
|
#include "D3D12Core.h"
|
|
#include "Graphics\GraphicsPlatformInterface.h"
|
|
|
|
namespace XEngine::graphics::d3d12{
|
|
void get_platform_interface(platform_interface& pi)
|
|
{
|
|
pi.initialize = core::initialize;
|
|
pi.shutdown = core::shutdown;
|
|
|
|
|
|
pi.surface.create = core::create_surface;
|
|
pi.surface.remove = core::remove_surface;
|
|
pi.surface.resize = core::resize_surface;
|
|
pi.surface.width = core::surface_width;
|
|
pi.surface.height = core::surface_height;
|
|
pi.surface.render = core::render_surface;
|
|
}
|
|
}// namespace XEngine::graphics::d3d12
|
|
|
|
|
|
|