Struct qt_gui::q_opengl_debug_logger::LoggingMode
source · 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 moresource§impl Debug for LoggingMode
impl Debug for LoggingMode
source§impl From<LoggingMode> for c_int
impl From<LoggingMode> for c_int
source§fn from(value: LoggingMode) -> Self
fn from(value: LoggingMode) -> Self
source§impl From<i32> for LoggingMode
impl From<i32> for LoggingMode
source§impl PartialEq for LoggingMode
impl PartialEq for LoggingMode
source§fn eq(&self, other: &LoggingMode) -> bool
fn eq(&self, other: &LoggingMode) -> bool
self
and other
values to be equal, and is used
by ==
.