Open Vipitis opened 1 year ago
Should this issue remain open as kind of an overview or do you prefer to only have the relevant issues/PR to specific errors?
I think this can be a nice overview. You can also keep a list in the top post where you link to all the issues and PR's that come from this work. This can then function as a "meta-issue" to track the matureness of the shadertoy util!
I cleaned up the top comment to act as a task list.
@Korijn could you transfer this issue to the shadertoy repo?
@Korijn could you transfer this issue to the shadertoy repo?
Done!
This issue lists the most common issue with shadercode with shaders from the website. It serves as a task list and will be updated as PRs are merged. (the data is based on a filtered dataset I mined a while ago)
The most frequent errors are as follows:
Tasks list:
in
wgpu-pyshadertoy[x] pygfx/wgpu-py#428 (Unknown variable: iDate) +216
(forgot to adjust the order in the docstring)[x] pygfx/wgpu-py#443 (Unknown variable: iChannel0, textures?) +92
[x] pygfx/wgpu-py#453 (Unknown variable: iFrameRate) +4
[x] #18 (Unknown variable: iChannelResolution)
[ ] #22, #23 (InvalidToken( ... ) +167
in wgpu/naga
[x] gfx-rs/wgpu#4644 (fall-through switch case block/panic glsl -> wgsl: Case values can only be integers) (maybe fixed with wgpu-native 0.18.1.2 this example now works: https://www.shadertoy.com/view/DtccWr)
[ ] gfx-rs/wgpu#4549 (glsl -> spv: panic ~block.rs:2098:56)
[x] gfx-rs/wgpu#4773 (valid: panic ~variables.rs:336:28) (available by wpgp-py 0.14.0) +50
[ ] gfx-rs/wgpu#4897 (Composing 0's component type is not expected)
[ ] gfx-rs/wgpu#4507 (Not implemented as constant expression: ...) tracking several
[ ] gfx-rs/wgpu#5206 (Type flags TypeFlags(DATA | COPY | HOST_SHAREABLE) do not meet the required TypeFlags(CONSTRUCTIBLE) and The type is not constructible)
[ ] gfx-rs/wgpu#5256 (InvalidToken(Identifier("sampler2D")))