- 改用 utl::free_list 管理 surface,避免 vector 扩容导致的资源重复释放 - 为 d3d12_surface 添加移动语义,禁用拷贝构造 - 添加撕裂检测支持(DXGI_PRESENT_ALLOW_TEARING) - 为 FreeList.h 和 Vector.h 添加完整的 Doxygen 中文注释 - 更新 D3D12 学习 Wiki,添加 free_list 章节
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
|
|
|
|
|
|
|