Skip to content

Merge function pointer table struct with high level wrapper struct #876

@Friz64

Description

@Friz64

-- Using VK_KHR_swapchain as an example:

I think it's pretty confusing to have both ash::extensions::khr::Swapchain and ash::vk::KhrSwapchainFn. Is there a good justification for why the wrapper functions shouldn't be directly defined on the struct that also holds the function pointers?

I originally alluded to this in this comment: #734 (comment).

The Device handle would be a bit awkwardly grouped with the function pointers, but overall it results in an easier to grok API, especially after the changes in #734.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions