-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- **添加Vulkan运行时支持检测**:通过`VulkanViewer::isSupported()`静态方法检查系统是否支持Vulkan,避免在不支持的环境下初始化相关组件。 - **条件化Vulkan组件创建**:仅在检测到Vulkan支持时创建`VulkanViewer`实例,防止运行时崩溃。 - **动态控制菜单项显示**:若Vulkan不可用,菜单中对应的"Vulkan Viewer"选项将不会显示。 - **优化Vulkan实例管理**:在`VulkanView`中增加`isVulkanSupported()`全局检测函数,输出Vulkan版本信息以便调试。 - **修复潜在空指针问题**:将`vulkanViewer`指针初始化为`nullptr`,并增加判空保护逻辑。
- Loading branch information
Showing
5 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters