Ported command list execution code
このコミットが含まれているのは:
1 親
fa63f3d5f0
コミット
0defb1cf25
3ファイル変更
+91
-34
検索条件に一致するファイルはありません
@@ -69,15 +69,11 @@ namespace ComputeSharp
|
||||
/// </remarks>
|
||||
[Pure]
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static unsafe ComPtr<U> Upcast<T, U>(this in ComPtr<T> ptr)
|
||||
public static unsafe ref readonly ComPtr<U> Upcast<T, U>(this in ComPtr<T> ptr)
|
||||
where T : unmanaged
|
||||
where U : unmanaged
|
||||
{
|
||||
ComPtr<U> copy = default;
|
||||
|
||||
*(T**)Unsafe.AsPointer(ref copy) = ptr.Get();
|
||||
|
||||
return copy;
|
||||
return ref Unsafe.As<ComPtr<T>, ComPtr<U>>(ref Unsafe.AsRef(in ptr));
|
||||
}
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする