Refactor the CMakeLists for all the samples; use vulkan.hpp/vulkan_raii.hpp as precompiled header.
This commit is contained in:
@@ -14,26 +14,4 @@
|
||||
|
||||
cmake_minimum_required(VERSION 3.2)
|
||||
|
||||
if(NOT SAMPLES_BUILD_ONLY_DYNAMIC)
|
||||
|
||||
project(InstanceLayerExtensionProperties)
|
||||
|
||||
set(HEADERS
|
||||
)
|
||||
|
||||
set(SOURCES
|
||||
InstanceLayerExtensionProperties.cpp
|
||||
)
|
||||
|
||||
source_group(headers FILES ${HEADERS})
|
||||
source_group(sources FILES ${SOURCES})
|
||||
|
||||
add_executable(InstanceLayerExtensionProperties
|
||||
${HEADERS}
|
||||
${SOURCES}
|
||||
)
|
||||
|
||||
set_target_properties(InstanceLayerExtensionProperties PROPERTIES FOLDER "Samples")
|
||||
target_link_libraries(InstanceLayerExtensionProperties PRIVATE utils)
|
||||
|
||||
endif()
|
||||
vulkan_hpp__setup_sample_static( NAME InstanceLayerExtensionProperties )
|
||||
|
||||
@@ -15,17 +15,17 @@
|
||||
// VulkanHpp Samples : InstanceLayerExtensionProperties
|
||||
// Get list of global layers and their associated extensions, if any.
|
||||
|
||||
#include "vulkan/vulkan.hpp"
|
||||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
#include <vulkan/vulkan.hpp>
|
||||
|
||||
struct PropertyData
|
||||
{
|
||||
PropertyData( vk::LayerProperties const & layerProperties_, std::vector<vk::ExtensionProperties> const & extensionProperties_ )
|
||||
: layerProperties( layerProperties_ ), extensionProperties( extensionProperties_ )
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
vk::LayerProperties layerProperties;
|
||||
std::vector<vk::ExtensionProperties> extensionProperties;
|
||||
|
||||
Reference in New Issue
Block a user