Files
2026-08-27 18:49:10 -04:00

2.2 KiB
Raw Blame History

title, type, source, source_url, author, handle, post_id, date, archived, draft, tags, description, in_reply_to
title type source source_url author handle post_id date archived draft tags description in_reply_to
i'm crying i found a "minimal" vulkan example and the file has 2,000 lines of C++ archive twitter https://x.com/noinconsistency/status/2064363755668980006 ♡ mari/cohe ♡ noinconsistency 2064363755668980006 2026-06-09 2026-08-27 false
archive
twitter
noinconsistency
i'm crying i found a "minimal" vulkan example and the file has 2,000 lines of C++

Source

Thread

1/ @noinconsistency ^2064363755668980006

i'm crying i found a "minimal" vulkan example and the file has 2,000 lines of C++

2/ @AgileJebrim ^2064749095428751374

@noinconsistency

It’s possible to do it in about 300-400 lines.

3/ @0xglitchbyte ^2064792413512569284

@AgileJebrim @noinconsistency

VulkanHPP?

4/ @AgileJebrim ^2064796581363122390

@0xglitchbyte @noinconsistency

Compute shaders

5/ @0xglitchbyte ^2064815411229520276

@AgileJebrim @noinconsistency

While technically possible, arent shaders usually for compute intensive tasks such as physics simulations or image manipulation? Seem overkill to render a triangle

6/ @AgileJebrim ^2064817916806037992

@0xglitchbyte @noinconsistency

Why assume it has to be a triangle? A simple screen space gradient would suffice.

7/ @AgileJebrim ^2064818925162861033

@0xglitchbyte @noinconsistency

Compute shaders can be used for anything. Vertex and fragment shaders are really just abstractions built on top of them.

8/ @0xglitchbyte ^2065421752511942912

@AgileJebrim @noinconsistency

Triangles seems to be the “hello world” of graphics programming.

I’ll explore this.

9/ @AgileJebrim ^2065422960085598261

@0xglitchbyte @noinconsistency

Only because the interface they’re using is one based around triangular rasterization. If you ditch the triangle-based pipeline, then it’s not really suitable as a Hello World. Here’s a screen space alternative.