This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3680576
commit cae2c9b
Showing
10 changed files
with
142 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
// MonoGame - Copyright (C) The MonoGame Team | ||
// This file is subject to the terms and conditions defined in | ||
// file 'LICENSE.txt', which is part of this source code package. | ||
|
||
namespace Microsoft.Xna.Framework.Graphics | ||
{ | ||
public partial class GraphicsDebug | ||
{ | ||
/// <summary> | ||
/// Attempt to dequeue a debugging message from the graphics subsystem. | ||
/// </summary> | ||
/// <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. | ||
/// </remarks> | ||
/// <param name="message">The graphics debugging message if retrieved, null otherwise.</param> | ||
/// <returns>True if a graphics debugging message was retrieved, false otherwise.</returns> | ||
public bool TryDequeueMessage(out GraphicsDebugMessage message) | ||
{ | ||
return PlatformTryDequeueMessage(out message); | ||
} | ||
} | ||
} | ||
// // MonoGame - Copyright (C) The MonoGame Team | ||
// // This file is subject to the terms and conditions defined in | ||
// // file 'LICENSE.txt', which is part of this source code package. | ||
// | ||
// namespace Microsoft.Xna.Framework.Graphics | ||
// { | ||
// public partial class GraphicsDebug | ||
// { | ||
// /// <summary> | ||
// /// Attempt to dequeue a debugging message from the graphics subsystem. | ||
// /// </summary> | ||
// /// <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. | ||
// /// </remarks> | ||
// /// <param name="message">The graphics debugging message if retrieved, null otherwise.</param> | ||
// /// <returns>True if a graphics debugging message was retrieved, false otherwise.</returns> | ||
// public bool TryDequeueMessage(out GraphicsDebugMessage message) | ||
// { | ||
// return PlatformTryDequeueMessage(out message); | ||
// } | ||
// } | ||
// } |
38 changes: 19 additions & 19 deletions
38
MonoGame/MonoGame.Framework/Graphics/GraphicsDebugMessage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
// MonoGame - Copyright (C) The MonoGame Team | ||
// This file is subject to the terms and conditions defined in | ||
// file 'LICENSE.txt', which is part of this source code package. | ||
|
||
namespace Microsoft.Xna.Framework.Graphics | ||
{ | ||
public class GraphicsDebugMessage | ||
{ | ||
public string Message { get; set; } | ||
|
||
public string Severity { get; set; } | ||
|
||
public int Id { get; set; } | ||
|
||
public string IdName { get; set; } | ||
|
||
public string Category { get; set; } | ||
} | ||
} | ||
// // MonoGame - Copyright (C) The MonoGame Team | ||
// // This file is subject to the terms and conditions defined in | ||
// // file 'LICENSE.txt', which is part of this source code package. | ||
// | ||
// namespace Microsoft.Xna.Framework.Graphics | ||
// { | ||
// public class GraphicsDebugMessage | ||
// { | ||
// public string Message { get; set; } | ||
// | ||
// public string Severity { get; set; } | ||
// | ||
// public int Id { get; set; } | ||
// | ||
// public string IdName { get; set; } | ||
// | ||
// public string Category { get; set; } | ||
// } | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
// MonoGame - Copyright (C) The MonoGame Team | ||
// This file is subject to the terms and conditions defined in | ||
// file 'LICENSE.txt', which is part of this source code package. | ||
|
||
namespace Microsoft.Xna.Framework.Graphics | ||
{ | ||
/// <summary> | ||
/// Defines a set of graphic capabilities. | ||
/// </summary> | ||
public enum GraphicsProfile | ||
{ | ||
/// <summary> | ||
/// Use a limited set of graphic features and capabilities, allowing the game to support the widest variety of devices. | ||
/// </summary> | ||
Reach, | ||
/// <summary> | ||
/// Use the largest available set of graphic features and capabilities to target devices, that have more enhanced graphic capabilities. | ||
/// </summary> | ||
HiDef | ||
} | ||
} | ||
// // MonoGame - Copyright (C) The MonoGame Team | ||
// // This file is subject to the terms and conditions defined in | ||
// // file 'LICENSE.txt', which is part of this source code package. | ||
// | ||
// namespace Microsoft.Xna.Framework.Graphics | ||
// { | ||
// /// <summary> | ||
// /// Defines a set of graphic capabilities. | ||
// /// </summary> | ||
// public enum GraphicsProfile | ||
// { | ||
// /// <summary> | ||
// /// Use a limited set of graphic features and capabilities, allowing the game to support the widest variety of devices. | ||
// /// </summary> | ||
// Reach, | ||
// /// <summary> | ||
// /// Use the largest available set of graphic features and capabilities to target devices, that have more enhanced graphic capabilities. | ||
// /// </summary> | ||
// // HiDef | ||
// } | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 15 additions & 15 deletions
30
MonoGame/MonoGame.Framework/Platform/Graphics/GraphicsDebug.Default.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
// MonoGame - Copyright (C) The MonoGame Team | ||
// This file is subject to the terms and conditions defined in | ||
// file 'LICENSE.txt', which is part of this source code package. | ||
|
||
namespace Microsoft.Xna.Framework.Graphics | ||
{ | ||
public partial class GraphicsDebug | ||
{ | ||
private bool PlatformTryDequeueMessage(out GraphicsDebugMessage message) | ||
{ | ||
message = null; | ||
return false; | ||
} | ||
} | ||
} | ||
// // MonoGame - Copyright (C) The MonoGame Team | ||
// // This file is subject to the terms and conditions defined in | ||
// // file 'LICENSE.txt', which is part of this source code package. | ||
// | ||
// namespace Microsoft.Xna.Framework.Graphics | ||
// { | ||
// public partial class GraphicsDebug | ||
// { | ||
// private bool PlatformTryDequeueMessage(out GraphicsDebugMessage message) | ||
// { | ||
// message = null; | ||
// return false; | ||
// } | ||
// } | ||
// } |