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

Incorrect argument buffer offset for VARIABLE_DESCRIPTOR_COUNT binding #2343

Open
VZout opened this issue Sep 20, 2024 · 0 comments
Open

Incorrect argument buffer offset for VARIABLE_DESCRIPTOR_COUNT binding #2343

VZout opened this issue Sep 20, 2024 · 0 comments

Comments

@VZout
Copy link
Contributor

VZout commented Sep 20, 2024

When I have 2 sampled image bindings in my descriptor set and the last binding is variable descriptor count, the offset of that variable descriptor count binding appears to be incorrect.

My descriptor set looks like this:

  • SAMPLED_IMAGE, 32 descriptors (PARTIALLY_BOUND flag but probably irrelevant)
  • SAMPLED_IMAGE, max bindless descriptors, (PARTIALLY_BOUND | VARIABLE_DESCRIPTOR_COUNT)

Getting a texture from the 2e binding will give me a incorrect texture (samples black).
I have to explicitly offset the index into the 2e binding by 31 (descriptor count of the first binding - 1) to get the actual texture at that location. (the first binding works correctly)

If the binding infront of the variable descriptor count binding only has 1 descriptor, it works fine. but when changing it to 2 descriptors: all textures in the variable descriptor count binding are offset by 1. (and in my case above: 31)

I can try to upload a minimal repro case next week. But thought I would create a issue anyway in case this sounds familiar to anyone.

(tested with v1.2.11-b1, Apple M1)

@VZout VZout changed the title Incorrect argument buffer offset for VARIABLE_DESCRIPTOR_COUNT sampled image descriptors Incorrect argument buffer offset for VARIABLE_DESCRIPTOR_COUNT binding Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants