Skip to content

Commit

Permalink
Better Vulkan version control + lower stack usage
Browse files Browse the repository at this point in the history
-Vulkan API version can be specified in CMakeLists (default 1.1). Selecting 1.0 disables half-precision tests
-Reduced stack usage of VkFFT by switching plans to heap allocation
-Improved zeropadding performance
  • Loading branch information
DTolm committed Jan 23, 2021
1 parent 1c6f9cb commit 86c46fe
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 250 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ add_executable(${PROJECT_NAME} Vulkan_FFT.cpp)
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)

find_package(Vulkan REQUIRED)
target_compile_definitions(${PROJECT_NAME} PUBLIC -DVK_API_VERSION=11)#10 - Vulkan 1.0, 11 - Vulkan 1.1, 12 - Vulkan 1.2

target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/glslang-master/glslang/Include/)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/glslang-master)

Expand Down
Loading

0 comments on commit 86c46fe

Please sign in to comment.