Table of Contents

Class GraphicsDebug

Namespace
Microsoft.Xna.Framework.Graphics
Assembly
MonoGame.Framework.dll
public class GraphicsDebug
Inheritance
GraphicsDebug
Inherited Members

Methods

TryDequeueMessage(out GraphicsDebugMessage)

Attempt to dequeue a debugging message from the graphics subsystem.

public bool TryDequeueMessage(out GraphicsDebugMessage message)

Parameters

message GraphicsDebugMessage

The graphics debugging message if retrieved, null otherwise.

Returns

bool

True if a graphics debugging message was retrieved, false otherwise.

Remarks

When running on a graphics device with debugging enabled, this allows you to retrieve subsystem-specific (e.g. DirectX, OpenGL, etc.) debugging messages including information about improper usage of shaders and APIs.