Android fixed example
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
This commit is contained in:
parent
4fca515d8f
commit
d2d9ae6873
6 changed files with 42 additions and 35 deletions
|
|
@ -290,8 +290,9 @@ Manager::createDevice(const std::vector<uint32_t>& familyQueueIndices,
|
|||
this->mFreeDevice = true;
|
||||
|
||||
// Getting an integer that says how many vuklan devices we have
|
||||
uint32_t deviceCount = 0;
|
||||
this->mInstance->enumeratePhysicalDevices(&deviceCount, nullptr);
|
||||
std::vector<vk::PhysicalDevice> physicalDevices =
|
||||
this->mInstance->enumeratePhysicalDevices();
|
||||
uint32_t deviceCount = physicalDevices.size();
|
||||
|
||||
// This means there are no devices at all
|
||||
if (deviceCount == 0) {
|
||||
|
|
@ -308,9 +309,6 @@ Manager::createDevice(const std::vector<uint32_t>& familyQueueIndices,
|
|||
"please use your existing device");
|
||||
}
|
||||
|
||||
std::vector<vk::PhysicalDevice> physicalDevices =
|
||||
this->mInstance->enumeratePhysicalDevices();
|
||||
|
||||
vk::PhysicalDevice physicalDevice = physicalDevices[physicalDeviceIndex];
|
||||
|
||||
this->mPhysicalDevice =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue