Fix compilation of Vulkan backend on Windows

This commit is contained in:
Corentin Wallez 2017-11-23 10:31:52 -08:00 committed by Corentin Wallez
parent 98013d7866
commit b325f4d0af

View File

@ -381,8 +381,8 @@ namespace vulkan {
// Find a universal queue family // Find a universal queue family
{ {
constexpr uint32_t kUniversalFlags = VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT | VK_QUEUE_TRANSFER_BIT; constexpr uint32_t kUniversalFlags = VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT | VK_QUEUE_TRANSFER_BIT;
ssize_t universalQueueFamily = -1; int universalQueueFamily = -1;
for (size_t i = 0; i < deviceInfo.queueFamilies.size(); ++i) { for (unsigned int i = 0; i < deviceInfo.queueFamilies.size(); ++i) {
if ((deviceInfo.queueFamilies[i].queueFlags & kUniversalFlags) == kUniversalFlags) { if ((deviceInfo.queueFamilies[i].queueFlags & kUniversalFlags) == kUniversalFlags) {
universalQueueFamily = i; universalQueueFamily = i;
break; break;