- 新增32个方法文档(D3D12Buffer 13个,D3D12Texture 12个,D3D12SwapChain 6个) - 修复11处跨模块引用错误(rhi-device.md, rhi-texture.md等路径错误) - 清理d3d12-overview.md移除不存在的类引用 - 修复D3D12Device/D3D12CommandList/D3D12CommandQueue方法列表 - D3D12模块现无broken links
854 B
854 B
D3D12SwapChain::Initialize
初始化 D3D12SwapChain 交换链。
重载 1: 从头创建
bool Initialize(IDXGIFactory4* factory, ID3D12CommandQueue* commandQueue, HWND windowHandle, uint32_t width, uint32_t height, uint32_t bufferCount = 2);
参数:
factory- DXGI 工厂指针commandQueue- 命令队列指针windowHandle- 窗口句柄width- 宽度height- 高度bufferCount- 缓冲数量,默认为 2
返回: bool - 初始化成功返回 true
重载 2: 从现有交换链创建
bool Initialize(IDXGISwapChain* swapChain, uint32_t width, uint32_t height);
参数:
swapChain- 现有 DXGI 交换链指针width- 宽度height- 高度
返回: bool - 初始化成功返回 true