-
Notifications
You must be signed in to change notification settings - Fork 438
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 automatic pipeline layout creation #2203
Comments
Yeah this is for sure a bug in the automatic pipeline layout creation and will need some investigation. In the meantime you can create the pipeline layout by hand. |
This is very likely caused by using a non-constant index into an arrayed descriptor binding. The shader reflection can only use information that is present in the shader, it doesn't know anything about the inputs to the shader. So this can't really be fixed. |
Actually, if I try it out on the current master, the automatic layout creation correctly includes set 4 binding 0:
So is this issue already fixed then? |
@Rua you didn't turn on optimizations. The issue only exists then. |
I still can't reproduce it by compiling in release mode. |
Ah never mind, it's not release mode that matters, but the optimizations on the shader. I can reproduce it now, and I think I figured out where the bug lies. |
Issue
According to the validation layers, the automatic pipeline creator created an invalid pipeline.
This code
threw this error:
The buffer definitions in GLSL look like
The whole file can be viewed here.
It may be worth noting that the shader is compiled at runtime with shaderc and opt level 2.
The text was updated successfully, but these errors were encountered: