Switch to CsWin32 for DXC APIs in D3D12 generator

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-17 12:47:01 +02:00
1 親 38c02e48d0
コミット e0b2c6a9fd
7ファイル変更
+121 -53

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

+7 -4
ファイルの表示
@@ -1,7 +1,5 @@
#if NET6_0_OR_GREATER
#if !SOURCE_GENERATOR
using System.Runtime.CompilerServices;
#else
using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers;
#endif
namespace ComputeSharp;
@@ -15,5 +13,10 @@ internal static class UndefinedData
/// <summary>
/// The shared memory with undefined data (has size of <see cref="Double4"/>, as it's the maximum needed at once).
/// </summary>
public static readonly unsafe void* Memory = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UndefinedData), sizeof(Double4));
public static readonly unsafe void* Memory =
#if SOURCE_GENERATOR
null;
#else
(void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UndefinedData), sizeof(Double4));
#endif
}