Skip to content

Conversation

@juliusikkala
Copy link
Contributor

@juliusikkala juliusikkala commented Jan 17, 2026

This PR adds a new example for running Slang compute shaders on CPUs using the LLVM emitter. Two separate workflows are demonstrated, one with JIT compilation using the Slang API, and another that builds the shader into object code ahead of time.

There is some duplication of code between the two workflows that could be reduced, but I feel that doing so would harm their educational value. I want to keep the code as self-contained and simple as possible, so that whoever reads them is easily able to use them as a starting point in their own code.

@juliusikkala juliusikkala added the pr: non-breaking PRs without breaking changes label Jan 17, 2026
@juliusikkala juliusikkala marked this pull request as ready for review January 17, 2026 20:38
@juliusikkala juliusikkala requested a review from a team as a code owner January 17, 2026 20:38
Copy link
Collaborator

@expipiplus1 expipiplus1 left a comment

Choose a reason for hiding this comment

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

lgtm

@expipiplus1 expipiplus1 enabled auto-merge January 26, 2026 07:22
@expipiplus1 expipiplus1 added this pull request to the merge queue Jan 26, 2026
Merged via the queue into shader-slang:master with commit 013df68 Jan 26, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: non-breaking PRs without breaking changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants