Skip to content

Avoid double-query with VK_EXT_host_image_copy #217

@ShabbyX

Description

@ShabbyX

The following code does two queries to get the device properties:

if (extensionSupported("VK_EXT_host_image_copy")) {

You can avoid this by providing a large-enough array size to pCopySrcLayouts and pCopyDstLayouts in the very first query. Given the current number of enums in VkImageLayout, an array of say 100 entries should be more than enough for the foreseeable future.

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