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
This commit is contained in:
27
docs/api/rhi/device/get-device-info.md
Normal file
27
docs/api/rhi/device/get-device-info.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# RHIDevice::GetDeviceInfo
|
||||
|
||||
```cpp
|
||||
virtual const RHIDeviceInfo& GetDeviceInfo() const = 0;
|
||||
```
|
||||
|
||||
获取当前设备的详细信息。
|
||||
|
||||
**返回:** 设备信息结构体引用
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
const RHIDeviceInfo& info = device->GetDeviceInfo();
|
||||
|
||||
printf("GPU: %ls\n", info.description.c_str());
|
||||
printf("Vendor: %ls\n", info.vendor.c_str());
|
||||
printf("Driver: %ls\n", info.version.c_str());
|
||||
printf("VRAM: %llu MB\n", info.dedicatedVideoMemory / 1024 / 1024);
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [RHIDevice 总览](device.md) - 返回类总览
|
||||
- [RHIDeviceInfo](../types/types.md) - 设备信息结构体
|
||||
Reference in New Issue
Block a user