Closed NotCampeur closed 1 year ago
It's strictly a problem due to how we parse the push constants. Currently, the code EXPECT a push constant, and if none is found, will still try to contact it with a name "", who will result in the error described earlier. We need to check if there is no push constant, if so, we can just skip it's pushing.
Or, if we choose it, we can simply say that no, we refuse to accept shader without a push constant, empty if needed
Output:
Vertex shader:
Fragment shader:
It should work when no uniform nor push_constant has been declared