Skip to content

Reduce calls to vkGetPhysicalDeviceFormatProperties #13068

Description

@spencer-lunarg

We call DispatchGetPhysicalDeviceFormatProperties a LOT and might be better to have some caching mechanism. We have helpers like GetPDFormatProperties but still makes the driver call each time. Some calls are in things like vkCmdSetVertexInputEXT which is likely being called a lot for things using shader object workloads

The one issue is around the fact there now 4 format properties structs (details
https://github.com/KhronosGroup/Vulkan-Guide/blob/main/chapters/extensions/VK_KHR_extended_flags.adoc#when-64-bits-is-not-enough)

I also don't know if the best solution is a hashmap or not

Regardless would be something good to look into

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions