Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Artifacting with non-uniform indexing of texture arrays #4029

Closed
tim-harding opened this issue Aug 11, 2023 · 2 comments
Closed

Artifacting with non-uniform indexing of texture arrays #4029

tim-harding opened this issue Aug 11, 2023 · 2 comments

Comments

@tim-harding
Copy link

Description
When trying to use the SAMPLED_TEXTURE_AND_STORAGE_BUFFER_ARRAY_NON_UNIFORM_INDEXING feature, there is strange glitching in the sampled textures.

Repro steps
Run the provided texture-arrays example and resize the window for various artifact patterns.

Expected vs observed behavior
Textures should render the same as with uniform indexing. Instead, they do not.

Extra materials
Here is the trace output from running the texture-arrays example:
trace.zip
Here are several screenshots from the included texture-arrays sample binary with different window sizes:
1691722377_grim
1691722411_grim
And a more severe example in which I am trying to render a font with each glyph on a separate texture:
1691721687_grim
Running the texture-arrays example with WGPU_TEXTURE_ARRAY_STYLE=uniform gives normal output. I am using Wayland but setting WINIT_UNIX_BACKEND=x11 makes no difference.

Platform
The example images shown use version 0.17 from the trunk branch. I am running on 6.4.9-arch1-1 with the Sway window manager. Below is information about my adapter as provided by the wgpu-info binary:

   Backend: Vulkan
      Name: "AMD Radeon RX 6600 (RADV NAVI23)"
  VendorID: 4098
  DeviceID: 29695
      Type: DiscreteGpu
    Driver: "radv"
DriverInfo: "Mesa 23.1.5"
 Compliant: true
@cwfitzgerald
Copy link
Member

Thanks for the detailed report!

This is a dupe of gfx-rs/naga#2408, and should be fixed in the next point release of Naga!

@tim-harding
Copy link
Author

Delightful! Thanks heaps. I'll add a patch to my dependencies until the dependency is bumped in wgpu 😊

@cwfitzgerald cwfitzgerald closed this as not planned Won't fix, can't repro, duplicate, stale Aug 11, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants