Skip to content

QueueFamilyIndices VulkanEngine::find_queue_families(VkPhysicalDevice device) #2

@EssenOH

Description

@EssenOH

it should be updated as following.

int i = 0;
for (const auto& queueFamily : queue_families) {

	if (queueFamily.queueFlags & VK_QUEUE_GRAPHICS_BIT) {
		indices.graphics_family = i;
	}
	
	if (queueFamily.queueFlags & VK_QUEUE_COMPUTE_BIT) {
		indices.compute_family = i;
	}
	
	if (queueFamily.queueFlags & VK_QUEUE_TRANSFER_BIT) {
		indices.transfer_family = i;
	}

	if (indices.is_complete()) {
		break;
	}

	i++;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions