Vulkan Validation Unique Identifiers (VUIDs) are the specific error codes that the validation layers emit when they find a problem. These IDs, like VUID-VkImageMemoryBarrier2-image-01199, are not just random numbers. They correspond to specific rules in the Vulkan specification.
When the sync validation layer finds a hazard, it will emit an error message that looks something like this:
VALIDATION [SYNC-HAZARD-READ-AFTER-WRITE] (0x01234567)
VUID: VUID-vkCmdDraw-None-07892
Message: Write-After-Read (WAR) hazard on Image (0x89abcdef) in VkCommandBuffer (0x12345678).
- Current Stage: VK_PIPELINE_STAGE_2_FRAGMENT_SHADER_BIT
- Current Access: VK_ACCESS_2_SHADER_READ_BIT
- Previous Stage: VK_PIPELINE_STAGE_2_COPY_BIT
- Previous Access: VK_ACCESS_2_TRANSFER_WRITE_BIT