You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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
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)
The text was updated successfully, but these errors were encountered: