Convert all remaining enums to enum classes (!)
This commit is contained in:
@@ -372,7 +372,7 @@ namespace Nz
|
||||
|
||||
std::shared_ptr<VulkanDevice> Vulkan::CreateDevice(const Vk::PhysicalDevice& deviceInfo)
|
||||
{
|
||||
Nz::ErrorFlags errFlags(ErrorFlag_ThrowException, true);
|
||||
Nz::ErrorFlags errFlags(ErrorMode::ThrowException, true);
|
||||
|
||||
// Find a queue that supports graphics operations
|
||||
UInt32 graphicsQueueNodeIndex = UINT32_MAX;
|
||||
@@ -409,7 +409,7 @@ namespace Nz
|
||||
|
||||
std::shared_ptr<VulkanDevice> Vulkan::CreateDevice(const Vk::PhysicalDevice& deviceInfo, const Vk::Surface& surface, UInt32* graphicsFamilyIndex, UInt32* presentableFamilyIndex, UInt32* transferFamilyIndex)
|
||||
{
|
||||
Nz::ErrorFlags errFlags(ErrorFlag_ThrowException, true);
|
||||
Nz::ErrorFlags errFlags(ErrorMode::ThrowException, true);
|
||||
|
||||
// Find a queue that supports graphics operations
|
||||
UInt32 graphicsQueueNodeIndex = UINT32_MAX;
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace Nz
|
||||
// Load all device-related functions
|
||||
try
|
||||
{
|
||||
ErrorFlags flags(ErrorFlag_ThrowException, true);
|
||||
ErrorFlags flags(ErrorMode::ThrowException, true);
|
||||
|
||||
UInt32 deviceVersion = deviceInfo.properties.apiVersion;
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ namespace Nz
|
||||
// And now load everything
|
||||
try
|
||||
{
|
||||
ErrorFlags flags(ErrorFlag_ThrowException, true);
|
||||
ErrorFlags flags(ErrorMode::ThrowException, true);
|
||||
|
||||
#define NAZARA_VULKANRENDERER_INSTANCE_EXT_BEGIN(ext) if (IsExtensionLoaded(#ext)) {
|
||||
#define NAZARA_VULKANRENDERER_INSTANCE_EXT_END() }
|
||||
|
||||
@@ -99,7 +99,7 @@ namespace Nz
|
||||
#define NAZARA_VULKANRENDERER_LOAD_GLOBAL(func) func = reinterpret_cast<PFN_##func>(GetProcAddr(#func))
|
||||
try
|
||||
{
|
||||
ErrorFlags flags(ErrorFlag_ThrowException, true);
|
||||
ErrorFlags flags(ErrorMode::ThrowException, true);
|
||||
|
||||
#define NAZARA_VULKANRENDERER_GLOBAL_FUNCTION(func) func = reinterpret_cast<PFN_##func>(GetProcAddr(#func, false));
|
||||
#define NAZARA_VULKANRENDERER_GLOBAL_FUNCTION_OPT(func) func = reinterpret_cast<PFN_##func>(GetProcAddr(#func, true));
|
||||
|
||||
Reference in New Issue
Block a user