From 28e1d270b5e02257edf354507a1be9573de59fa4 Mon Sep 17 00:00:00 2001 From: ian Date: Mon, 21 Aug 2023 07:09:09 -0400 Subject: [PATCH] cleanup --- editor/CMakeLists.txt | 7 ------- engine/src/graphics/device.cpp | 10 +++------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/editor/CMakeLists.txt b/editor/CMakeLists.txt index 4fc2eb4..7af1b8e 100644 --- a/editor/CMakeLists.txt +++ b/editor/CMakeLists.txt @@ -47,13 +47,6 @@ endif() set(SOURCE_DIR "${CMAKE_SOURCE_DIR}/editor/bin") set(DEST_DIR "${CMAKE_CURRENT_BINARY_DIR}/bin") -# Get a list of all .spv files in the source directory -file(GLOB SPV_FILES "${SOURCE_DIR}/*.spv") - -# This target does the following: -# - Create the destination directory if it does not exist -# - Remove all .spv files from the destination directory if they exist. -# - Copy all .spv files from the source directory to the destination directory add_custom_command( TARGET genesis-editor PRE_BUILD diff --git a/engine/src/graphics/device.cpp b/engine/src/graphics/device.cpp index e28bfcc..f637440 100644 --- a/engine/src/graphics/device.cpp +++ b/engine/src/graphics/device.cpp @@ -142,13 +142,9 @@ namespace gen std::vector queueCreateInfos; std::set const uniqueQueueFamilies = {m_gpu.queueFamily}; - auto enabledFeatures = vk::PhysicalDeviceFeatures{}; - auto availableFeatures = m_gpu.physicalDevice.getFeatures(); - enabledFeatures.fillModeNonSolid = availableFeatures.fillModeNonSolid; - enabledFeatures.wideLines = availableFeatures.wideLines; - enabledFeatures.samplerAnisotropy = availableFeatures.samplerAnisotropy; - enabledFeatures.sampleRateShading = availableFeatures.sampleRateShading; - enabledFeatures.logicOp = availableFeatures.logicOp; + auto enabledFeatures = vk::PhysicalDeviceFeatures{}; + auto availableFeatures = m_gpu.physicalDevice.getFeatures(); + enabledFeatures.logicOp = availableFeatures.logicOp; float const queuePriority = 1.0F; for (u32 const queueFamily : uniqueQueueFamilies)