From d02d3d8fed66fcdb701a69943ec7a13371805b5d Mon Sep 17 00:00:00 2001 From: Pavel Turapin Date: Sat, 31 Jan 2026 15:52:36 +0400 Subject: [PATCH 1/2] add .qtcreator folder to gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 06da48daac..30fdbf363c 100644 --- a/.gitignore +++ b/.gitignore @@ -84,3 +84,6 @@ DerivedData/ include/glslang src/vsg/CHANGES.md +#Qt Creator +.qtcreator/ + From ddbe81a989c2812802f33b25a310d8654b3cfa8e Mon Sep 17 00:00:00 2001 From: Pavel Turapin Date: Sat, 31 Jan 2026 15:55:18 +0400 Subject: [PATCH 2/2] set vulkan window clear color through window traits --- include/vsg/app/WindowTraits.h | 2 ++ src/vsg/app/Window.cpp | 2 +- src/vsg/app/WindowTraits.cpp | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/vsg/app/WindowTraits.h b/include/vsg/app/WindowTraits.h index 155a3a41be..d9a75cceac 100644 --- a/include/vsg/app/WindowTraits.h +++ b/include/vsg/app/WindowTraits.h @@ -98,6 +98,8 @@ namespace vsg std::any nativeWindow; std::any systemConnection; + vec4 clearColor{0.2f, 0.2f, 0.4f, 1.0f}; + protected: virtual ~WindowTraits() {} }; diff --git a/src/vsg/app/Window.cpp b/src/vsg/app/Window.cpp index 932236e7eb..e0882f7360 100644 --- a/src/vsg/app/Window.cpp +++ b/src/vsg/app/Window.cpp @@ -36,7 +36,7 @@ ref_ptr Window::create(vsg::ref_ptr) Window::Window(ref_ptr traits) : _traits(traits), _extent2D{std::numeric_limits::max(), std::numeric_limits::max()}, - _clearColor{0.2f, 0.2f, 0.4f, 1.0f}, + _clearColor{traits->clearColor}, _framebufferSamples(VK_SAMPLE_COUNT_1_BIT) { if (_traits && (_traits->swapchainPreferences.surfaceFormat.format == VK_FORMAT_B8G8R8A8_SRGB || _traits->swapchainPreferences.surfaceFormat.format == VK_FORMAT_B8G8R8_SRGB)) diff --git a/src/vsg/app/WindowTraits.cpp b/src/vsg/app/WindowTraits.cpp index f0ff9ca9b1..32853e1f78 100644 --- a/src/vsg/app/WindowTraits.cpp +++ b/src/vsg/app/WindowTraits.cpp @@ -97,7 +97,8 @@ WindowTraits::WindowTraits(const WindowTraits& traits, const CopyOp& copyop) : deviceExtensionNames(traits.deviceExtensionNames), deviceTypePreferences(traits.deviceTypePreferences), deviceFeatures(traits.deviceFeatures), - samples(traits.samples) /*, + samples(traits.samples), + clearColor(traits.clearColor) /*, nativeWindow(traits.nativeWindow), systemConnection(traits.systemConnection)*/ {