From e5ccf0879cece522c709d368c7c2b5c624573f57 Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Sat, 28 Aug 2021 12:13:14 +0200 Subject: [PATCH] Cleanup --- openVulkanoCpp/Data/ReadOnlyAtomicArrayQueue.hpp | 9 ++++++++- openVulkanoCpp/ExampleApps/CubesExampleApp.cpp | 9 +-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/openVulkanoCpp/Data/ReadOnlyAtomicArrayQueue.hpp b/openVulkanoCpp/Data/ReadOnlyAtomicArrayQueue.hpp index d0cdceb..68c3d1c 100644 --- a/openVulkanoCpp/Data/ReadOnlyAtomicArrayQueue.hpp +++ b/openVulkanoCpp/Data/ReadOnlyAtomicArrayQueue.hpp @@ -1,4 +1,11 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ + #pragma once + #include #include @@ -27,7 +34,7 @@ namespace openVulkanoCpp ~ReadOnlyAtomicArrayQueue() = default; - size_t GetSize() const + [[nodiscard]] size_t GetSize() const { return size.load(std::memory_order_relaxed); } diff --git a/openVulkanoCpp/ExampleApps/CubesExampleApp.cpp b/openVulkanoCpp/ExampleApps/CubesExampleApp.cpp index 646ed5b..ef8c8e3 100644 --- a/openVulkanoCpp/ExampleApps/CubesExampleApp.cpp +++ b/openVulkanoCpp/ExampleApps/CubesExampleApp.cpp @@ -36,13 +36,6 @@ class CubesExampleAppImpl final : public CubesExampleApp Shader shader; std::vector drawablesPool; std::vector nodesPool; - - InputAction* actionForward; - InputAction* actionSide; - InputAction* actionLookUp; - InputAction* actionLookSide; - - float yaw = 0, pitch = 0; Vector3f_SIMD position = {0,0,-10}; public: @@ -108,4 +101,4 @@ std::unique_ptr CubesExampleApp::Create() } #pragma clang diagnostic pop -#pragma clang diagnostic pop +#pragma clang diagnostic pop \ No newline at end of file