20 lines
290 B
Markdown
20 lines
290 B
Markdown
|
|
# D3D12Device::GetDevice
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
ID3D12Device* GetDevice() const
|
||
|
|
```
|
||
|
|
|
||
|
|
获取底层 D3D12 设备指针。
|
||
|
|
|
||
|
|
**返回:** DirectX 12 设备指针
|
||
|
|
|
||
|
|
**示例:**
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
ID3D12Device* device = d3d12Device->GetDevice();
|
||
|
|
```
|
||
|
|
|
||
|
|
## 相关文档
|
||
|
|
|
||
|
|
- [D3D12Device 总览](device.md) - 返回类总览
|