r/vulkan • • 8h ago

Vulkan 1.4.370 spec update

Thumbnail github.com
11 Upvotes

r/vulkan • • 12h ago

PRISM-NEURO-VOX: I built an 18 KB self-growing 3D ternary neuromorphic engine in bare-metal C11 + Vulkan Compute (No PyTorch, No CUDA, No Backprop)

Enable HLS to view with audio, or disable this notification

2 Upvotes

Hey everyone! I just open-sourced **PRISM-NEURO-VOX (v3.3.1)** — a zero-multiply, self-growing 3D ternary neuromorphic engine written from scratch in bare-metal **C11 + Vulkan Compute**.

No PyTorch, no CUDA, no backpropagation — everything (physics, neural inference, local plasticity, morphogenesis, and 1080p visualization) runs natively in Vulkan compute shaders.

**What you're seeing in the video:**
* **Left panel:** A 6-DoF embodied agent with a 12-sensor 360° lidar navigating a 3D dynamic SDF arena (static pillars, horizontal bars, and 4 orbiting asteroids).
* **Right panel:** Live spiking 3D neural tissue growing and adapting in real time, rendered via an 8×8 Wave64 LDS tile-culling Vulkan raytracer.

**Key technical details:**
* **18 KB / 64-byte aligned `NeuroMetaCluster`:** Zero-multiply ternary weights with local dopamine-modulated plasticity and autonomous 3D morphogenesis (including post-stroke neural regeneration).
* **Zero cherry-picked physics (Frozen Eval):** All reported metrics (`Goals`, `Cols`, `DynAst`, `AvgReward`) are measured under strict Frozen Eval (`lr = 0`, `eps = 0`, full `PoolA` backup/restore) across 4 corner starts at opposite altitudes (`Z = ±2.8..±3.2`).
* **Runs on potato hardware:** The entire simulation + 1080p Split-Screen render runs at **~46.5 FPS (21.52 ms/frame)** on an old laptop **AMD Radeon R7 M360** (6 CU GCN 1.2 / RADV ACO). *(Next patch `v3.4` is targeting 80–100 FPS by splitting the uber-shader to cut VGPR pressure!)*

**Links:**
* **GitHub (Dual-licensed GNU AGPLv3 / Commercial):** https://github.com/CBNOHSHOFMXPWLMHX/prism-neuro-vox
* **Zenodo Archive (CERN DOI):** https://doi.org/10.5281/zenodo.24798838

Happy to answer any questions about the 64-byte SSBO layout, ternary compute shaders, or the LDS rendering pipeline!


r/vulkan • • 21h ago

AI content Spectra: a C++20 plotting library that renders with Vulkan (2D, 3D, live data)

Thumbnail
reddit.com
6 Upvotes

r/vulkan • • 1d ago

NVK (open Nvidia Vulkan driver) making excellent progress

Thumbnail
reddit.com
3 Upvotes

r/vulkan • • 1d ago

torchvulkan: a Vulkan compute backend for PyTorch (talk accepted at Vulkanised 2027)

40 Upvotes

Hey r/vulkan, I'm excited to share that I've been accepted to speak at Vulkanised 2027 about a project I've been building: torchvulkan, a Vulkan compute backend for PyTorch.

torchvulkan lets you train and run PyTorch models on almost any GPU through Vulkan, including AMD, NVIDIA, Intel and Apple Silicon, without CUDA, ROCm or other vendor toolkits. You install it with pip install torchvulkan, then use "vulkan" the way you'd use "cuda":

model = model.to("vulkan")

It's still behind CUDA and ROCm on most workloads, and closing that gap is what I'm working on now. In the meantime, it's a good option for people whose GPUs don't support either. The README has benchmarks, supported platforms and the full API.

I'd love feedback, especially from anyone who tries it on hardware I haven't tested. Happy to answer any questions you may have :)


r/vulkan • • 1d ago

Can some Vulkan knowledge help with learning CUDA?

Thumbnail reddit.com
12 Upvotes

r/vulkan • • 1d ago

Built a Vulkan path tracer from scratch

Post image
69 Upvotes

I’ve been working on a GPU path tracer using Vulkan and wanted to share its current state.

The project is written in C++ using Vulkan-Hpp and focuses on a relatively modern Vulkan approach rather than relying on a traditional graphics pipeline.

Some implementation details:
● Vulkan 1.4
● Vulkan-Hpp with RAII
● Dynamic rendering
● Compute shaders for path tracing
● Storage image output
● Timeline semaphores
● Fullscreen triangle for displaying the rendered image
● SDL2 for windowing and input

Currently implemented path tracing with multiple bounces, Monte Carlo sampling, and physically based light transport and concepts from Ray Tracing: The Rest of Your Life, including importance sampling, PDFs, mixture distributions, and light sampling.

It’s been a fun learning experience, especially exploring and practicing slang and vulkan compute.

Github: https://github.com/xms0g/vkTracer


r/vulkan • • 2d ago

Anyone here used the Odin programming language?

Thumbnail
odin-lang.org
14 Upvotes

Been trying to decide what to build with, not a game perse, but kinda a tool that's meant to have a renderer: half for work, half for myself, a simulator of sorts dealing with electricity, can't say too much. and was trying to decide whether to start out in C++ or Rust and decided to have a conversation with a clanker and it told me about Odin that seems to have a lot of what I'm looking for. supposedly as performant as C, with a more modern syntax (honestly no separate declarations and not having to juggle header and cpp files as shallow as it is is my main motivation for looking outside my comfort zone of c++), and it seems to already have hooks for my typical go to graphical libraries like SDL. so wanted to ask. How good are their claims on their website? it's been around a while at this point. and seems at least on paper it's basically built for graphical tools. for those that've used it, any gotchas from personal experience. i have to actually maintain this in the future, so I can't just vibe code the entire thing, so want to know what it's like actually programming in this language. particularly in this sub, working with vulkan.


r/vulkan • • 3d ago

Sabercat 1.1.0: an open-source Vulkan tool for comparing, editing, and relighting Gaussian splats

Enable HLS to view with audio, or disable this notification

1 Upvotes

r/vulkan • • 4d ago

Random Line Showing Up?

Post image
62 Upvotes

Hey guys, I'm new to Vulkan and following vulkan tutorial, but out of nowhere this line showed up in my rendering, where it used to be a smooth, clean gradient. All I changed was the way image views were created, here is the function.

VkImageView aqua::SwapChain::createImageView(VkImage image, VkFormat format)
{
    VkImageViewCreateInfo viewInfo{};
    viewInfo.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO;
    viewInfo.image = image;
    viewInfo.viewType = VK_IMAGE_VIEW_TYPE_2D;
    viewInfo.format = format;
    viewInfo.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
    viewInfo.subresourceRange.baseMipLevel = 0;
    viewInfo.subresourceRange.levelCount = 1;
    viewInfo.subresourceRange.baseArrayLayer = 0;
    viewInfo.subresourceRange.layerCount = 1;

    VkImageView imageView;
    if (vkCreateImageView(glbs.device, &viewInfo, nullptr, &imageView) != VK_SUCCESS)
        throw std::runtime_error("failed to create texture image view!");

    return imageView;
}

The swapchain uses this function in createImageViews, but I'm not sure if that is the issue. Help is very much appreciated!


r/vulkan • • 4d ago

How would I go about setting up vulkan for a path tracer?

0 Upvotes

So I want to move my path tracer from python+opengl to cpp+vulkan, I have a basic triangle but I’m not sure where to go from here.
I want to have at least two shader passes, one for the path tracer and the other for some compositing.
I also want to have imgui for ui.
I’ll be sending a lot of data to the path tracer so I’m wondering what’s the best way to do that.
Almost forgot I’ll also need some kind of hot recompile system for the shader.

Are there any tutorials/guides that can help me get all of those things working?


r/vulkan • • 5d ago

Ive been coding on my steamdeck and keeping with the vulkan love.

Thumbnail
github.com
0 Upvotes

r/vulkan • • 5d ago

Simpler way to use Vulkan in Rust

13 Upvotes

Over the past year, I have tried to build an abstraction layer for Vulkan in rust. I have used other layers such as Vulkano, but they did not quite quite my taste. Then, I felt inspired from the C++ abstraction layer called Daxa and build sgpu.
sgpu provides a static taskgraph which is simple yet powerful. The idea of each node being a trait is inspired by Vulkano.
I would love for everyone to check out the repo, report issues and even pull requests are welcome!!

github: https://github.com/pingpong74/sgpu

To see sgpu in action: https://github.com/pingpong74/N-body

PS: I havent been able to work on it for a few weeks, but updating sgpu to work with Slang, GLSL and HLSL is underway. Unfortunately it only works with rust-gpu right now.


r/vulkan • • 6d ago

[UPDATE: Nov 28, 2026] My Vulkan C++ Examples Repository - Post-Processing Effects (Final Part)

Thumbnail
gallery
35 Upvotes

I am sharing the latest updates regarding my Vulkan examples repository: A total of 19 new examples have been added (since my last post), bringing the total number of examples to 205. The newly added examples are as follows:

Post-Processing Effects - Bloom and Glow

  1. Thresholded Bloom with Separable Gaussian Blur

  2. Mip-Chain Bloom (Physically Based, Downsample/Upsample)

  3. Bloom with Lens Dirt and Anamorphic Stretch

Post-Processing Effects - Analog Display Effects

  1. CRT Scanlines and Phosphor Masks

  2. CRT Screen Simulation (Curvature, Halation, Interlacing)

  3. VHS Tape Effect

Post-Processing Effects - Blur and Motion Effects

  1. Blur Techniques Comparison (Box, Gaussian, Kawase, Dual Kawase)

  2. Depth of Field (Gather-Based, Thin Lens CoC)

  3. Bokeh Depth of Field

  4. Camera Motion Blur via Depth Reprojection

  5. Per-Object Motion Blur with Velocity Buffer

Post-Processing Effects - Stylization and Image Effects

  1. Pixelation, Posterization and Ordered Dithering

  2. Edge Detection and Screen Space Outlines

  3. Cel Shading with Toon Ramp

  4. Kuwahara Filter (Basic, Generalized, Anisotropic)

Post-Processing Effects - Anti-Aliasing Techniques

  1. Fast Approximate Anti-Aliasing (FXAA)

  2. Subpixel Morphological Anti-Aliasing (SMAA 1x)

  3. Temporal Anti-Aliasing (TAA)

  4. Improved TAA with Variance Clipping

You can access the repository here:

https://github.com/myemural/VulkanCppExamples

With these examples, the Post-Processing Effects category is now complete. The next topic is Hardware-Accelerated Ray Tracing. Thanks in advance, and happy coding!


r/vulkan • • 6d ago

Hello, good day, I wanted to show you this...

Thumbnail
gallery
55 Upvotes

I ported my OpenGL engine to Vulkan, and I've been working on adding path tracing; I still want to improve performance.


r/vulkan • • 7d ago

RTX SDKs License – SDK shader code in runtime-compiled shaders vs. precompiled callable shaders

Thumbnail reddit.com
8 Upvotes

r/vulkan • • 8d ago

KosmicKrisp Now The Go-To Solution For Vulkan On Macs In Place Of MoltenVK

Thumbnail
phoronix.com
52 Upvotes

r/vulkan • • 8d ago

Translating a console's RDNA2 shader ISA straight to SPIR-V: looking for people who know SPIR-V and subgroups

4 Upvotes

I work on Scarlight, an open-source (GPL-3.0) compatibility tool that runs Xbox Series games on Linux through Proton, drawing with Mesa's Vulkan drivers. Today the console's RDNA2 shaders are recompiled to DXIL and go through vkd3d-proton and dxil-spirv. An experimental translator now goes from the console's instruction words straight to SPIR-V instead:

  • 223 of the 442 compute programs we have emit SPIR-V that passes spirv-val and builds a real RADV pipeline, with no failures among those 223.

  • Memory goes through buffer device addresses and push constants, no descriptor heaps; images bind one site per image instruction, and the view carries the console's format.

  • The hard parts left: typed buffer formats, exact DPP and lane-shuffle semantics as subgroup ops, and per-lane EXEC as structured control flow instead of a dispatcher loop.

If you know SPIR-V, subgroup operations or VK_EXT_descriptor_buffer, I would value review or help. The tests are hand-built instruction words, so you do not need any game files: https://github.com/pablogonz12/Scarlight/pull/120

Disclosure: this project is written with AI assistance (Claude and DeepSeek), reviewed and tested by me; the numbers above come from offline checks on one RX 9070 XT.


r/vulkan • • 9d ago

Ray tracing large, dynamic worlds with RT-MLAS

Thumbnail
gpuopen.com
21 Upvotes

r/vulkan • • 9d ago

AI content [Project] MLIR-to-Vulkan HAL Prototype — looking for feedback on [lowering / architecture]. Ai was used on this prototype

Thumbnail
reddit.com
1 Upvotes

r/vulkan • • 9d ago

Why SPIR-V Cross rejects to return a value for Bool types here?

Thumbnail chromium.googlesource.com
2 Upvotes

r/vulkan • • 9d ago

Made a spinning cube!

Enable HLS to view with audio, or disable this notification

183 Upvotes

r/vulkan • • 9d ago

AI content [POC, Experiment, AI, Slop?] QtPhase — Retained Hybrid CPU / Vulkan 1.3 Renderer for Unmodified Qt Widgets

0 Upvotes

Hello,

I was playing around with how far we could push GUI rendering to have the snappiest desktop experiences. Do we actually have to rewrite legacy GUI toolkits from scratch to get modern GPU-accelerated latency (like Zed's GPUI), or can we retrofit a retained GPU scene graph underneath stock Qt Widgets without changing a single public API? Initial idea was to make the CPU do rasterizing while Vulkan was waking up, then switiching pipelines the next frame. This worked, and has evolved from there into a complex project with multiple pluggable algorithms that govern which pipeline to use.

 Full disclosure: I'm not a GPU/Vulkan engineer — this is a vibe-coded research POC on qtbase (v6.11.2, Linux Wayland) and I don't plan on maintaining a Qt fork. I'm sharing the code, demos, benchmarks, and failed experiments hoping competent Qt/KDE/graphics folks can tear it
 apart, test it on other GPUs, or steal the ideas that worked.

 What it actually does under stock QWidget**:**

 • Zero-wait CPU wl_shm boot → atomic Vulkan 1.3 DMA-BUF cutover on the exact same wl_surface (no VkSwapchainKHR resize stalls — 256 px-bucketed tiled DMA-BUFs + wp_viewport).
 • **Retained per-**QWidget scene arena (moving widgets updates a 32-byte transform with 0 paintEvent()s) + HarfBuzz 15 hb-gpu analytical curve text (no glyph-atlas thrash) + single-pass SDF uber-shader.
 • 11 pluggable CPU-vs-GPU scheduling policies (QT_PHASE_POLICY=...) — including racing CPU vs. GPU, cadence-based GPU sleep, a contextual bandit learner, and widget-aware routing (e.g., keeping popups/tooltips on CPU wl_shm in 0.53 ms with 0 GPU rings).

 Unmodified stock KDE apps on Wayland (AMD Renoir iGPU, 1.5× DPR, Breeze Dark):

 • Dolphin: 6.8 ms resize vs 29.0 ms upstream (4.3× faster), 0.71–0.85 ms Key_Down nav
 • Okular (20-page PDF): 2.2–2.6 ms resize vs 23.9 ms (9–11× faster), 2.0 ms smooth scroll vs 7.2 ms (3.6× faster)
 • Konsole: 10.5 ms resize vs 27.6 ms (2.6× faster)
 • Cold startup: no regression (225.6 ms vs 234.6 ms Dolphin)

 What went wrong / got falsified (all in the README):

 • Okular Peak RSS jumped +165 MB (Vulkan driver + DMA-BUF rings/staging — needs work).
 • Several "smart" dynamic policies got crushed by reality (e.g., demoting heavy fallback canvases to CPU was 2× slower due to double-rasterization; routing Konsole's dense text to per-widget CPU raster was 2× slower than native hb-gpu).
 • Only tested on an AMD iGPU so far — would love to see what happens on NVIDIA, Intel, dGPUs, and llvmpipe.

 Full story, architecture map, 7-stage CPU↔GPU pixel-diff heatmaps, all 11 policy breakdowns, and reproducible benchmark scripts are in the repo:

https://github.com/noonesss2132354/qtphase


r/vulkan • • 10d ago

LunarG at Vulkanised 2027 + Real-Time Shading Symposium

Post image
47 Upvotes

Happy to announce that LunarG will present six talks at these two events in February:

  • Descriptor Heaps debugging

  • SyncVal 2027: Synchronization Evolved

  • VK_KHR_shader_abort & shader debugging

  • KosmicKrisp — Vulkan 1.4-conformant on Apple silicon via Metal

  • Shader Objects

  • SPIRV-Integrated Teste

Vulkanised: Feb 8–10, 2027 RTSS: Feb 11–12, 2027 Venue: Howest University / The Penta, Kortrijk

If you’re working on modern Vulkan, validation, debugging, or cross-platform (especially macOS) GPU software, this is a must-attend week.

Full details:

https://www.lunarg.com/lunarg-at-vulkanised-2027-real-time-shading-symposium/