CustomMaterial shader compile error message and log absent
-
Last Thursday I completed a conversion to QML of sorts to interactively create and compile during runtime vertex and fragment shader code in the form of QML snippet code files within the QML custom material function used within the view3D QML type.
I, of course, made some errors in the shader QML snippet code, and as a result got a blank display on screen and no rendering of anything as the shader compile failed. However, if I use QtCreator, an error message is displayed on the console informing what error was encountered, or as I do, using Visual Studio, when exiting the debugger mode, have a log of the application run displayed with the compile error message present.
In the documentation for CustomMaterial, and a section entitled programmable materials, effects, geometry and texture data, no mention or reference is made about any feedback message or log on the success or failure of ones vertex or fragment code shader generation.
Without this feedback the user will find it difficult, if not impossible to debug their CustomMaterial snippet code and make corrections. It seems looking at the source code, there is nothing I could find that generates an error log that a user could access to find out what is wrong with their snippet code.
I know this is probably a hopeless question, and no one will know, but is there some undocumented function, variable or QML type that holds the results of a shader snippet code generation so one can access and display while running a QML application, not after exiting it and what seems only reported if one is coding? If there is a report on the console of such errors while writing code, it must be coming from somewhere, but where ?
It is just incomprehensible that such a facility is not made available within the QML CustomMaterial type itself. Within the ShaderEffect QML type documentation a log of type string is available, even if the documentation says it is empty most of the time. It is also rather odd that a flag to indicate a successful compilation of vertex or fragment shader is not present so as to take a certain action if compilation fails.
Will a future upgrade of QT6 and QML have such a facility? If not, CustomMaterial may be not be as useful to use all that much.