Textured triangle using Vulkan
Showcases Vulkan descriptor sets and SPIR-V assembly.
This example has output similar to the OpenGL Textured Quad example, but uses Vulkan instead, building on top of Triangle using Vulkan. In addition there's a texture and descriptor layout / set / pool setup and sampling in the SPIR-V shader assembly.
Source
Full source code is linked below and together with assets also available in the magnum-examples GitHub repository. This example depends on the Trade, ShaderTools and Vk libraries and in addition needs the StbImageImporter, AnyImageConverter plugins and some PngImageConverter
implementation – see File format support. Not all are enabled by default in most cases, see their documentation for usage instructions.