Skip to content
Back to skills

Implementing Vulkan Renderers

ASecurity

Use when writing Vulkan code for a renderer: devices and queues, memory and staging, barriers and layout transitions, descriptors, pipelines, synchronization, and the swapchain. Triggers on Vk* types, vkCmd*/vkCreate* calls, VkImageMemoryBarrier2, VkDescriptorSet, bindless, VkPipeline, dynamic rendering, timeline semaphores, fences, VkCommandPool, swapchain acquire/present, even when the user doesn't say 'Vulkan'.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
ai-agentsgoawsapi

Works with

  • api

Security analysis

A100/100

Pro scans all 12 files and shows the line behind each finding

Scanned November 30, 2026

npx -y skills add xonovex/platform --skill implementing-vulkan-renderers --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Implementing Vulkan Renderers?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Implementing Vulkan Renderers
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/xonovex-implementing-vulkan-renderers/badge)](https://www.skillsdirectory.com/skills/xonovex-implementing-vulkan-renderers)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: implementing-vulkan-renderers
description: "Use when writing Vulkan code for a renderer: devices and queues, memory and staging, barriers and layout transitions, descriptors, pipelines, synchronization, and the swapchain. Triggers on Vk* types, vkCmd*/vkCreate* calls, VkImageMemoryBarrier2, VkDescriptorSet, bindless, VkPipeline, dynamic rendering, timeline semaphores, fences, VkCommandPool, swapchain acquire/present, even when the user doesn't say 'Vulkan'."
---

# Vulkan Rendering Guidelines

The concrete Vulkan API for a low-level renderer. This skill is the Vulkan _how_; apply **designing-gpu-renderers** for the _why_ and the API-agnostic architecture (render graphs, binding model, sync model, frames-in-flight, memory strategy). For the general allocator principle behind device memory see **managing-memory**.

## Requirements

- Vulkan 1.3 (or 1.2 + the relevant extensions: `VK_KHR_synchronization2`, `VK_KHR_dynamic_rendering`, `VK_EXT_descriptor_indexing`, `VK_KHR_timeline_semaphore`).
- Validation layers + synchronization validation on in development; a frame debugger (RenderDoc-class) for capture.

## Setup

- **Device & queues** - `VkInstance` → physical device → `VkDevice`; select graphics/compute/transfer queue families, see [references/device-and-queues.md](references/device-and-queues.md)
- **Device memory** - `VkPhysicalDeviceMemoryProperties` types/heaps; few `vkAllocateMemory` + sub-allocation; staging, see [references/device-memory.md](references/device-memory.md)

## Resources & sync

- **Images/buffers & barriers** - `VkImage`/`VkBuffer` + views, `VkImageMemoryBarrier2` stage/access masks, layout transitions, see [references/resources-and-barriers.md](references/resources-and-barriers.md)
- **Synchronization** - `VkSemaphore` (binary + timeline), `VkFence`, pipeline stage/access masks, submit-time waits, see [references/synchronization.md](references/synchronization.md)

## Pipelines & binding

- **Descriptors** - `VkDescriptorSetLayout`/`Pool`/`Set`, update-after-bind for bindless, push constants, set frequency, see [references/descriptors.md](references/descriptors.md)
- **Pipelines** - `VkPipeline` (graphics/compute), `VkPipelineCache`, dynamic rendering vs render passes, dynamic state, see [references/pipelines.md](references/pipelines.md)

## Commands & present

- **Commands & swapchain** - `VkCommandPool` per thread per frame, primary/secondary buffers, `VkSwapchainKHR` acquire/present, fence per frame, see [references/commands-and-swapchain.md](references/commands-and-swapchain.md)

## Gotchas

- `vkAllocateMemory` is hard-capped (`maxMemoryAllocationCount`, often ~4096) and slow; sub-allocate from a few large blocks. The architecture rationale is in **designing-gpu-renderers**.
- A `VkImageMemoryBarrier2` that omits the layout transition, or uses `oldLayout` that does not match the image's current layout, is undefined behavior: track current layout per image/subresource.
- A `VkDescriptorSet` updated while the GPU may still read it (without `UPDATE_AFTER_BIND`) is a data race: gate on the frame `VkFence`.
- Binding a `VkPipeline` whose dynamic state you forgot to set (e.g. `vkCmdSetViewport`) draws nothing or validation-errors; declare every dynamic state you rely on.
- Ignoring `VK_ERROR_OUT_OF_DATE_KHR`/`VK_SUBOPTIMAL_KHR` from acquire/present leaves a stale swapchain after resize: recreate it.

## Progressive Disclosure

- Read [references/device-and-queues.md](references/device-and-queues.md) - Load when creating the instance/device or selecting queue families
- Read [references/device-memory.md](references/device-memory.md) - Load when allocating device memory, choosing memory types, or staging uploads
- Read [references/resources-and-barriers.md](references/resources-and-barriers.md) - Load when creating images/buffers or placing `VkImageMemoryBarrier2`/layout transitions
- Read [references/descriptors.md](references/descriptors.md) - Load when building descriptor set layouts/pools/sets, going bindless, or using push constants
- Read [references/pipelines.md](references/pipelines.md) - Load when building `VkPipeline`s, the pipeline cache, or dynamic rendering
- Read [references/synchronization.md](references/synchronization.md) - Load when using `VkSemaphore`/`VkFence`, stage/access masks, or submit-time waits
- Read [references/commands-and-swapchain.md](references/commands-and-swapchain.md) - Load when managing command pools/buffers, the swapchain, or frames-in-flight

Files in this skill

  • SKILL.md4.4 KB
  • eval-output.json3.9 KB
  • eval-trigger.json6.5 KB
  • moon.yml86 B
  • references/commands-and-swapchain.md6 KB
  • references/descriptors.md5.8 KB
  • references/device-and-queues.md3.8 KB
  • references/device-memory.md5.3 KB
  • references/pipelines.md5.9 KB
  • references/resources-and-barriers.md2.9 KB
  • references/synchronization.md4.7 KB
  • sources.json8.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.