Cleanup in CMakeLists.txt (#1572)

This commit is contained in:
Andreas Süßenbach 2023-05-08 11:54:57 +02:00 committed by GitHub
parent d4d0ac4859
commit 40e76b7c24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
123 changed files with 100 additions and 398 deletions

View File

@ -43,6 +43,36 @@ function( vulkan_hpp__setup_platform )
endif() endif()
endfunction() endfunction()
function( vulkan_hpp__setup_vulkan_include )
set( options )
set( oneValueArgs NAME )
set( multiValueArgs )
cmake_parse_arguments( TARGET "{options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
if( VULKAN_HPP_SAMPLES_BUILD_WITH_LOCAL_VULKAN_HPP )
target_include_directories( ${TARGET_NAME} PUBLIC "${CMAKE_SOURCE_DIR}" )
target_include_directories( ${TARGET_NAME} PUBLIC "${CMAKE_SOURCE_DIR}/Vulkan-Headers/include" )
else()
target_include_directories( ${TARGET_NAME} PUBLIC "${Vulkan_INCLUDE_DIRS}" )
endif()
endfunction()
function( vulkan_hpp__setup_warning_level )
set( options )
set( oneValueArgs NAME )
set( multiValueArgs )
cmake_parse_arguments( TARGET "{options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
if( MSVC )
target_compile_options(${TARGET_NAME} PRIVATE /W4 /WX )
if( MSVC_VER GREATER_EQUAL 1910 )
target_compile_options( ${TARGET_NAME} PRIVATE /permissive- )
endif()
else()
target_compile_options( ${TARGET_NAME} PRIVATE -Wall -Wextra -pedantic -Werror )
endif()
endfunction()
function( vulkan_hpp__setup_project ) function( vulkan_hpp__setup_project )
set( options ) set( options )
set( oneValueArgs NAME ) set( oneValueArgs NAME )
@ -54,7 +84,7 @@ endfunction()
function( vulkan_hpp__setup_library ) function( vulkan_hpp__setup_library )
set( options SHARED ) set( options SHARED )
set( oneValueArgs NAME ) set( oneValueArgs FOLDER NAME )
set( multiValueArgs HEADERS SOURCES ) set( multiValueArgs HEADERS SOURCES )
cmake_parse_arguments( TARGET "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} ) cmake_parse_arguments( TARGET "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
@ -69,9 +99,12 @@ function( vulkan_hpp__setup_library )
add_library( ${TARGET_NAME} ${TARGET_SOURCES} ${TARGET_HEADERS} ) add_library( ${TARGET_NAME} ${TARGET_SOURCES} ${TARGET_HEADERS} )
endif() endif()
vulkan_hpp__setup_platform( NAME ${TARGET_NAME} ) vulkan_hpp__setup_platform( NAME ${TARGET_NAME} )
set_target_properties( ${TARGET_NAME} PROPERTIES CXX_STANDARD 11 CXX_STANDARD_REQUIRED ON ) vulkan_hpp__setup_vulkan_include( NAME ${TARGET_NAME} )
target_include_directories( ${TARGET_NAME} PUBLIC ${VulkanHeaders_INCLUDE_DIR} ) vulkan_hpp__setup_warning_level( NAME ${TARGET_NAME} )
set_target_properties( ${TARGET_NAME} PROPERTIES CXX_STANDARD 11 )
set_target_properties( ${TARGET_NAME} PROPERTIES CXX_STANDARD_REQUIRED ON )
endif() endif()
set_target_properties( ${TARGET_NAME} PROPERTIES FOLDER ${TARGET_FOLDER} )
endfunction() endfunction()
function( vulkan_hpp__setup_sample ) function( vulkan_hpp__setup_sample )
@ -80,11 +113,17 @@ function( vulkan_hpp__setup_sample )
set( multiValueArgs HEADERS INCLUDE_DIRS LIBS PCH SOURCES ) set( multiValueArgs HEADERS INCLUDE_DIRS LIBS PCH SOURCES )
cmake_parse_arguments( TARGET "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} ) cmake_parse_arguments( TARGET "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
if( NOT (VULKAN_HPP_SAMPLES_BUILD_ONLY_DYNAMIC AND VULKAN_HPP_SAMPLES_BUILD_WITH_LOCAL_VULKAN_HPP) )
find_package( Vulkan REQUIRED )
endif()
vulkan_hpp__setup_project( NAME ${TARGET_NAME} ) vulkan_hpp__setup_project( NAME ${TARGET_NAME} )
add_executable( ${TARGET_NAME} ${TARGET_HEADERS} ${TARGET_SOURCES} ) add_executable( ${TARGET_NAME} ${TARGET_HEADERS} ${TARGET_SOURCES} )
vulkan_hpp__setup_platform( NAME ${TARGET_NAME} ) vulkan_hpp__setup_platform( NAME ${TARGET_NAME} )
vulkan_hpp__setup_vulkan_include( NAME ${TARGET_NAME} )
vulkan_hpp__setup_warning_level( NAME ${TARGET_NAME} )
set_target_properties( ${TARGET_NAME} PROPERTIES CXX_STANDARD 11 CXX_STANDARD_REQUIRED ON ) set_target_properties( ${TARGET_NAME} PROPERTIES CXX_STANDARD 11 CXX_STANDARD_REQUIRED ON )
@ -92,7 +131,6 @@ function( vulkan_hpp__setup_sample )
set_target_properties( ${TARGET_NAME} PROPERTIES FOLDER "${TARGET_FOLDER}" ) set_target_properties( ${TARGET_NAME} PROPERTIES FOLDER "${TARGET_FOLDER}" )
endif() endif()
target_include_directories( ${TARGET_NAME} PUBLIC ${VulkanHeaders_INCLUDE_DIR} )
if( TARGET_INCLUDE_DIRS ) if( TARGET_INCLUDE_DIRS )
target_include_directories( ${TARGET_NAME} PUBLIC ${TARGET_INCLUDE_DIRS} ) target_include_directories( ${TARGET_NAME} PUBLIC ${TARGET_INCLUDE_DIRS} )
endif() endif()
@ -116,7 +154,7 @@ function( vulkan_hpp__setup_sample_static )
set( multiValueArgs ) set( multiValueArgs )
cmake_parse_arguments( TARGET "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} ) cmake_parse_arguments( TARGET "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
if( NOT SAMPLES_BUILD_ONLY_DYNAMIC ) if( NOT VULKAN_HPP_SAMPLES_BUILD_ONLY_DYNAMIC )
if( NOT TARGET_NAME ) if( NOT TARGET_NAME )
message( FATAL_ERROR "NAME must be defined in vulkan_hpp__setup_sample_static" ) message( FATAL_ERROR "NAME must be defined in vulkan_hpp__setup_sample_static" )
endif() endif()
@ -183,9 +221,13 @@ endfunction()
function( vulkan_hpp__setup_test ) function( vulkan_hpp__setup_test )
set( options ) set( options )
set( oneValueArgs CXX_STANDARD NAME ) set( oneValueArgs CXX_STANDARD NAME )
set( multiValueArgs ) set( multiValueArgs LIBRARIES )
cmake_parse_arguments( TARGET "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} ) cmake_parse_arguments( TARGET "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
if( NOT (VULKAN_HPP_TESTS_BUILD_ONLY_DYNAMIC AND VULKAN_HPP_TESTS_BUILD_WITH_LOCAL_VULKAN_HPP) )
find_package( Vulkan REQUIRED )
endif()
if( NOT TARGET_NAME ) if( NOT TARGET_NAME )
message( FATAL_ERROR "NAME must be defined in vulkan_hpp__setup_test" ) message( FATAL_ERROR "NAME must be defined in vulkan_hpp__setup_test" )
endif() endif()
@ -198,9 +240,13 @@ function( vulkan_hpp__setup_test )
add_executable( ${TARGET_NAME} ${TARGET_NAME}.cpp ) add_executable( ${TARGET_NAME} ${TARGET_NAME}.cpp )
vulkan_hpp__setup_platform( NAME ${TARGET_NAME} ) vulkan_hpp__setup_platform( NAME ${TARGET_NAME} )
vulkan_hpp__setup_vulkan_include( NAME ${TARGET_NAME} )
vulkan_hpp__setup_warning_level( NAME ${TARGET_NAME} )
set_target_properties( ${TARGET_NAME} PROPERTIES CXX_STANDARD ${TARGET_CXX_STANDARD} CXX_STANDARD_REQUIRED ON ) set_target_properties( ${TARGET_NAME} PROPERTIES CXX_STANDARD ${TARGET_CXX_STANDARD} CXX_STANDARD_REQUIRED ON FOLDER "Tests" )
target_include_directories( ${TARGET_NAME} PUBLIC ${VulkanHeaders_INCLUDE_DIR} ) target_include_directories( ${TARGET_NAME} PUBLIC ${VulkanHeaders_INCLUDE_DIR} )
target_include_directories( ${TARGET_NAME} PUBLIC "${CMAKE_SOURCE_DIR}/glm" )
target_link_libraries( ${TARGET_NAME} PRIVATE utils ${TARGET_LIBRARIES} )
endfunction() endfunction()
set_property( GLOBAL PROPERTY USE_FOLDERS ON ) set_property( GLOBAL PROPERTY USE_FOLDERS ON )
@ -248,6 +294,10 @@ option( VULKAN_HPP_PRECOMPILE "Precompile vulkan.hpp and vulkan_raii.hpp for sam
option( VULKAN_HPP_RUN_GENERATOR "Run the HPP generator" OFF ) option( VULKAN_HPP_RUN_GENERATOR "Run the HPP generator" OFF )
option( VULKAN_HPP_SAMPLES_BUILD "Build samples" OFF ) option( VULKAN_HPP_SAMPLES_BUILD "Build samples" OFF )
option( VULKAN_HPP_TESTS_BUILD "Build tests" OFF ) option( VULKAN_HPP_TESTS_BUILD "Build tests" OFF )
option( VULKAN_HPP_SAMPLES_BUILD_WITH_LOCAL_VULKAN_HPP "Build with local Vulkan headers" ON )
option( VULKAN_HPP_SAMPLES_BUILD_ONLY_DYNAMIC "Build only dynamic. Required in case the Vulkan SDK is not available" OFF )
option( VULKAN_HPP_TESTS_BUILD_WITH_LOCAL_VULKAN_HPP "Build with local Vulkan headers" ON )
option( VULKAN_HPP_TESTS_BUILD_ONLY_DYNAMIC "Build only dynamic" OFF )
# look for the file vk.xml, the ultimate source of truth for vulkan, to generate the headers from # look for the file vk.xml, the ultimate source of truth for vulkan, to generate the headers from
if( NOT DEFINED VulkanRegistry_DIR ) if( NOT DEFINED VulkanRegistry_DIR )
@ -274,16 +324,9 @@ project( VulkanHppGenerator LANGUAGES CXX )
add_executable( ${PROJECT_NAME} VulkanHppGenerator.cpp VulkanHppGenerator.hpp ${TINYXML2_SOURCES} ${TINYXML2_HEADERS} ) add_executable( ${PROJECT_NAME} VulkanHppGenerator.cpp VulkanHppGenerator.hpp ${TINYXML2_SOURCES} ${TINYXML2_HEADERS} )
target_compile_definitions( ${PROJECT_NAME} PUBLIC BASE_PATH="${CMAKE_SOURCE_DIR}" VK_SPEC="${vk_spec}" ) vulkan_hpp__setup_warning_level( NAME ${PROJECT_NAME} )
if( MSVC ) target_compile_definitions( ${PROJECT_NAME} PUBLIC BASE_PATH="${CMAKE_SOURCE_DIR}" VK_SPEC="${vk_spec}" )
target_compile_options(${PROJECT_NAME} PRIVATE /W4 /WX )
if( MSVC_VER GREATER_EQUAL 1910 )
target_compile_options( ${PROJECT_NAME} PRIVATE /permissive- )
endif()
else()
target_compile_options( ${PROJECT_NAME} PRIVATE -Wall -Wextra -pedantic -Werror )
endif()
target_include_directories( ${PROJECT_NAME} PRIVATE ${VULKAN_HPP_TINYXML2_SRC_DIR} ) target_include_directories( ${PROJECT_NAME} PRIVATE ${VULKAN_HPP_TINYXML2_SRC_DIR} )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME 01_InitInstance ) vulkan_hpp__setup_sample_raii( NAME 01_InitInstance )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME 02_EnumerateDevices ) vulkan_hpp__setup_sample_raii( NAME 02_EnumerateDevices )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME 03_InitDevice ) vulkan_hpp__setup_sample_raii( NAME 03_InitDevice )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME 04_InitCommandBuffer ) vulkan_hpp__setup_sample_raii( NAME 04_InitCommandBuffer )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME 05_InitSwapchain ) vulkan_hpp__setup_sample_raii( NAME 05_InitSwapchain )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME 06_InitDepthBuffer ) vulkan_hpp__setup_sample_raii( NAME 06_InitDepthBuffer )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME 07_InitUniformBuffer ) vulkan_hpp__setup_sample_raii( NAME 07_InitUniformBuffer )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME 08_InitPipelineLayout ) vulkan_hpp__setup_sample_raii( NAME 08_InitPipelineLayout )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME 09_InitDescriptorSet ) vulkan_hpp__setup_sample_raii( NAME 09_InitDescriptorSet )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME 10_InitRenderPass ) vulkan_hpp__setup_sample_raii( NAME 10_InitRenderPass )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME 11_InitShaders ) vulkan_hpp__setup_sample_raii( NAME 11_InitShaders )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME 12_InitFrameBuffers ) vulkan_hpp__setup_sample_raii( NAME 12_InitFrameBuffers )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME 13_InitVertexBuffer ) vulkan_hpp__setup_sample_raii( NAME 13_InitVertexBuffer )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME 14_InitPipeline ) vulkan_hpp__setup_sample_raii( NAME 14_InitPipeline )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME 15_DrawCube ) vulkan_hpp__setup_sample_raii( NAME 15_DrawCube )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME 16_Vulkan_1_1 ) vulkan_hpp__setup_sample_raii( NAME 16_Vulkan_1_1 )

View File

@ -12,28 +12,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required( VERSION 3.2 )
option( SAMPLES_BUILD_WITH_LOCAL_VULKAN_HPP "Build with local Vulkan headers" ON )
option( SAMPLES_BUILD_ONLY_DYNAMIC "Build only dynamic. Required in case the Vulkan SDK is not available" OFF )
if( NOT (SAMPLES_BUILD_ONLY_DYNAMIC AND SAMPLES_BUILD_WITH_LOCAL_VULKAN_HPP) )
find_package( Vulkan REQUIRED )
endif()
if( MSVC )
add_compile_options( /W4 /WX /permissive- )
else()
add_compile_options( -Wall -Wextra -pedantic -Werror )
endif()
if( SAMPLES_BUILD_WITH_LOCAL_VULKAN_HPP )
include_directories( "${CMAKE_CURRENT_SOURCE_DIR}/.." )
include_directories( "${CMAKE_CURRENT_SOURCE_DIR}/../Vulkan-Headers/include" )
else()
include_directories( "${Vulkan_INCLUDE_DIRS}" )
endif()
add_subdirectory( utils ) add_subdirectory( utils )
add_subdirectory( 01_InitInstance ) add_subdirectory( 01_InitInstance )
add_subdirectory( 02_EnumerateDevices ) add_subdirectory( 02_EnumerateDevices )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME CopyBlitImage ) vulkan_hpp__setup_sample_raii( NAME CopyBlitImage )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME CreateDebugUtilsMessenger ) vulkan_hpp__setup_sample_raii( NAME CreateDebugUtilsMessenger )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME DebugUtilsObjectName ) vulkan_hpp__setup_sample_raii( NAME DebugUtilsObjectName )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME DrawTexturedCube ) vulkan_hpp__setup_sample_raii( NAME DrawTexturedCube )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME DynamicUniform ) vulkan_hpp__setup_sample_raii( NAME DynamicUniform )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME EnableValidationWithCallback ) vulkan_hpp__setup_sample_raii( NAME EnableValidationWithCallback )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME EnumerateDevicesAdvanced ) vulkan_hpp__setup_sample_raii( NAME EnumerateDevicesAdvanced )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME Events ) vulkan_hpp__setup_sample_raii( NAME Events )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME ImmutableSampler ) vulkan_hpp__setup_sample_raii( NAME ImmutableSampler )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME InitTexture ) vulkan_hpp__setup_sample_raii( NAME InitTexture )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME InputAttachment ) vulkan_hpp__setup_sample_raii( NAME InputAttachment )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME InstanceExtensionProperties ) vulkan_hpp__setup_sample_raii( NAME InstanceExtensionProperties )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME InstanceLayerExtensionProperties ) vulkan_hpp__setup_sample_raii( NAME InstanceLayerExtensionProperties )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME InstanceLayerProperties ) vulkan_hpp__setup_sample_raii( NAME InstanceLayerProperties )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME InstanceVersion ) vulkan_hpp__setup_sample_raii( NAME InstanceVersion )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME MultipleSets ) vulkan_hpp__setup_sample_raii( NAME MultipleSets )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME OcclusionQuery ) vulkan_hpp__setup_sample_raii( NAME OcclusionQuery )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME PhysicalDeviceExtensions ) vulkan_hpp__setup_sample_raii( NAME PhysicalDeviceExtensions )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME PhysicalDeviceFeatures ) vulkan_hpp__setup_sample_raii( NAME PhysicalDeviceFeatures )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME PhysicalDeviceGroups ) vulkan_hpp__setup_sample_raii( NAME PhysicalDeviceGroups )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME PhysicalDeviceMemoryProperties ) vulkan_hpp__setup_sample_raii( NAME PhysicalDeviceMemoryProperties )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME PhysicalDeviceProperties ) vulkan_hpp__setup_sample_raii( NAME PhysicalDeviceProperties )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME PhysicalDeviceQueueFamilyProperties ) vulkan_hpp__setup_sample_raii( NAME PhysicalDeviceQueueFamilyProperties )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME PipelineCache ) vulkan_hpp__setup_sample_raii( NAME PipelineCache )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME PipelineDerivative ) vulkan_hpp__setup_sample_raii( NAME PipelineDerivative )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME PushConstants ) vulkan_hpp__setup_sample_raii( NAME PushConstants )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME PushDescriptors ) vulkan_hpp__setup_sample_raii( NAME PushDescriptors )

View File

@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( vulkan_hpp__setup_sample_raii(
NAME RayTracing NAME RayTracing
INCLUDE_DIRS INCLUDE_DIRS

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME SecondaryCommandBuffer ) vulkan_hpp__setup_sample_raii( NAME SecondaryCommandBuffer )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME SeparateImageSampler ) vulkan_hpp__setup_sample_raii( NAME SeparateImageSampler )

View File

@ -12,11 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
# Win32 exclusive vk::SurfaceCapabilitiesFullScreenExclusiveEXT is used # Win32 exclusive vk::SurfaceCapabilitiesFullScreenExclusiveEXT is used
if(WIN32) if(WIN32)
vulkan_hpp__setup_sample_raii( NAME SurfaceCapabilities ) vulkan_hpp__setup_sample_raii( NAME SurfaceCapabilities )
endif() endif()

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME SurfaceFormats ) vulkan_hpp__setup_sample_raii( NAME SurfaceFormats )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME Template ) vulkan_hpp__setup_sample_raii( NAME Template )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_raii( NAME TexelBuffer ) vulkan_hpp__setup_sample_raii( NAME TexelBuffer )

View File

@ -12,9 +12,10 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required( VERSION 3.2 ) vulkan_hpp__setup_library(
NAME RAII_utils
vulkan_hpp__setup_library( NAME RAII_utils HEADERS shaders.hpp utils.hpp ) HEADERS shaders.hpp utils.hpp
FOLDER "RAII_Samples" )
target_link_libraries( RAII_utils INTERFACE utils ) target_link_libraries( RAII_utils INTERFACE utils )
target_compile_definitions( RAII_utils INTERFACE VULKAN_HPP_DISPATCH_LOADER_DYNAMIC=1 ) target_compile_definitions( RAII_utils INTERFACE VULKAN_HPP_DISPATCH_LOADER_DYNAMIC=1 )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_static( NAME 01_InitInstance ) vulkan_hpp__setup_sample_static( NAME 01_InitInstance )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME 02_EnumerateDevices ) vulkan_hpp__setup_sample_dynamic( NAME 02_EnumerateDevices )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME 03_InitDevice ) vulkan_hpp__setup_sample_dynamic( NAME 03_InitDevice )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME 04_InitCommandBuffer ) vulkan_hpp__setup_sample_dynamic( NAME 04_InitCommandBuffer )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME 05_InitSwapchain ) vulkan_hpp__setup_sample_dynamic( NAME 05_InitSwapchain )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME 06_InitDepthBuffer ) vulkan_hpp__setup_sample_dynamic( NAME 06_InitDepthBuffer )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME 07_InitUniformBuffer ) vulkan_hpp__setup_sample_dynamic( NAME 07_InitUniformBuffer )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME 08_InitPipelineLayout ) vulkan_hpp__setup_sample_dynamic( NAME 08_InitPipelineLayout )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME 09_InitDescriptorSet ) vulkan_hpp__setup_sample_dynamic( NAME 09_InitDescriptorSet )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME 10_InitRenderPass ) vulkan_hpp__setup_sample_dynamic( NAME 10_InitRenderPass )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME 11_InitShaders ) vulkan_hpp__setup_sample_dynamic( NAME 11_InitShaders )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME 12_InitFrameBuffers ) vulkan_hpp__setup_sample_dynamic( NAME 12_InitFrameBuffers )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME 13_InitVertexBuffer ) vulkan_hpp__setup_sample_dynamic( NAME 13_InitVertexBuffer )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME 14_InitPipeline ) vulkan_hpp__setup_sample_dynamic( NAME 14_InitPipeline )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME 15_DrawCube ) vulkan_hpp__setup_sample_dynamic( NAME 15_DrawCube )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME 16_Vulkan_1_1 ) vulkan_hpp__setup_sample_dynamic( NAME 16_Vulkan_1_1 )

View File

@ -12,28 +12,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required( VERSION 3.2 )
option( SAMPLES_BUILD_WITH_LOCAL_VULKAN_HPP "Build with local Vulkan headers" ON )
option( SAMPLES_BUILD_ONLY_DYNAMIC "Build only dynamic. Required in case the Vulkan SDK is not available" OFF )
if( NOT (SAMPLES_BUILD_ONLY_DYNAMIC AND SAMPLES_BUILD_WITH_LOCAL_VULKAN_HPP) )
find_package( Vulkan REQUIRED )
endif()
if( MSVC )
add_compile_options( /W4 /WX /permissive- )
else()
add_compile_options( -Wall -Wextra -pedantic -Werror )
endif()
if( SAMPLES_BUILD_WITH_LOCAL_VULKAN_HPP )
include_directories( "${CMAKE_CURRENT_SOURCE_DIR}/.." )
include_directories( "${CMAKE_CURRENT_SOURCE_DIR}/../Vulkan-Headers/include" )
else()
include_directories( "${Vulkan_INCLUDE_DIRS}" )
endif()
add_subdirectory( utils ) add_subdirectory( utils )
add_subdirectory( 01_InitInstance ) add_subdirectory( 01_InitInstance )
add_subdirectory( 02_EnumerateDevices ) add_subdirectory( 02_EnumerateDevices )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME CopyBlitImage ) vulkan_hpp__setup_sample_dynamic( NAME CopyBlitImage )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_static( NAME CreateDebugUtilsMessenger ) vulkan_hpp__setup_sample_static( NAME CreateDebugUtilsMessenger )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME DebugUtilsObjectName ) vulkan_hpp__setup_sample_dynamic( NAME DebugUtilsObjectName )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME DrawTexturedCube ) vulkan_hpp__setup_sample_dynamic( NAME DrawTexturedCube )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME DynamicUniform ) vulkan_hpp__setup_sample_dynamic( NAME DynamicUniform )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME EnableValidationWithCallback ) vulkan_hpp__setup_sample_dynamic( NAME EnableValidationWithCallback )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME EnumerateDevicesAdvanced ) vulkan_hpp__setup_sample_dynamic( NAME EnumerateDevicesAdvanced )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME Events ) vulkan_hpp__setup_sample_dynamic( NAME Events )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME ImmutableSampler ) vulkan_hpp__setup_sample_dynamic( NAME ImmutableSampler )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME InitTexture ) vulkan_hpp__setup_sample_dynamic( NAME InitTexture )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME InputAttachment ) vulkan_hpp__setup_sample_dynamic( NAME InputAttachment )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_static( NAME InstanceExtensionProperties ) vulkan_hpp__setup_sample_static( NAME InstanceExtensionProperties )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_static( NAME InstanceLayerExtensionProperties ) vulkan_hpp__setup_sample_static( NAME InstanceLayerExtensionProperties )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_static( NAME InstanceLayerProperties ) vulkan_hpp__setup_sample_static( NAME InstanceLayerProperties )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_static( NAME InstanceVersion ) vulkan_hpp__setup_sample_static( NAME InstanceVersion )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME MultipleSets ) vulkan_hpp__setup_sample_dynamic( NAME MultipleSets )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME OcclusionQuery ) vulkan_hpp__setup_sample_dynamic( NAME OcclusionQuery )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME PhysicalDeviceExtensions ) vulkan_hpp__setup_sample_dynamic( NAME PhysicalDeviceExtensions )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME PhysicalDeviceFeatures ) vulkan_hpp__setup_sample_dynamic( NAME PhysicalDeviceFeatures )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME PhysicalDeviceGroups ) vulkan_hpp__setup_sample_dynamic( NAME PhysicalDeviceGroups )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME PhysicalDeviceMemoryProperties ) vulkan_hpp__setup_sample_dynamic( NAME PhysicalDeviceMemoryProperties )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME PhysicalDeviceProperties ) vulkan_hpp__setup_sample_dynamic( NAME PhysicalDeviceProperties )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME PhysicalDeviceQueueFamilyProperties ) vulkan_hpp__setup_sample_dynamic( NAME PhysicalDeviceQueueFamilyProperties )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME PipelineCache ) vulkan_hpp__setup_sample_dynamic( NAME PipelineCache )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME PipelineDerivative ) vulkan_hpp__setup_sample_dynamic( NAME PipelineDerivative )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME PushConstants ) vulkan_hpp__setup_sample_dynamic( NAME PushConstants )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME PushDescriptors ) vulkan_hpp__setup_sample_dynamic( NAME PushDescriptors )

View File

@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( vulkan_hpp__setup_sample_dynamic(
NAME RayTracing NAME RayTracing
INCLUDE_DIRS INCLUDE_DIRS

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME SecondaryCommandBuffer ) vulkan_hpp__setup_sample_dynamic( NAME SecondaryCommandBuffer )

View File

@ -12,6 +12,4 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required(VERSION 3.2)
vulkan_hpp__setup_sample_dynamic( NAME SeparateImageSampler ) vulkan_hpp__setup_sample_dynamic( NAME SeparateImageSampler )

Some files were not shown because too many files have changed in this diff Show More