QOpenGLDebugMessageclass wraps an OpenGL debug message. 更多 …
New in version 5.1.
def
createApplicationMessage
(text[, id=0[, severity=NotificationSeverity[, type=OtherType]]])
def
createThirdPartyMessage
(text[, id=0[, severity=NotificationSeverity[, type=OtherType]]])
Debug messages are usually created by the OpenGL server and then read by OpenGL clients (either from the OpenGL internal debug log, or logged in real-time). A debug message has a textual representation, a vendor-specific numeric id, a source, a type and a severity.
It’s also possible for applications or third-party libraries and toolkits to create and insert messages in the debug log. In order to do so, you can use the
createApplicationMessage()或createThirdPartyMessage()static functions.另请参阅
QOpenGLDebugMessage
¶
QOpenGLDebugMessage(debugMessage)
- param debugMessage
Constructs a debug message with an empty message string, id set to 0, source set to
InvalidSource
, type set to
InvalidType
, and severity set to
InvalidSeverity
.
注意
This constructor should not be used to create a debug message; instead, use the
createApplicationMessage()
或
createThirdPartyMessage()
static functions.
构造调试消息作为副本为
debugMessage
.
另请参阅
operator=()
PySide2.QtGui.QOpenGLDebugMessage.
Source
¶
The Source enum defines the source of the debug message.
|
常量 |
描述 |
|---|---|
|
QOpenGLDebugMessage.InvalidSource |
The source of the message is invalid; this is the source of a default-constructed
|
|
QOpenGLDebugMessage.APISource |
The message was generated in response to OpenGL API calls. |
|
QOpenGLDebugMessage.WindowSystemSource |
The message was generated by the window system. |
|
QOpenGLDebugMessage.ShaderCompilerSource |
The message was generated by the shader compiler. |
|
QOpenGLDebugMessage.ThirdPartySource |
The message was generated by a third party, for instance an OpenGL framework a or debugging toolkit. |
|
QOpenGLDebugMessage.ApplicationSource |
The message was generated by the application itself. |
|
QOpenGLDebugMessage.OtherSource |
The message was generated by a source not included in this enumeration. |
|
QOpenGLDebugMessage.AnySource |
This value corresponds to a mask of all possible message sources. |
PySide2.QtGui.QOpenGLDebugMessage.
Type
¶
The Type enum defines the type of the debug message.
|
常量 |
描述 |
|---|---|
|
QOpenGLDebugMessage.InvalidType |
The type of the message is invalid; this is the type of a default-constructed
|
|
QOpenGLDebugMessage.ErrorType |
The message represents an error. |
|
QOpenGLDebugMessage.DeprecatedBehaviorType |
The message represents an usage of deprecated behavior. |
|
QOpenGLDebugMessage.UndefinedBehaviorType |
The message represents an usage of undefined behavior. |
|
QOpenGLDebugMessage.PortabilityType |
The message represents an usage of vendor-specific behavior, that might pose portability concerns. |
|
QOpenGLDebugMessage.PerformanceType |
The message represents a performance issue. |
|
QOpenGLDebugMessage.OtherType |
The message represents a type not included in this enumeration. |
|
QOpenGLDebugMessage.MarkerType |
The message represents a marker in the debug log. |
|
QOpenGLDebugMessage.GroupPushType |
The message represents a debug group push operation. |
|
QOpenGLDebugMessage.GroupPopType |
The message represents a debug group pop operation. |
|
QOpenGLDebugMessage.AnyType |
This value corresponds to a mask of all possible message types. |
PySide2.QtGui.QOpenGLDebugMessage.
Severity
¶
The Severity enum defines the severity of the debug message.
|
常量 |
描述 |
|---|---|
|
QOpenGLDebugMessage.InvalidSeverity |
The severity of the message is invalid; this is the severity of a default-constructed
|
|
QOpenGLDebugMessage.HighSeverity |
The message has a high severity. |
|
QOpenGLDebugMessage.MediumSeverity |
The message has a medium severity. |
|
QOpenGLDebugMessage.LowSeverity |
The message has a low severity. |
|
QOpenGLDebugMessage.NotificationSeverity |
The message is a notification. |
|
QOpenGLDebugMessage.AnySeverity |
This value corresponds to a mask of all possible message severities. |
PySide2.QtGui.QOpenGLDebugMessage.
createApplicationMessage
(
text
[
,
id=0
[
,
severity=NotificationSeverity
[
,
type=OtherType
]
]
]
)
¶
Constructs and returns a debug message with
text
as its text,
id
as id,
severity
as severity, and
type
as type. The message source will be set to
ApplicationSource
.
PySide2.QtGui.QOpenGLDebugMessage.
createThirdPartyMessage
(
text
[
,
id=0
[
,
severity=NotificationSeverity
[
,
type=OtherType
]
]
]
)
¶
Constructs and returns a debug message with
text
as its text,
id
as id,
severity
as severity, and
type
as type. The message source will be set to
ThirdPartySource
.
PySide2.QtGui.QOpenGLDebugMessage.
id
(
)
¶
GLuint
Returns the id of the debug message. Ids are generally vendor-specific.
PySide2.QtGui.QOpenGLDebugMessage.
message
(
)
¶
unicode
Returns the textual message contained by this debug message.
PySide2.QtGui.QOpenGLDebugMessage.
__ne__
(
debugMessage
)
¶
debugMessage
–
QOpenGLDebugMessage
bool
返回
true
if this message is different from
debugMessage
, or false otherwise.
另请参阅
operator==()
PySide2.QtGui.QOpenGLDebugMessage.
__eq__
(
debugMessage
)
¶
debugMessage
–
QOpenGLDebugMessage
bool
返回
true
if this debug message is equal to
debugMessage
, or false otherwise. Two debugging messages are equal if they have the same textual message, the same id, the same source, the same type and the same severity.
另请参阅
operator!=()
PySide2.QtGui.QOpenGLDebugMessage.
severity
(
)
¶
Returns the severity of the debug message.
PySide2.QtGui.QOpenGLDebugMessage.
source
(
)
¶
Returns the source of the debug message.
PySide2.QtGui.QOpenGLDebugMessage.
swap
(
other
)
¶
other
–
QOpenGLDebugMessage
Swaps the message
debugMessage
with this message. This operation is very fast and never fails.