vulkan-memory-leak-detector

Diagnose memory leaks in Vulkan 1.3 applications using VMA and frames-in-flight patterns.

4|Updated Dec 26, 2019
One-click install
npx skills add https://github.com/Mik-pe/Katla --skill vulkan-memory-leak-detector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vulkan-memory-leak-detector
Source: https://github.com/Mik-pe/Katla/tree/main/.claude/skills/vulkan-memory-leak-detector
Command: npx skills add https://github.com/Mik-pe/Katla --skill vulkan-memory-leak-detector

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detects memory leaks in Vulkan applications by analyzing resource lifetimes, RAII wrapper usage, and cleanup paths, with emphasis on Vulkan Memory Allocator (VMA) patterns and frames-in-flight discipline.

Core Features & Use Cases

  • RAII pattern validation: Ensures resources are wrapped and dropped, preventing leaks.
  • VMA integration checks: Verifies auto memory usage, persistent mapping, and dedicated allocations for large resources.
  • Per-frame resource discipline: Recommends per-frame duplication and proper synchronization to avoid frame leaks.
  • Validation-layer leakage guidance: Provides guidelines for running validation layers to surface leaks during development.
  • Hot-reload-safe cleanup: Ensures old resources are cleaned up when pipelines or shaders hot-reload.

Quick Start

Run a quick leak analysis on your Vulkan project to identify unfreed resources and missing Drop implementations.

Frequently Asked Questions about vulkan-memory-leak-detector

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect Vulkan memory leaks in my project?

Detect Vulkan memory leaks by analyzing resource lifetimes, RAII wrapper usage, and cleanup paths. This process verifies per-resource lifetime checks and validation-layer leak detection guidelines to surface unfreed allocations during development.

Why does my Vulkan application leak memory when using frames-in-flight?

Vulkan applications leak memory during frames-in-flight execution when per-frame resource discipline is lacking. Enforcing per-frame resource duplication and proper synchronization prevents frame leaks caused by overlapping command buffer submissions.

How to fix Vulkan memory allocator leaks with VMA integration?

Fix Vulkan Memory Allocator (VMA) leaks by verifying auto memory usage, persistent mapping, and dedicated allocations for large resources. Proper VMA integration checks ensure allocation pools are destroyed correctly during cleanup.

Do I need RAII Drop implementations to prevent Vulkan resource leaks?

RAII Drop implementations are required to prevent Vulkan resource leaks by ensuring resources are wrapped and dropped automatically. RAII pattern validation confirms that memory handles are freed when objects leave scope.

Does this leak detection approach work with hot-reload workflows?

This leak detection approach works with hot-reload workflows by enforcing hot-reload-safe cleanup. It ensures old pipeline and shader resources are properly destroyed when new ones are loaded during runtime.

What is the best way to find missing cleanup paths in Vulkan 1.3 codebases?

The best way to find missing cleanup paths in Vulkan 1.3 codebases is running validation layers alongside RAII pattern validation. This combination surfaces unfreed resources and identifies missing Drop implementations across codebases.