Implemented GraphicsDevice caching

このコミットが含まれているのは:
Sergio Pedri committed 2020-11-21 13:17:19 +01:00
1 親 e0838e678b
コミット 8cf3d038d7
6ファイル変更
+73 -8

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

+13
ファイルの表示
@@ -1,6 +1,7 @@
using System;
using System.Diagnostics.Contracts;
using System.Runtime.CompilerServices;
using TerraFX.Interop;
namespace ComputeSharp.Graphics
{
@@ -16,6 +17,18 @@ namespace ComputeSharp.Graphics
#pragma warning restore
/// <summary>
/// Creates a new <see cref="Luid"/> instance from a raw <see cref="LUID"/> value.
/// </summary>
/// <param name="luid">The input <see cref="LUID"/> value.</param>
/// <returns>A <see cref="Luid"/> instance with the same value.</returns>
[Pure]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static unsafe Luid FromLUID(LUID luid)
{
return *(Luid*)&luid;
}
/// <inheritdoc/>
[Pure]
[MethodImpl(MethodImplOptions.AggressiveInlining)]