Validation layers on Android
This commit is contained in:
@@ -52,10 +52,10 @@ int VulkanContextAndroid::window_create(ANativeWindow *p_window, int p_width, in
|
||||
return _window_create(DisplayServer::MAIN_WINDOW_ID, surface, p_width, p_height);
|
||||
}
|
||||
|
||||
VulkanContextAndroid::VulkanContextAndroid() {
|
||||
// TODO: fix validation layers
|
||||
use_validation_layers = false;
|
||||
}
|
||||
bool VulkanContextAndroid::_use_validation_layers() {
|
||||
uint32_t count = 0;
|
||||
_get_preferred_validation_layers(&count, nullptr);
|
||||
|
||||
VulkanContextAndroid::~VulkanContextAndroid() {
|
||||
// On Android, we use validation layers automatically if they were explicitly linked with the app.
|
||||
return count > 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user