- Fix link resolution with proper relative/absolute path handling - Improve link styling with underline decoration - Hide leaf nodes from tree, only show directories - Fix log file path for packaged app
166 lines
2.4 KiB
Markdown
166 lines
2.4 KiB
Markdown
# D3D12Device 方法
|
|
|
|
## 继承方法
|
|
|
|
### Initialize
|
|
|
|
```cpp
|
|
bool Initialize(const RHIDeviceDesc& desc) override;
|
|
```
|
|
|
|
初始化 D3D12 设备。
|
|
|
|
### Shutdown
|
|
|
|
```cpp
|
|
void Shutdown() override;
|
|
```
|
|
|
|
关闭设备。
|
|
|
|
### CreateBuffer
|
|
|
|
```cpp
|
|
RHIBuffer* CreateBuffer(const BufferDesc& desc) override;
|
|
```
|
|
|
|
创建 D3D12 缓冲区。
|
|
|
|
### CreateTexture
|
|
|
|
```cpp
|
|
RHITexture* CreateTexture(const TextureDesc& desc) override;
|
|
```
|
|
|
|
创建 D3D12 纹理。
|
|
|
|
### CreateSwapChain
|
|
|
|
```cpp
|
|
RHISwapChain* CreateSwapChain(const SwapChainDesc& desc) override;
|
|
```
|
|
|
|
创建 D3D12 交换链。
|
|
|
|
### CreateCommandList
|
|
|
|
```cpp
|
|
RHICommandList* CreateCommandList(const CommandListDesc& desc) override;
|
|
```
|
|
|
|
创建 D3D12 命令列表。
|
|
|
|
### CreateCommandQueue
|
|
|
|
```cpp
|
|
RHICommandQueue* CreateCommandQueue(const CommandQueueDesc& desc) override;
|
|
```
|
|
|
|
创建 D3D12 命令队列。
|
|
|
|
### CompileShader
|
|
|
|
```cpp
|
|
RHIShader* CompileShader(const ShaderCompileDesc& desc) override;
|
|
```
|
|
|
|
编译 D3D12 着色器。
|
|
|
|
### CreatePipelineState
|
|
|
|
```cpp
|
|
RHIPipelineState* CreatePipelineState(const PipelineStateDesc& desc) override;
|
|
```
|
|
|
|
创建 D3D12 管线状态对象。
|
|
|
|
### CreateFence
|
|
|
|
```cpp
|
|
RHIFence* CreateFence(const FenceDesc& desc) override;
|
|
```
|
|
|
|
创建 D3D12 栅栏。
|
|
|
|
### CreateSampler
|
|
|
|
```cpp
|
|
RHISampler* CreateSampler(const SamplerDesc& desc) override;
|
|
```
|
|
|
|
创建 D3D12 采样器。
|
|
|
|
### GetCapabilities
|
|
|
|
```cpp
|
|
const RHICapabilities& GetCapabilities() const override;
|
|
```
|
|
|
|
获取设备能力。
|
|
|
|
### GetDeviceInfo
|
|
|
|
```cpp
|
|
const RHIDeviceInfo& GetDeviceInfo() const override;
|
|
```
|
|
|
|
获取设备信息。
|
|
|
|
### GetNativeDevice
|
|
|
|
```cpp
|
|
void* GetNativeDevice() override;
|
|
```
|
|
|
|
获取原生 D3D12 设备指针。
|
|
|
|
## D3D12 特有方法
|
|
|
|
### GetDevice
|
|
|
|
```cpp
|
|
ID3D12Device* GetDevice() const;
|
|
```
|
|
|
|
获取 `ID3D12Device` 接口。
|
|
|
|
### GetFactory
|
|
|
|
```cpp
|
|
IDXGIFactory4* GetFactory() const;
|
|
```
|
|
|
|
获取 `IDXGIFactory4` 接口。
|
|
|
|
### GetAdapterInfo
|
|
|
|
```cpp
|
|
const AdapterInfo& GetAdapterInfo() const;
|
|
```
|
|
|
|
获取适配器信息。
|
|
|
|
### EnumerateAdapters
|
|
|
|
```cpp
|
|
std::vector<AdapterInfo> EnumerateAdapters();
|
|
```
|
|
|
|
枚举所有适配器。
|
|
|
|
### GetDescriptorHandleIncrementSize
|
|
|
|
```cpp
|
|
UINT GetDescriptorHandleIncrementSize(DescriptorHeapType type) const;
|
|
```
|
|
|
|
获取描述符句柄增量大小。
|
|
|
|
### CheckFeatureSupport
|
|
|
|
```cpp
|
|
bool CheckFeatureSupport(D3D12_FEATURE feature, void* featureSupportData, uint32_t featureSupportDataSize);
|
|
```
|
|
|
|
检查功能支持。
|