Properly report cubemap array support on Vulkan
This commit is contained in:
parent
fe81222ea7
commit
0d75b4f47e
3 changed files with 10 additions and 1 deletions
|
@ -304,7 +304,7 @@ public:
|
|||
virtual ShaderLanguage accepted_shader_language() { return ShaderLanguage::GLSL; }
|
||||
virtual const char* get_name() { return nullptr; }
|
||||
|
||||
virtual bool supports_feature([[maybe_unused]] const GFXFeature feature) { return true; }
|
||||
virtual bool supports_feature([[maybe_unused]] const GFXFeature feature) { return false; }
|
||||
|
||||
// try to initialize
|
||||
virtual bool initialize([[maybe_unused]] const GFXCreateInfo& createInfo) { return false; }
|
||||
|
|
|
@ -47,6 +47,8 @@ public:
|
|||
GFXContext required_context() { return GFXContext::Vulkan; }
|
||||
const char* get_name() override;
|
||||
|
||||
bool supports_feature(const GFXFeature feature) override;
|
||||
|
||||
bool initialize(const GFXCreateInfo& info) override;
|
||||
|
||||
void initialize_view(void* native_handle, const int identifier, const uint32_t width, const uint32_t height) override;
|
||||
|
|
|
@ -1357,6 +1357,13 @@ const char* GFXVulkan::get_name() {
|
|||
return "Vulkan";
|
||||
}
|
||||
|
||||
bool GFXVulkan::supports_feature(const GFXFeature feature) {
|
||||
if(feature == GFXFeature::CubemapArray)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
VkResult CreateDebugUtilsMessengerEXT(
|
||||
VkInstance instance,
|
||||
const VkDebugUtilsMessengerCreateInfoEXT *pCreateInfo,
|
||||
|
|
Reference in a new issue