BartSiwek / Gris

Small graphics engine to try stuff out
MIT License
0 stars 0 forks source link

Convert the creation of Vulkan objects to '.method' pattern. #24

Closed BartSiwek closed 3 years ago

BartSiwek commented 3 years ago

Example:

auto instCreateInfo = vk::InstanceCreateInfo{}
    .setEnabledExtensionCount(static_cast<uint32_t>(numGlfwExtensions))
    .setPpEnabledExtensionNames(glfwExtensions)
    .setEnabledLayerCount(static_cast<uint32_t>(EnabledVkValidationLayers.size()))
    .setPpEnabledLayerNames(EnabledVkValidationLayers.data());