2020-03-09 12:30:07 +01:00
|
|
|
#pragma once
|
|
|
|
|
#include "Graphics/GraphicsEnums.h"
|
|
|
|
|
#include <vulkan/vulkan.h>
|
|
|
|
|
|
|
|
|
|
#define VK_CHECK(f) \
|
|
|
|
|
{ \
|
|
|
|
|
VkResult res = (f); \
|
|
|
|
|
if (res != VK_SUCCESS) \
|
|
|
|
|
{ \
|
|
|
|
|
std::cout << "Fatal : VkResult is \"" << res << "\" in " << __FILE__ << " at line " << __LINE__ << std::endl; \
|
|
|
|
|
assert(res == VK_SUCCESS); \
|
|
|
|
|
} \
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace Seele
|
|
|
|
|
{
|
2020-03-13 12:44:33 +01:00
|
|
|
VkDescriptorType cast(const SeDescriptorType& descriptorType);
|
|
|
|
|
SeDescriptorType cast(const VkDescriptorType& descriptorType);
|
|
|
|
|
VkShaderStageFlagBits cast(const SeShaderStageFlagBits& stage);
|
|
|
|
|
SeShaderStageFlagBits cast(const VkShaderStageFlagBits& stage);
|
2020-03-09 12:30:07 +01:00
|
|
|
}
|