Files
XCSDD/docs/api/rhi/d3d12/device/methods.md
ssdfasd 58a83f445a fix: improve doc link navigation and tree display
- 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
2026-03-19 12:44:08 +08:00

2.4 KiB

D3D12Device 方法

继承方法

Initialize

bool Initialize(const RHIDeviceDesc& desc) override;

初始化 D3D12 设备。

Shutdown

void Shutdown() override;

关闭设备。

CreateBuffer

RHIBuffer* CreateBuffer(const BufferDesc& desc) override;

创建 D3D12 缓冲区。

CreateTexture

RHITexture* CreateTexture(const TextureDesc& desc) override;

创建 D3D12 纹理。

CreateSwapChain

RHISwapChain* CreateSwapChain(const SwapChainDesc& desc) override;

创建 D3D12 交换链。

CreateCommandList

RHICommandList* CreateCommandList(const CommandListDesc& desc) override;

创建 D3D12 命令列表。

CreateCommandQueue

RHICommandQueue* CreateCommandQueue(const CommandQueueDesc& desc) override;

创建 D3D12 命令队列。

CompileShader

RHIShader* CompileShader(const ShaderCompileDesc& desc) override;

编译 D3D12 着色器。

CreatePipelineState

RHIPipelineState* CreatePipelineState(const PipelineStateDesc& desc) override;

创建 D3D12 管线状态对象。

CreateFence

RHIFence* CreateFence(const FenceDesc& desc) override;

创建 D3D12 栅栏。

CreateSampler

RHISampler* CreateSampler(const SamplerDesc& desc) override;

创建 D3D12 采样器。

GetCapabilities

const RHICapabilities& GetCapabilities() const override;

获取设备能力。

GetDeviceInfo

const RHIDeviceInfo& GetDeviceInfo() const override;

获取设备信息。

GetNativeDevice

void* GetNativeDevice() override;

获取原生 D3D12 设备指针。

D3D12 特有方法

GetDevice

ID3D12Device* GetDevice() const;

获取 ID3D12Device 接口。

GetFactory

IDXGIFactory4* GetFactory() const;

获取 IDXGIFactory4 接口。

GetAdapterInfo

const AdapterInfo& GetAdapterInfo() const;

获取适配器信息。

EnumerateAdapters

std::vector<AdapterInfo> EnumerateAdapters();

枚举所有适配器。

GetDescriptorHandleIncrementSize

UINT GetDescriptorHandleIncrementSize(DescriptorHeapType type) const;

获取描述符句柄增量大小。

CheckFeatureSupport

bool CheckFeatureSupport(D3D12_FEATURE feature, void* featureSupportData, uint32_t featureSupportDataSize);

检查功能支持。