Skip to content

Diyou/VkLayerTemplate

Repository files navigation

C++ Vulkan Layer Template

Minimal Vulkan Layer c++ code with vscode support for beginning and debugging.

How-to

  • Configure & Build using CMakePresets
    • VSCode: Use CMake Tools UI
    • CLI:
      cmake --preset=debug && cmake --build --preset=debug
  • Debug
    • VSCode: [F5] Or manually launch the configuration (launch.json)
    • CLI: From the output directory Load the debug.env file and start Launcher with an argument like:
      • bash
        export $(grep -v '^#' debug.env | xargs) && Launcher/Launcher vkgears
      • powershell
        Get-Content debug.env | Where-Object { $_ -notmatch '^\s*#' -and $_ -notmatch '^\s*$' } | ForEach-Object { $k, $v = $_.Split('=', 2); [System.Environment]::SetEnvironmentVariable($k, $v) }; .\Launcher\Launcher.exe vkgears.exe

About

Minimal c++ Vulkan Layer template

Topics

Resources

License

Stars

Watchers

Forks