This was caused by missing `shader->constants`. Creating an empty `SpecializationConstants` fixes the issue.