improved features support/check.

This commit is contained in:
2024-04-18 00:36:52 +08:00
parent 621e056315
commit d20e9cf1e3
5 changed files with 76 additions and 50 deletions

View File

@@ -27,6 +27,7 @@ class GPUPhysicalDevice
private:
bool support_u8_index=false;
bool dynamic_state=false;
public:
@@ -141,8 +142,13 @@ public:
public:
const VkBool32 SupportGeometryShader ()const{return features.geometryShader;}
const VkBool32 SupportTessellationShader ()const{return features.tessellationShader;}
const VkBool32 SupportCubeMapArray ()const{return features.imageCubeArray;}
const VkBool32 SupportU32Index ()const{return features.fullDrawIndexUint32;}
const VkBool32 SupportU8Index ()const{return support_u8_index;}
// support != open, so please don't direct use GetFeatures().
// open any features in CreateDevice()&SetDeviceFeatures() functions.
const bool SupportMDI ()const