We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filters/filters/pixelate/src/pixelate.wgsl
Lines 16 to 30 in a287d90
textureSample wants a texture_2d, sampler and vec2
This is wrong on a lot of filters, and this is the fix:
@group(0) @binding(1) var uTexture: texture_2d<f32>; @group(0) @binding(2) var uSampler: sampler; @group(1) @binding(0) var<uniform> pixelateUniforms : PixelateUniforms; @fragment fn mainFragment( @location(0) uv: vec2<f32>, @builtin(position) position: vec4<f32> ) -> @location(0) vec4<f32> { let pixelSize: vec2<f32> = pixelateUniforms.uSize; let coord: vec2<f32> = mapCoord(uv); var pixCoord: vec2<f32> = pixelate(coord, pixelSize); pixCoord = unmapCoord(pixCoord); return textureSample(uTexture, uSampler, pixCoord);
The text was updated successfully, but these errors were encountered:
Thanks @pagoru ! I have updated on all filters accordingly 🙏
Sorry, something went wrong.
bbazukun123
No branches or pull requests
filters/filters/pixelate/src/pixelate.wgsl
Lines 16 to 30 in a287d90
textureSample wants a texture_2d, sampler and vec2
This is wrong on a lot of filters, and this is the fix:
The text was updated successfully, but these errors were encountered: