Commit graph

12 commits

Author SHA1 Message Date
Mike Schuchardt
2feac58733 build: Update to header 1.3.272
- Update known-good
- Generate source
- Remove vk_layer_settings_ext.h
- Change all usage of VkLayerSettingEXT::count to use the new name
  valueCount from the public header.
2023-12-02 13:11:22 +01: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
unknown
6774c9b24b util: Add vk_struct_helper.hpp
Move the vk_typemap_helper.h file in Vulkan-ValidationLayers over to this
repo with a different name to reflect the use of it

Changes from that include:
 * Rename the functions to be more obvious as to what they do
 * Placing them in the `vku` namespace
 * Adding the `InitStructHelper` class which deduces the type based on the
   variable that is being initialized
 * Compiler error if there is no corresponding sType
2023-09-19 10:10:31 -06:00
unknown
c903525915 src: Add vk_format_utils.h to UtilityHeaders
The library originates from Vulkan-ValidationLayers, but is being moved
into this repo to make it easier for others to use it.

The library has also been modified to be header only and C compatible,
which allows more developers to be able to use it. This does require some
changes, but only affects the vkuFormatElementSize and vkuFormatTexelSize
functions which used default parameters. Two new functions,
vkuFormatElementSizeWithAspect and vkuFormatTexelSizeWithAspect have been
added to handle the non-default image aspect case (the default was COLOR_BIT).

Renaming was done using the following convention:
* public header files begin with `vk_`
* enums begin with VKU_FORMAT_
* functions begin with vku
2023-09-11 12:48:03 -06:00
Juan Ramos
6710b67cde Ensure all header files shipped have the vk_ prefix
CI will fail now if we ship a .h / .hpp file that doesn't use
the correct prefix.

I also documented the precedent for this prefix and the existing
integration testing.
2023-09-08 12:47:09 -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
Juan Ramos
f8b6b602c8 cmake: Fix 3.17.2 support 2023-08-23 15:41:18 -06: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
Christophe
dfe82d317c Add missing header file to the build solution 2023-07-27 08:53:56 -06:00
Juan Ramos
93ceaff579 Add REUSE to CI
Ensures proper copyright for the repo
2023-07-25 16:11:18 -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
bedbde277e cmake: Add/test find_package/add_subdirectory support 2023-04-04 12:22:15 +02:00