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-20 01:27:40 +01:00
|
|
|
namespace Vulkan
|
|
|
|
|
{
|
|
|
|
|
VkDescriptorType cast(const Gfx::SeDescriptorType& descriptorType);
|
|
|
|
|
Gfx::SeDescriptorType cast(const VkDescriptorType& descriptorType);
|
|
|
|
|
VkShaderStageFlagBits cast(const Gfx::SeShaderStageFlagBits& stage);
|
|
|
|
|
Gfx::SeShaderStageFlagBits cast(const VkShaderStageFlagBits& stage);
|
2020-04-01 02:17:49 +02:00
|
|
|
VkFormat cast(const Gfx::SeFormat& format);
|
|
|
|
|
Gfx::SeFormat cast(const VkFormat& format);
|
2020-03-20 01:27:40 +01:00
|
|
|
}
|
2020-03-09 12:30:07 +01:00
|
|
|
}
|