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:

There’s also some documentation at:, 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…