Support WGPU_BACKEND
and simplify shader util function
#462
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Two mini patches:
read_draw_tag_from_scene
wgsl function more equal to it's cpu equivalent, just from guessing I think this would safe 2 cycles (because 2 add operations are now either 0 or 1) but that's too much of a microoptimization, I just like to think about that.WGPU_BACKEND
env variable into selection of the backend, which enables me to get rid of the dx12 error spam mentioned in Artifacts on Windows with GPU #449 and also bumps my fps from 80-85 on dx12 to 100-120 on vulkan.