Commit graph

10 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
599d028f96 gn: Add stub file to ensure header only files are checked 2023-09-21 10:42:16 -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
Mike Schuchardt
21bebf6af1 build: Add header dependency to GN build 2023-08-30 10:36:20 -07:00
Juan Ramos
1d30c156cd Fix gn build
You must specify header files in a GN build
2023-08-25 10:43:28 -06:00
Mike Schuchardt
d05c872b51 build: Move include dir to public config
... so that it propagates
2023-08-21 13:22:05 -07:00
Mike Schuchardt
79d5fb108b Get GN build working
- Static library
- Add overrides, not necessary yet but it will be when other parts of
  this repo wants to find Vulkan-Headers
- Remove unused dependency on Vulkan-Headers from the settings library
- Remove unreachable return flagged by clang
2023-08-09 22:19:20 +02:00
Christophe
bfe446bf18 Add GN build system 2023-08-09 22:19:20 +02:00