Validation layers on Android
This commit is contained in:
parent
5c8505c25a
commit
0a29322991
5 changed files with 70 additions and 77 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue