Ziggit

Writing Compute Shaders In/With Zig (opens in new tab)

Velcrone: To my understanding, I would need to: Add the slang compiler into the build system (this is definitely the easiest to figure out) Establish the bindings with Slang’s reflection Dispatch the shaders from Zig code in whichever platform-dependant format (ie Slang on macos would compile down to Metal vs Vulkan or Cuda on everything else) Yes, that is correct. Adding the slang compiler in the build process adds a system dependency, which is always a bummer, but it is what it is. For the ...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help