From d066d1f13d2b3d1a1fabed953d8a8da4c4d9ebbb Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Sat, 21 Sep 2024 17:11:15 +0200 Subject: [PATCH] Vulkan: move USE_VALIDATION_LAYERS define to header --- RenderSystems/Vulkan/include/OgreVulkanRenderSystem.h | 3 +++ RenderSystems/Vulkan/src/OgreVulkanRenderSystem.cpp | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RenderSystems/Vulkan/include/OgreVulkanRenderSystem.h b/RenderSystems/Vulkan/include/OgreVulkanRenderSystem.h index c4b232eb881..c47dc58d037 100644 --- a/RenderSystems/Vulkan/include/OgreVulkanRenderSystem.h +++ b/RenderSystems/Vulkan/include/OgreVulkanRenderSystem.h @@ -47,6 +47,9 @@ namespace Ogre * Implementation of Vulkan as a rendering system. * @{ */ + + #define USE_VALIDATION_LAYERS 0 + class _OgreVulkanExport VulkanRenderSystem : public RenderSystem { friend class VulkanSampler; diff --git a/RenderSystems/Vulkan/src/OgreVulkanRenderSystem.cpp b/RenderSystems/Vulkan/src/OgreVulkanRenderSystem.cpp index bb510c94bf2..3f566e954e4 100644 --- a/RenderSystems/Vulkan/src/OgreVulkanRenderSystem.cpp +++ b/RenderSystems/Vulkan/src/OgreVulkanRenderSystem.cpp @@ -52,8 +52,6 @@ THE SOFTWARE. #include "OgreVulkanWindow.h" #include "OgrePixelFormat.h" -#define USE_VALIDATION_LAYERS 0 - namespace Ogre { static const uint32 VERTEX_ATTRIBUTE_INDEX[VES_COUNT] =