Skip to content
Discussion options

You must be logged in to vote

WGSL is a programming language for shaders. It was designed for WebGPU under the umbrella of the W3C, by engineers from Google, Mozilla and Apple.

The best place to learn about WGSL right now is the standard draft: https://gpuweb.github.io/gpuweb/wgsl/#intro

Code running on GPU (graphic processing unit) has different constraints than code running on CPU (Central processing unit). Code running on GPU is called "shader", it has a different binary representation than code running on CPU, due to the drastic difference in architecture. You can't1 just compile rust code and run it on GPU. The WebGPU standard, and by extension, the graphics library bevy uses, named wgpu2, specify WGSL as a manda…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@crabdancing
Comment options

@nicopap
Comment options

nicopap Nov 5, 2023
Collaborator

@crabdancing
Comment options

@crabdancing
Comment options

Answer selected by crabdancing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
A-Rendering Drawing game state to the screen
2 participants