- 新增 d3d12_surface 类,管理交换链和渲染目标 - 实现三重缓冲后台缓冲区管理 - 添加视口和裁剪矩形配置 - 修复 GraphicsPlatformInterface.h 循环包含问题 - 添加完整的中文 Doxygen 注释 - 更新 D3D12 学习 Wiki,添加交换链章节
27 lines
639 B
C++
27 lines
639 B
C++
#pragma once
|
|
#include "CommonHeader.h"
|
|
#include "Platform/Window.h"
|
|
#include "Renderer.h"
|
|
|
|
namespace XEngine::graphics{
|
|
/**
|
|
* @brief 平台接口结构体
|
|
* @details 定义了图形渲染平台的初始化与关闭函数指针
|
|
*/
|
|
struct platform_interface{
|
|
bool(*initialize)(void);
|
|
void(*shutdown)(void);
|
|
void(*render)(void);
|
|
|
|
struct {
|
|
surface(*create)(platform::window);
|
|
void(*remove)(surface_id);
|
|
void(*resize)(surface_id, u32, u32);
|
|
u32(*width)(surface_id);
|
|
u32(*height)(surface_id);
|
|
void(*render)(surface_id);
|
|
} surface;
|
|
};
|
|
}// namespace XEngine::graphics
|
|
|