Skip to content
New issue

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

Got some mysterious background stripes when render a PDF page to Iced GUI #689

Open
videni opened this issue Sep 14, 2024 · 1 comment
Open

Comments

@videni
Copy link

videni commented Sep 14, 2024

hi, I am using Vello to render pdf pages inside an Iced GUI application, I found that Vello doesn't implement wgpu::TextureFormat::Bgra8UnormSrgb format yet, but Iced uses this one, I set the view_formats to wgpu::TextureFormat::Rgba8UnormSrgb and the format parameter to wgpu::TextureFormat::Rgba8Unorm,

 let texture = device.create_texture(&wgpu::TextureDescriptor {
            label: None,
            size: wgpu::Extent3d {
                width,
                height,
                depth_or_array_layers: 1,
            },
            mip_level_count: 1,
            sample_count: 1,
            dimension: wgpu::TextureDimension::D2,
            usage: wgpu::TextureUsages::STORAGE_BINDING | wgpu::TextureUsages::TEXTURE_BINDING,
            format: wgpu::TextureFormat::Rgba8Unorm,
            view_formats: &[wgpu::TextureFormat::Rgba8UnormSrgb],
        });
        let view = texture.create_view(&wgpu::TextureViewDescriptor::default());

it can render pdf pages to iced gui successfully, but got some mysterious stripes, any compatibility issues here please? If not, can I know how to debug this kinds of issues? I check my render pipeline tons of times, I am sure I didn't draw these stripes.

image
@videni videni changed the title Got a mystiorous background stripes when render a PDF pages to Iced GUI Got some mysterious background stripes when render a PDF pages to Iced GUI Sep 14, 2024
@videni videni changed the title Got some mysterious background stripes when render a PDF pages to Iced GUI Got some mysterious background stripes when render a PDF page to Iced GUI Sep 14, 2024
@DJMcNab
Copy link
Member

DJMcNab commented Sep 16, 2024

This issue is entirely unactionable, as it is not possible to reproduce this from the given information. Does this issue still reproduce on the latest main - I believe that we have landed a few watertightness issues.

If you are seeing that certain code creates artifacts in a texture drawn by Vello, please provide code to reproduce that scene, using only Vello rendering. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants