Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinzii committed Aug 21, 2023
1 parent d3520d1 commit 28e1d27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
7 changes: 0 additions & 7 deletions editor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 3 additions & 7 deletions engine/src/graphics/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,9 @@ namespace gen
std::vector<vk::DeviceQueueCreateInfo> queueCreateInfos;
std::set<u32> 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)
Expand Down

0 comments on commit 28e1d27

Please sign in to comment.