# Writing GPU Shaders in Julia

**URL:** <https://discourse.julialang.org/t/writing-gpu-shaders-in-julia/60669>\
**Category:** GPU\
**Created:** [May 6, 2021, 5:34pm UTC](https://discourse.julialang.org/t/writing-gpu-shaders-in-julia/60669 "2021-05-06T17:34:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Jeff\_Emanuel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeff_emanuel/32/15440_2.png) [@Jeff\_Emanuel](https://discourse.julialang.org/u/Jeff_Emanuel)\
**Post date:** [May 6, 2021, 5:51pm UTC](https://discourse.julialang.org/t/writing-gpu-shaders-in-julia/60669/2 "2021-05-06T17:51:34Z")

</div>

Notice that the rust code in the example looks a lot like shader language code. For some limited subset of Julia syntax, it’s probably relatively straight-forward for a macro to generate a shader langage code string, but that would likely be unsatisfying. It would be sort of like this situation [Aliases for `=` and `==` - #19 by Jeff\_Emanuel](https://discourse.julialang.org/t/aliases-for-and/60004/19)

---

_[View the full topic](https://discourse.julialang.org/t/writing-gpu-shaders-in-julia/60669)._
