You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.0 KiB
41 lines
1.0 KiB
#ifndef VKTYPES_H
|
|
#define VKTYPES_H
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <optional>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <span>
|
|
#include <array>
|
|
#include <functional>
|
|
#include <deque>
|
|
|
|
#include <vulkan.h>
|
|
#include <vk_enum_string_helper.h>
|
|
#include <vma/vk_mem_alloc.h>
|
|
|
|
#include <fmt/core.h>
|
|
|
|
#include <glm/mat4x4.hpp>
|
|
#include <glm/vec4.hpp>
|
|
|
|
struct AllocatedImage {
|
|
VkImage image;
|
|
VkImageView imageView;
|
|
VmaAllocation allocation;
|
|
VkExtent3D imageExtent;
|
|
VkFormat imageFormat;
|
|
};
|
|
|
|
#define VK_CHECK(x) \
|
|
do { \
|
|
VkResult err = x; \
|
|
if (err) { \
|
|
fmt::print("Detected Vulkan error: {}", string_VkResult(err)); \
|
|
abort(); \
|
|
} \
|
|
} while (0)
|
|
|
|
#endif // VKTYPES_H
|
|
|