Merge pull request #396 from Sergio0694/dev/d3d12ma-201

Bump D3D12MA to 2.0.1, add [SupportedOSPlatform]
このコミットが含まれているのは:
Sergio Pedri authored and GitHub committed 2022-10-07 13:41:52 -07:00
コミット bccabdd393
28ファイル変更
+56 -31

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

+1
ファイルの表示
@@ -3,6 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<NoWarn>$(NoWarn);CA1416</NoWarn>
</PropertyGroup>
<ItemGroup>
+1
ファイルの表示
@@ -4,6 +4,7 @@
<OutputType>Exe</OutputType>
<TargetFrameworks>net472;netcoreapp3.1;net6.0</TargetFrameworks>
<Platforms>AnyCPU;x64;ARM64</Platforms>
<NoWarn>$(NoWarn);CA1416</NoWarn>
</PropertyGroup>
<ItemGroup>
@@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<NoWarn>$(NoWarn);CA1416</NoWarn>
</PropertyGroup>
<ItemGroup>
+1
ファイルの表示
@@ -4,6 +4,7 @@
<OutputType>Exe</OutputType>
<TargetFrameworks>net472;netcoreapp3.1;net6.0</TargetFrameworks>
<Platforms>AnyCPU;x64;ARM64</Platforms>
<NoWarn>$(NoWarn);CA1416</NoWarn>
</PropertyGroup>
<ItemGroup>
-2
ファイルの表示
@@ -3,8 +3,6 @@ using ComputeSharp.Interop;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
#pragma warning disable CA1416
namespace ComputeSharp.SwapChain.Backend;
internal sealed class SwapChainApplication<T> : Win32Application
+1
ファイルの表示
@@ -5,6 +5,7 @@
<TargetFramework>net6.0</TargetFramework>
<Platforms>x64;ARM64</Platforms>
<DefineConstants>$(DefineConstants);SAMPLE_APP</DefineConstants>
<NoWarn>$(NoWarn);CA1416</NoWarn>
</PropertyGroup>
<ItemGroup>
+2
ファイルの表示
@@ -15,6 +15,8 @@
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\CompilerServices\RuntimeHelpers.cs" />
<Compile Include="$(MSBuildThisFileDirectory)..\ComputeSharp.NetStandard\System\Runtime\InteropServices\NativeMemory.cs" Link="System\Runtime\InteropServices\NativeMemory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)..\ComputeSharp.NetStandard\System\Runtime\InteropServices\UnmanagedCallersOnlyAttribute.cs" Link="System\Runtime\InteropServices\UnmanagedCallersOnlyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)..\ComputeSharp.NetStandard\System\Runtime\Versioning\OSPlatformAttribute.cs" Link="System\Runtime\Versioning\OSPlatformAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)..\ComputeSharp.NetStandard\System\Runtime\Versioning\SupportedOSPlatformAttribute.cs" Link="System\Runtime\Versioning\SupportedOSPlatformAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Text\EncodingExtensions.cs" />
</ItemGroup>
</Project>
+4 -1
ファイルの表示
@@ -1,3 +1,6 @@
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
[module: SkipLocalsInit]
[module: SkipLocalsInit]
[assembly: SupportedOSPlatform("windows6.1")]
+3
ファイルの表示
@@ -1,5 +1,8 @@
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
[module: SkipLocalsInit]
[assembly: SupportedOSPlatform("windows6.2")]
[assembly: InternalsVisibleTo("ComputeSharp.Tests.Internals")]
+1 -1
ファイルの表示
@@ -24,6 +24,6 @@
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\UnmanagedCallersOnlyAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\NativeMemory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\OSPlatformAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\SupportedOSVersionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\SupportedOSPlatformAttribute.cs" />
</ItemGroup>
</Project>
+3 -1
ファイルの表示
@@ -1,12 +1,14 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
namespace System.Runtime.Versioning;
/// <summary>
/// Base type for all platform-specific API attributes.
/// </summary>
[Conditional("DEBUG")]
internal abstract class OSPlatformAttribute : Attribute
{
private protected OSPlatformAttribute(string platformName)
@@ -1,6 +1,8 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
namespace System.Runtime.Versioning;
/// <summary>
@@ -26,6 +28,7 @@ namespace System.Runtime.Versioning;
AttributeTargets.Struct,
AllowMultiple = true,
Inherited = false)]
[Conditional("DEBUG")]
internal sealed class SupportedOSPlatformAttribute : OSPlatformAttribute
{
public SupportedOSPlatformAttribute(string platformName)
+3
ファイルの表示
@@ -0,0 +1,3 @@
using System.Runtime.Versioning;
[assembly: SupportedOSPlatform("windows6.2")]
+1 -1
ファイルの表示
@@ -21,7 +21,7 @@
<!-- .NET 6 uses the NuGet packages for TerraFX -->
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageReference Include="TerraFX.Interop.D3D12MemoryAllocator" Version="2.0.0-beta3" />
<PackageReference Include="TerraFX.Interop.D3D12MemoryAllocator" Version="2.0.1" />
</ItemGroup>
<!-- .NET Standard 2.0 uses a local fork -->
+1 -1
ファイルの表示
@@ -330,7 +330,7 @@ internal static unsafe class ID3D12DeviceExtensions
// an issue, as the initial state doesn't matter anyway and the readback buffer
// is still correctly transitioned when needed, so it can be safely ignored.
#if NET6_0_OR_GREATER
// Temporary constant due to the value not being available in the D3D12MA TerraFX version
// This value is defined in the 22000 SDK, which is not currently referenced by D3D12MA
(D3D12_MESSAGE_ID)1328
#else
D3D12_MESSAGE_ID_CREATERESOURCE_STATE_IGNORED
-20
ファイルの表示
@@ -1,20 +0,0 @@
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/coml2api.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
#if NET6_0_OR_GREATER
namespace TerraFX.Interop.Windows;
// TODO: remove this once TerraFX.Interop.Windows is updated
internal static partial class STGM
{
public const int STGM_READ = 0x00000000;
public const int STGM_WRITE = 0x00000001;
public const int STGM_READWRITE = 0x00000002;
}
#endif
-2
ファイルの表示
@@ -7,8 +7,6 @@ using ComputeSharp.Core.Extensions;
using ComputeSharp.Graphics.Extensions;
using TerraFX.Interop.Windows;
#pragma warning disable CA1416
namespace ComputeSharp.Graphics.Helpers;
/// <summary>
+3
ファイルの表示
@@ -1,7 +1,10 @@
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
[module: SkipLocalsInit]
[assembly: SupportedOSPlatform("windows6.2")]
[assembly: InternalsVisibleTo("ComputeSharp.Dynamic")]
[assembly: InternalsVisibleTo("ComputeSharp.Pix")]
[assembly: InternalsVisibleTo("ComputeSharp.Uwp")]
@@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFrameworks>net472;netcoreapp3.1;net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<NoWarn>$(NoWarn);CA1416</NoWarn>
</PropertyGroup>
<ItemGroup>
+7
ファイルの表示
@@ -1,7 +1,14 @@
using System.Diagnostics;
using System.Linq;
#if NET6_0_OR_GREATER
using System.Runtime.Versioning;
#endif
using ComputeSharp;
#if NET6_0_OR_GREATER
[assembly: SupportedOSPlatform("windows6.2")]
#endif
float[] array = Enumerable.Range(1, 100).Select(static i => (float)i).ToArray();
// Create the graphics buffer
+7
ファイルの表示
@@ -1,7 +1,14 @@
using System.Diagnostics;
using System.Linq;
#if NET6_0_OR_GREATER
using System.Runtime.Versioning;
#endif
using ComputeSharp;
#if NET6_0_OR_GREATER
[assembly: SupportedOSPlatform("windows6.2")]
#endif
float[] array = Enumerable.Range(1, 100).Select(static i => (float)i).ToArray();
// Create the graphics buffer
+7
ファイルの表示
@@ -1,7 +1,14 @@
using System.Diagnostics;
using System.Linq;
#if NET6_0_OR_GREATER
using System.Runtime.Versioning;
#endif
using ComputeSharp;
#if NET6_0_OR_GREATER
[assembly: SupportedOSPlatform("windows6.2")]
#endif
float[] array = Enumerable.Range(1, 100).Select(static i => (float)i).ToArray();
// Create the graphics buffer
+1
ファイルの表示
@@ -4,6 +4,7 @@
<TargetFrameworks>net472;netcoreapp3.1;net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<Platforms>AnyCPU;x64;ARM64</Platforms>
<NoWarn>$(NoWarn);CA1416</NoWarn>
</PropertyGroup>
<ItemGroup>
-2
ファイルの表示
@@ -5,8 +5,6 @@ using Microsoft.VisualStudio.TestTools.UnitTesting;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
#pragma warning disable CA1416
namespace ComputeSharp.Tests.DeviceLost.Helpers;
/// <summary>
@@ -4,6 +4,7 @@
<TargetFrameworks>net472;netcoreapp3.1;net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<Platforms>AnyCPU;x64;ARM64</Platforms>
<NoWarn>$(NoWarn);CA1416</NoWarn>
</PropertyGroup>
<ItemGroup>
@@ -5,6 +5,7 @@
<TargetFramework>net6.0</TargetFramework>
<Platforms>AnyCPU;x64;ARM64</Platforms>
<ImplicitUsings>enable</ImplicitUsings>
<NoWarn>$(NoWarn);CA1416</NoWarn>
</PropertyGroup>
<ItemGroup>
+1
ファイルの表示
@@ -4,6 +4,7 @@
<TargetFrameworks>net472;netcoreapp3.1;net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<Platforms>AnyCPU;x64;ARM64</Platforms>
<NoWarn>$(NoWarn);CA1416</NoWarn>
</PropertyGroup>
<ItemGroup>
+1
ファイルの表示
@@ -4,6 +4,7 @@
<TargetFrameworks>net472;netcoreapp3.1;net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<Platforms>AnyCPU;x64;ARM64</Platforms>
<NoWarn>$(NoWarn);CA1416</NoWarn>
</PropertyGroup>
<ItemGroup>