Any simple examples of Vulkan layers?

I’ve looked at the code for the validation layers in LunarG’s SDK, but it’s hard to understand what’s going on. Is there any code available for simple layers?

In particular, I’m trying to understand how a layer tells Vulkan about its commands before an application calls them.

The LunarG VulkanTools repo contains basic layer examples that should get you started: https://github.com/LunarG/VulkanTools/tree/master/layersvt

There’s also some documentation at: https://vulkan.lunarg.com/doc/sdk/latest/windows/LoaderAndLayerInterface.html, which can also be found as a markdown file in the loader folder of the repo Sascha mentioned.

You may find the quite recent “Vulkan Validation Layers Deep Dive” webinar useful…