Comments (9)
Commit with fix: Norlock/sparticles@8bebe48 see: blend.wgsl. The commit you can go to and reproduce the bug by reverting line 15.
from naga.
This should have been fixed by #2432. You are probably missing the array layer.
from naga.
@teoxoy can you maybe reopen this issue? I updated wgpu to the lastest version and naga is 0.13.0 and it still produces this error? See: https://github.com/Norlock/sparticles-egui/tree/post_fx_overhaul
from naga.
The fix is not yet part of a release. Could you try wgpu trunk? Also, we are planning to do a release (which will include the fix) next week.
from naga.
@teoxoy I did update it with trunk by changing egui manually. If you fetch my branch and put this forked repo (https://github.com/Norlock/egui.git) next to this one. You can see it still produces the same error. Cargo tree shows it uses trunk
from naga.
I already fixed the issue, but the error message is wrong. For read_write textures you have to pass 2 arguments instead of 3 as the error message suggested. This was the fix:
@group(0) @binding(2) var fx_blend: texture_storage_2d<rgba8unorm, read_write>;
@fragment
fn fs_main(@builtin(position) pos: vec4<f32>) -> @location(0) vec4<f32> {
return textureLoad(fx_blend, vec2<i32>(pos.xy));
}
from naga.
One more question I found with the new naga crate. Is it true I have to use same vec size in all/any comparison now?
if all(abs(distance) < vec3<f32>(force.dead_zone)) {
...
before I could use:
if all(abs(distance) < force.dead_zone) {
...
from naga.
That is most likely due to us updating the validation according to the spec. Double-checked and this is correct, the binary operation <
requires both operands to be either scalars or vectors.
from naga.
I did update it with trunk by changing egui manually. If you fetch my branch and put this forked repo (https://github.com/Norlock/egui.git) next to this one. You can see it still produces the same error. Cargo tree shows it uses trunk
Will reopen the issue and transfer it to naga.
from naga.
Related Issues (20)
- Panic: gsamplerCubeArrayShadow isn't supported HOT 3
- [wgsl-in] Comparing scalar with vector type incorrectly passes validation
- Support for the .glsl extension HOT 3
- [wgsl-in] `sign()` incorrectly does not accept i32 arguments
- WGSL backend writes invalid WGSL in some cases HOT 7
- `indexmap` dependency is out of date HOT 1
- [hlsl-out] Miscompilation of array return types HOT 5
- Implement WGSL abstract types HOT 2
- In Firefox, Naga may prefer `std`'s default DOS-resistant hash functions HOT 2
- Missing validation: Adding initializer to workgroup variable declaration in WGSL causes shader compiler error
- Show exact place where shader failed in Firefox Nightly HOT 1
- [wgsl-in] vector constructor and splat constructors require decimal point for float types HOT 2
- Shader translation error, no function with name 'fwidth' HOT 11
- [wgsl-in] Why can't I use mat2x2<f32> as an instance input? HOT 1
- wgpu error: Validation Error HOT 1
- OOM triggered when compiling wgsl shader HOT 1
- Index out of bounds in lower/mod.rs
- DO NOT FILE ISSUES ON THIS REPOSITORY
- A stack overflow vulnerability was found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from naga.