From 0557ff2bae3e33bc71817b50ed7644c8c769f125 Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Wed, 14 Jun 2023 21:03:30 +0800 Subject: [PATCH] added check of brand name --- inc/hgl/graph/VKPhysicalDevice.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/inc/hgl/graph/VKPhysicalDevice.h b/inc/hgl/graph/VKPhysicalDevice.h index 37673f43..dd85364a 100644 --- a/inc/hgl/graph/VKPhysicalDevice.h +++ b/inc/hgl/graph/VKPhysicalDevice.h @@ -90,8 +90,13 @@ public: const bool isMicrosoft ()const{return HGL_VK_IS_BRAND(Microsoft);} const bool isMesa ()const{return HGL_VK_IS_BRAND(Mesa );} const bool isAMD ()const{return HGL_VK_IS_BRAND(AMD ) - ||HGL_VK_IS_BRAND(ATI );} - const bool isNvidia ()const{return HGL_VK_IS_BRAND(nVidia );} + ||HGL_VK_IS_BRAND(ATI ) + ||HGL_VK_IS_BRAND(Radeon );} + const bool isNvidia ()const{return HGL_VK_IS_BRAND(nVidia ) + ||HGL_VK_IS_BRAND(GeForce ) + ||HGL_VK_IS_BRAND(Quadro ) + ||HGL_VK_IS_BRAND(TITAN ) + ||HGL_VK_IS_BRAND(Tegra );} const bool isIntel ()const{return HGL_VK_IS_BRAND(Intel );} const bool isQualcomm ()const{return HGL_VK_IS_BRAND(Adreno );} const bool isApple ()const{return HGL_VK_IS_BRAND(Apple );}