Commit graph

20 commits

Author SHA1 Message Date
Daniel Rakos
c566e8f5b2 build: Make find_package logic more robust 2023-12-11 09:21:24 -07:00
Juan Ramos
640fcfeb4c cmake: Improve packaging
VulkanUtilityLibrariesConfig.cmake will now find VulkanHeaders
for the user.
2023-11-29 19:28:55 -07:00
Juan Ramos
678ce607a0 ci: Add clang-format to CI
This also removes the extra .clang-format in the include directory

closes #78
2023-11-10 14:36:43 -07:00
Juan Ramos
68934bd208 cmake: Don't install .clang-format
closes #136
2023-10-10 10:15:23 -06:00
Daniel Rakos
859486391c build: API parameterization 2023-10-05 10:45:51 -06:00
Juan Ramos
4642e14f71 cmake: Export library to standardize compiler/linker options
Also fixes issue where compiler warnings weren't being applied
to Vulkan::LayerSettings

closes #106
2023-09-21 15:58:50 -06:00
Christophe
a3235b3e7f cmake: Add a function to setup all build targets with the same strictness 2023-09-07 19:23:55 +02:00
Charles Giessen
2bd0e0d438 util: Fixup and add Dispatch Table header
Fixes the vk_layer_dispatch_table.h header file so that they can be used
in other projects. The contents of this header and
 vk_dispatch_table_helper.h have been moved into a new header
 vul_dispatch_table.h.

The structs VulDeviceDispatchTable and VulInstanceDispatchTable
struct contain function pointers for the device and instance, respectively.

The functions vul_init_device_dispatch_table and
vul_init_instance_dispatch_table fill out the aforementioned structs,
making the task of setting up the disptach table in a layer much simpler.
2023-08-23 15:07:01 -06:00
Juan Ramos
93ceaff579 Add REUSE to CI
Ensures proper copyright for the repo
2023-07-25 16:11:18 -06:00
Juan Ramos
70bbd3c8ac Remove improper mention of Vulkan-Profiles 2023-07-25 12:31:43 -06:00
Christophe
471366378c layer: Fix vlGetLayerSettingValue string version 2023-07-10 19:43:37 +02:00
Juan Ramos
8d23122189 cmake: Cleanup CMake
Pulling in latest changes from VVL

Use BUILD_TESTS instead of VUL_TESTS. While it's good practice to
prefix variable names it makes updating this code more difficult.
Also since tests can only ever be enabled if the project is top
level, it doesn't affect add_subdirectory users.

Other misc. CMake cleanup
2023-06-20 16:12:03 -06:00
Christophe
24f42ab5c9 layer: add layer settings library and tests
The library allows loading layer setting from vk_layer_settings.txt and
VK_EXT_layer_settings vulkan extensions
2023-05-12 15:06:40 +02:00
Juan Ramos
f82ff63838 build: Add -Wall & -Wextra 2023-04-05 11:58:14 +02:00
Juan Ramos
bedbde277e cmake: Add/test find_package/add_subdirectory support 2023-04-04 12:22:15 +02:00
Juan Ramos
280a68ef17 cmake: Use VUL_ prefix for cache variables
Allows build options specific to Vulkan-Utility-Libraries to be
easily grouped via cmake-gui.

This approach is also nicer for users who consume the library via
add_subdirectory or FetchContent since it more obvious what
settings are being ovverriden.

Remove UTILITY_LIBRARIES_CPP_STANDARD since we don't have a
reason to support multiple CPP standards.

Set testing to OFF by default to make consuming the library easier
for users and package managers.
2023-03-30 12:44:36 +02:00
Christophe
a9f8e329dd cmake: modernize the library build 2023-03-29 11:25:26 -06:00
Christophe
70fb7ab7da cmake: cleanup 2023-03-29 11:25:26 -06:00
Christophe
a41380f9fb Initial cmake to build the LayerUtils lib and tests 2023-03-23 14:28:39 +01:00
Christophe
06e1602d67 Add initial common files 2023-03-22 16:36:06 +01:00