From 1fefab02cf9de6f091ebc45a11a8a891a5f14192 Mon Sep 17 00:00:00 2001 From: BlueRose <378100977@qq.com> Date: Thu, 2 Oct 2025 10:38:48 +0800 Subject: [PATCH] vault backup: 2025-10-02 10:38:48 --- .../DirectX12学习笔记(0)——相关资料.md | 1 + .../DirectX12学习笔记(2)——Direct3D初始化.md | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/04-ComputerGraphics/Directx12/DirectX12学习笔记(0)——相关资料.md b/04-ComputerGraphics/Directx12/DirectX12学习笔记(0)——相关资料.md index a76c0bb..493012c 100644 --- a/04-ComputerGraphics/Directx12/DirectX12学习笔记(0)——相关资料.md +++ b/04-ComputerGraphics/Directx12/DirectX12学习笔记(0)——相关资料.md @@ -7,4 +7,5 @@ rating: ⭐ --- # 前言 - [开篇:D3D12龙书指南](https://zhuanlan.zhihu.com/p/417016061) +- [[DIRECTX 12 3D游戏开发实战_(美)弗兰克·D.卢娜著;王陈译_北京:人民邮电出版社_2019.01_742_14522790.pdf]] - [d3dcoder/d3d12book: Sample code for the book "Introduction to 3D Game Programming with DirectX 12" ](http://github.com/d3dcoder/d3d12book) \ No newline at end of file diff --git a/04-ComputerGraphics/Directx12/DirectX12学习笔记(2)——Direct3D初始化.md b/04-ComputerGraphics/Directx12/DirectX12学习笔记(2)——Direct3D初始化.md index 37ba591..41262da 100644 --- a/04-ComputerGraphics/Directx12/DirectX12学习笔记(2)——Direct3D初始化.md +++ b/04-ComputerGraphics/Directx12/DirectX12学习笔记(2)——Direct3D初始化.md @@ -18,4 +18,22 @@ D3D使用IDXGISwapChain控制前后缓存交换。 - ResizeBuffers() - Present():呈现缓冲区内容。 +# 资源描述符号 +1. 常量缓冲区视图(CBV)/SRV/UAV +2. 采样器(Sample) +3. 渲染目标视图(RTV) +4. 深度/模版视图(DSV) +# 多重采样技术 +解析(resolve,或者可以称之为降采样) + +## 利用D3D进行多重采样 +首先填写DXGI_SAMPLE_DESC: +```c++ +typedef struct DXGI_SAMPLE_DESC +{ + UINT Count; + UINT Quality; +} DXGI_SAMPLE_DESC; +``` +之后使用ID3D12Device::CheckFeatureSupport查询到对应的质量级别: