mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-13 00:26:00 +00:00
Fix compilation of Vulkan backend on Windows
This commit is contained in:
parent
98013d7866
commit
b325f4d0af
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user