Skip to content

How to convert from vkb::Device to vk::raii::Device? Support in general for vk::raii cpp bindings for vk-bootstrap #422

@JHops881

Description

@JHops881
vk::raii::ShaderModule VulkanApplication::CreateShaderModule(const std::vector<char>& bytes) const
{
    vk::ShaderModuleCreateInfo create_info
    {
        .codeSize = bytes.size() * sizeof(char),
        .pCode = reinterpret_cast<const uint32_t*>(bytes.data())
    };

    vk::raii::ShaderModule shader_module{ vkb_device_.device, create_info };

Seems that vk-bootstrap has locked me into the C bindings, when I want to use the new C++ ones. Is there a way to convert the vkb::Device to a vk::raii::Device? it seems I can only get the VkDevice from it and then I'm pretty stuck.

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