Minor improvements to some XML docs

このコミットが含まれているのは:
Sergio Pedri committed 2021-03-09 23:32:54 +01:00
1 親 a4c0090855
コミット 70ca027a5b
4ファイル変更
+17 -8

検索条件に一致するファイルはありません

+13 -4
ファイルの表示
@@ -28,11 +28,14 @@ namespace ComputeSharp
public static GraphicsDevice Default => DefaultFactory.Value;
/// <summary>
/// Enumerates all the currently available DX12.0 devices. Note that creating a device is a relatively
/// expensive operation, so consider using <see cref="QueryDevices"/> to be able to filter the available
/// devices before creating them, to reduce the system overhead and avoiding creating unnecessary devices.
/// Enumerates all the currently available devices supporting the minimum necessary feature level.
/// Physical devices and integrated GPUs will be enumerated first, and the WARP device will always be last.
/// </summary>
/// <returns>A sequence of <see cref="GraphicsDevice"/> instances.</returns>
/// <remarks>
/// Creating a device is a relatively expensive operation, so consider using <see cref="QueryDevices"/> to be
/// able to filter the existing adapters before creating a device from them, to reduce the system overhead.
/// </remarks>
[Pure]
public static IEnumerable<GraphicsDevice> EnumerateDevices()
{
@@ -40,10 +43,16 @@ namespace ComputeSharp
}
/// <summary>
/// Executes a query on the currently available DX12.0 devices matching a given predicate.
/// Executes a query on the currently available devices matching a given predicate.
/// </summary>
/// <param name="predicate">The predicate to use to select the devices to create.</param>
/// <returns>A sequence of <see cref="GraphicsDevice"/> instances matching <paramref name="predicate"/>.</returns>
/// <remarks>
/// Note that only devices matching the minimum necessary feature level will actually be instantiated and returned.
/// This means that <paramref name="predicate"/> might not actually be used to match against all existing adapters on
/// the current system, if any of them doesn't meet the minimum criteria, and that additional filtering might be done
/// after the input predicate is invoked, so a match doesn't necessarily guarantee that that device will be returned.
/// </remarks>
[Pure]
public static IEnumerable<GraphicsDevice> QueryDevices(Predicate<GraphicsDeviceInfo> predicate)
{
+1 -1
ファイルの表示
@@ -17,7 +17,7 @@ using static TerraFX.Interop.DXGI_ADAPTER_FLAG;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="class"/> that represents a DX12-compatible GPU device that can be used to run compute shaders.
/// A <see langword="class"/> that represents an <see cref="ID3D12Device"/> instance that can be used to run compute shaders.
/// </summary>
[DebuggerDisplay("{ToString(),raw}")]
public sealed unsafe class GraphicsDevice : NativeObject
+1 -1
ファイルの表示
@@ -4,7 +4,7 @@ using static TerraFX.Interop.DXGI_ADAPTER_FLAG;
namespace ComputeSharp
{
/// <summary>
/// A type containing info on a given DX12.0 device that can be used.
/// A type containing info on a given device that can be used.
/// </summary>
public readonly struct GraphicsDeviceInfo
{
+2 -2
ファイルの表示
@@ -30,7 +30,7 @@ namespace ComputeSharp.Graphics.Helpers
/// <summary>
/// Gets the <see cref="Luid"/> of the default device.
/// </summary>
/// <returns>The <see cref="Luid"/> of the default device supporting at least DX12.0.</returns>
/// <returns>The <see cref="Luid"/> of the default device supporting <see cref="D3D_FEATURE_LEVEL_11_0"/> and <see cref="D3D_SHADER_MODEL_6_0"/>.</returns>
/// <remarks>This methods assumes that a default device is available.</remarks>
[Pure]
public static unsafe Luid GetDefaultDeviceLuid()
@@ -45,7 +45,7 @@ namespace ComputeSharp.Graphics.Helpers
/// <summary>
/// Gets the default <see cref="GraphicsDevice"/> instance.
/// </summary>
/// <returns>The default <see cref="GraphicsDevice"/> instance supporting at least DX12.0.</returns>
/// <returns>The default <see cref="GraphicsDevice"/> instance supporting <see cref="D3D_FEATURE_LEVEL_11_0"/> and <see cref="D3D_SHADER_MODEL_6_0"/>.</returns>
/// <exception cref="NotSupportedException">Thrown when a default device is not available.</exception>
public static unsafe GraphicsDevice GetDefaultDevice()
{