safe_struct: Copy every pSampleMask word In 2017 (VVL GH1383) the generator read the latexmath length of pSampleMask as rasterizationSamples/32, which is 0 below 32 samples, so the copy was empty. The fix copied a single element for every length with a division. The length now comes from altlen as (rasterizationSamples + 31) / 32. pSampleMask is the only such array without custom code (pCode has its own). A 64-sample mask loses its second word, so VVL reads past the copy when it compares two words for pLibraries-06635 and reports the error at random. Copy the whole array, and put the length in parentheses since it is multiplied by the element size.
This repo was created to share code across various Vulkan repositories, solving long standing issues for Vulkan SDK developers and users.
The Vulkan-ValidationLayers contained many libraries and utilities that were useful for other Vulkan repositories, and became the primary mechanism for code sharing in the Vulkan ecosystem.
This caused the Vulkan-ValidationLayers to have to maintain and export source code which was never intended for that purpose. This not only hindered development of the Vulkan-ValidationLayers, but would frequently break anyone depending on the source code due to the poorly located nature of it. On top of numerous other issues.
This repository was created to facilitate official source deliverables that can be reliably used by developers.
The Vulkan::LayerSettings library was created to standardize layer configuration code for various SDK layer deliverables.
VK_LAYER_LUNARG_api_dump, VK_LAYER_LUNARG_screenshot and VK_LAYER_LUNARG_monitorThis is to ensure they all worked consistently with the 3 main methods of layer configuration.
For more information see layer_configuration.md.
The Vulkan::UtilityHeaders library contains header only files that provide useful functionality to developers:
vk_dispatch_table.h: Initializing instance/device dispatch tablesvk_format_utils.h: Utilities for VkFormatvk_struct_helper.hpp: Utilities for vulkan structsvk_enum_string_helper.h: Converts Vulkan enums into strings