Skip to content

Conversation

@eokeeffe
Copy link

Relatively simple example of using the debug_printf function in the Vulkan GLSL shader code.

I've got a medium article explaining more on how to set everything up and running the example.

Any issues, let me know and I'll get on it when I can

evanokeeffe added 2 commits January 21, 2026 13:37
Copy link
Member

@axsaucedo axsaucedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added comments to review

#include <algorithm> // std::transform

#include <kompute/Kompute.hpp>
#include <shader/example_shader.hpp>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this file?

@@ -0,0 +1,8 @@
Debugging Vulkan shaders, especially compute shaders, can be very difficult to do even with the aid
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's follow the readme and folder structure of the other examples, such that it has the instructions to build and run end to end so that it's clear with the exact steps to reproduce, like

https://github.com/KomputeProject/kompute/tree/master/examples/array_multiplication

Or more involved ones like:

https://github.com/KomputeProject/kompute/tree/master/examples/pi4_mesa_build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants