You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pipelined rendering system that bevy currently have is great but feels almost impossible to learn. This is due to the fact a lot of code is shared between multiple pipelines, gated behind if statements and wgsl #ifdefs, making them difficult to read or modify.
Proposed Solution
Remove all wgsl definitions regarding pipelines, split up shader code if needed.
Split up specialize on Material into 3 functions for each pipeline.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Why
The pipelined rendering system that bevy currently have is great but feels almost impossible to learn. This is due to the fact a lot of code is shared between multiple pipelines, gated behind if statements and wgsl
#ifdef
s, making them difficult to read or modify.Proposed Solution
specialize
onMaterial
into 3 functions for each pipeline.specialize
prepass_specialize
deferred_specialize
Beta Was this translation helpful? Give feedback.
All reactions