-
Notifications
You must be signed in to change notification settings - Fork 195
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
error reporting on shader compile does not work #395
Comments
I intentionally added an error into the fragment shader of the LowLevelRendering Example. The result ist a message: |
This is when compiling the shaders through low-level rendering, or are you importing a .bsl shader? With low-level rendering you need to check for compile status yourself. For example:
|
That is with the low level interface. I'll try this tomorrow. Thanks |
Yes. That works. Thank you. I still feel like it would be nicer if the engine would report the error itself instead of just crashing. (at least in the debug build) |
That's how it used to be, but it's problematic when you have a higher-level shader parsing code that parses the entire BSL file, in which case you want to be able to report all the errors in one place, rather than reporting BSL parsing errors in one spot and individual shader function compilation errors elsewhere. |
Ah I see the problem. Well it is called low level interface, so an extra step is not too bad. But couldn't you check before submitting the pipeline to the renderer if the shader is actually compiled? |
Possibly, but in the editor where the user can dynamically change shaders it could get pretty spammy when the user makes an error, so it would need to be a bit more sophisticated solution. |
The openGL renderer is not reporting shader compile errors on arch linux with nvidia graphics.
The application crashes with "GL_INVALID_OPERATION error generated. object is not successfully linked" that hints at a wrong shader. but I did not receive any errors when starting up.
The text was updated successfully, but these errors were encountered: