#include "resources/ImageView.hpp"


#include "Gpu.hpp"

void ImageView::set_debug_name(const std::shared_ptr<const Gpu>& gpu, const std::string &name) const {
#if LOFT_DEBUG
    VkDebugUtilsObjectNameInfoEXT nameInfo = {
            .sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT,
            .objectType                    = VK_OBJECT_TYPE_IMAGE_VIEW,
            .objectHandle                  = (uint64_t)view,
            .pObjectName                   = name.c_str(),
    };

    vkSetDebugUtilsObjectNameEXT(gpu->dev(), &nameInfo);
#endif
}

