Fixing Android build error and warnings
This commit is contained in:
parent
a7a1a8aed4
commit
96df99f1f2
2 changed files with 2 additions and 6 deletions
|
|
@ -76,7 +76,7 @@ namespace vkDebug
|
||||||
instance,
|
instance,
|
||||||
&dbgCreateInfo,
|
&dbgCreateInfo,
|
||||||
nullptr,
|
nullptr,
|
||||||
(callBack != nullptr) ? &callBack : &msgCallback);
|
(callBack != VK_NULL_HANDLE) ? &callBack : &msgCallback);
|
||||||
assert(!err);
|
assert(!err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -247,7 +247,7 @@ void VulkanExampleBase::prepare()
|
||||||
{
|
{
|
||||||
if (enableValidation)
|
if (enableValidation)
|
||||||
{
|
{
|
||||||
vkDebug::setupDebugging(instance, VK_DEBUG_REPORT_ERROR_BIT_EXT | VK_DEBUG_REPORT_WARNING_BIT_EXT, NULL);
|
vkDebug::setupDebugging(instance, VK_DEBUG_REPORT_ERROR_BIT_EXT | VK_DEBUG_REPORT_WARNING_BIT_EXT, VK_NULL_HANDLE);
|
||||||
}
|
}
|
||||||
createCommandPool();
|
createCommandPool();
|
||||||
createSetupCommandBuffer();
|
createSetupCommandBuffer();
|
||||||
|
|
@ -887,10 +887,6 @@ void VulkanExampleBase::initVulkan(bool enableValidation)
|
||||||
vkGetPhysicalDeviceProperties(physicalDevice, &deviceProperties);
|
vkGetPhysicalDeviceProperties(physicalDevice, &deviceProperties);
|
||||||
vkGetPhysicalDeviceFeatures(physicalDevice, &deviceFeatures);
|
vkGetPhysicalDeviceFeatures(physicalDevice, &deviceFeatures);
|
||||||
|
|
||||||
#if defined(__ANDROID__)
|
|
||||||
LOGD(deviceProperties.deviceName);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Gather physical device memory properties
|
// Gather physical device memory properties
|
||||||
vkGetPhysicalDeviceMemoryProperties(physicalDevice, &deviceMemoryProperties);
|
vkGetPhysicalDeviceMemoryProperties(physicalDevice, &deviceMemoryProperties);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue