Skip to content
Discussion options

You must be logged in to vote

There is a step in between the vertex shader and the fragment shader that converts the per-vertex data to per-pixel data. The @builtin(position) flag corresponds to the final clip position in the vertex shader, but in the fragment shader it is the pixel coordinates of the current fragment.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Pieresqi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants