pub struct LoggingMode(/* private fields */);
Expand description
The LoggingMode enum defines the logging mode of the logger object.
C++ enum: QOpenGLDebugLogger::LoggingMode
.
The LoggingMode enum defines the logging mode of the logger object.
Implementations§
Source§impl LoggingMode
impl LoggingMode
Sourcepub const AsynchronousLogging: LoggingMode
pub const AsynchronousLogging: LoggingMode
Messages from the OpenGL server are logged asynchronously. This means that messages can be logged some time after the corresponding OpenGL actions that caused them, and even be received in an out-of-order fashion, depending on the OpenGL implementation. This mode has a very low performance penalty, as OpenGL implementations are heavily threaded and asynchronous by nature. (C++ enum variant: AsynchronousLogging = 0
)
Sourcepub const SynchronousLogging: LoggingMode
pub const SynchronousLogging: LoggingMode
Messages from the OpenGL server are logged synchronously and sequentially. This has a severe performance hit, as OpenGL implementations are very asynchronous by nature; but it’s very useful to debug OpenGL problems, as OpenGL guarantees that the messages generated by a OpenGL command will be logged before the corresponding command execution has returned. Therefore, you can install a breakpoint on the messageLogged() signal and see in the backtrace which OpenGL command caused it; the only caveat is that if you are using OpenGL from multiple threads you may need to force direct connection when connecting to the messageLogged() signal. (C++ enum variant: SynchronousLogging = 1
)
Trait Implementations§
Source§impl Clone for LoggingMode
impl Clone for LoggingMode
Source§fn clone(&self) -> LoggingMode
fn clone(&self) -> LoggingMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more