Merge pull request #612 from Sergio0694/dev/self-contained-d3d12

Use local D3D12 bindings for ComputeSharp
このコミットが含まれているのは:
Sergio Pedri authored and GitHub committed 2023-10-18 12:48:04 +02:00
コミット cc7860416a
474ファイル変更
+812 -845

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

+1
ファイルの表示
@@ -491,6 +491,7 @@ Global
samples\ComputeSharp.SwapChain.Shaders.Shared\ComputeSharp.SwapChain.Shaders.Shared.projitems*{0800bd51-499d-44c2-9417-fd1f7fdfe9c4}*SharedItemsImports = 13
samples\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.Shared.projitems*{209c95a3-fa53-431b-b688-3299ca6c29d2}*SharedItemsImports = 5
src\ComputeSharp.CodeFixing\ComputeSharp.CodeFixing.projitems*{29f6e256-ba0e-4f3b-854e-50839d67c6dd}*SharedItemsImports = 13
src\ComputeSharp.Win32.D3D12\ComputeSharp.Win32.D3D12.projitems*{314eb353-e7e3-4146-8111-685cc83ec1de}*SharedItemsImports = 5
src\ComputeSharp.Win32.D2D1\ComputeSharp.Win32.D2D1.projitems*{4d7d9ba8-a821-4b1c-9ee2-cbcf5849906e}*SharedItemsImports = 5
src\ComputeSharp.Win32.D3D12\ComputeSharp.Win32.D3D12.projitems*{514ff00e-bbf0-4d55-a47c-eeeb6208adce}*SharedItemsImports = 13
src\ComputeSharp.SourceGeneration\ComputeSharp.SourceGeneration.projitems*{51d5a422-d3a5-4c4d-8a6d-a048940bf279}*SharedItemsImports = 13
+4
ファイルの表示
@@ -59,6 +59,10 @@
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="TerraFX.Interop.Windows" Version="10.0.22621.2" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\ComputeSharp.SwapChain\Backend\Win32Application.cs" Link="Backend\Win32Application.cs" />
<Compile Include="..\ComputeSharp.SwapChain\Backend\Win32ApplicationRunner.cs" Link="Backend\Win32ApplicationRunner.cs" />
+4
ファイルの表示
@@ -13,6 +13,10 @@
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="TerraFX.Interop.Windows" Version="10.0.22621.2" />
</ItemGroup>
<ItemGroup>
<None Update="Textures\RustyMetal.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+1 -2
ファイルの表示
@@ -1,8 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
#pragma warning disable CS0649, IDE1006
+1 -2
ファイルの表示
@@ -1,8 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
#pragma warning disable CS0649, IDE1006
@@ -1,12 +1,10 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
using WinRT;
using WinRT.Interop;
using IInspectable = TerraFX.Interop.WinRT.IInspectable;
using IInspectable = ComputeSharp.Win32.IInspectable;
#pragma warning disable CS0649, IDE1006
+4 -5
ファイルの表示
@@ -1,11 +1,10 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
using WinRT;
using WinRT.Interop;
using IInspectable = TerraFX.Interop.WinRT.IInspectable;
using IInspectable = ComputeSharp.Win32.IInspectable;
#pragma warning disable CS0649, IDE1006
@@ -77,7 +76,7 @@ internal unsafe struct ICanvasFactoryNative
/// was not previously registered, or <see cref="S.S_FALSE"/> if <paramref name="resource"/> was already registered.
/// </returns>
/// <remarks>
/// The method validates at runtime that <paramref name="resource"/> is an <see cref="TerraFX.Interop.DirectX.ID2D1Image"/>
/// The method validates at runtime that <paramref name="resource"/> is an <see cref="ComputeSharp.Win32.ID2D1Image"/>
/// and that <paramref name="wrapper"/> is an <see cref="global::Microsoft.Graphics.Canvas.ICanvasImage"/>. Additionally,
/// <paramref name="wrapper"/> has to implement <c>IWeakReferenceSource</c> for this method to be successful.
/// </remarks>
@@ -100,7 +99,7 @@ internal unsafe struct ICanvasFactoryNative
/// resource was previously registered and could be correctly unregistered, <see cref="S.S_FALSE"/> otherwise.
/// </returns>
/// <remarks>
/// The method validates at runtime that <paramref name="resource"/> is an <see cref="TerraFX.Interop.DirectX.ID2D1Image"/>.
/// The method validates at runtime that <paramref name="resource"/> is an <see cref="ComputeSharp.Win32.ID2D1Image"/>.
/// </remarks>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[VtblIndex(8)]
+1 -3
ファイルの表示
@@ -1,9 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using TerraFX.Interop;
using ComputeSharp.Win32;
using WinRT;
using WinRT.Interop;
+1 -2
ファイルの表示
@@ -1,8 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
#pragma warning disable CS0649, IDE1006
@@ -1,8 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
#pragma warning disable CS0649, IDE1006
@@ -1,8 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
#pragma warning disable CS0649, IDE1006
+1 -3
ファイルの表示
@@ -1,9 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
#pragma warning disable CS0649, IDE1006
+2 -3
ファイルの表示
@@ -1,15 +1,14 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
#pragma warning disable CS0649, IDE1006
namespace ABI.Microsoft.Graphics.Canvas;
/// <summary>
/// An interface for an object that provides access to pooled <see cref="TerraFX.Interop.DirectX.ID2D1DeviceContext"/> objects.
/// An interface for an object that provides access to pooled <see cref="ID2D1DeviceContext"/> objects.
/// </summary>
[Guid("454A82A1-F024-40DB-BD5B-8F527FD58AD0")]
[NativeTypeName("class ID2D1DeviceContextPool : IUnknown")]
+1 -2
ファイルの表示
@@ -6,11 +6,10 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop.Windows;
#pragma warning disable CS0649, IDE1006
namespace TerraFX.Interop.WinRT;
namespace ComputeSharp.Win32;
/// <summary>
/// The native WinRT interface for <see href="https://learn.microsoft.com/windows/win32/api/inspectable/nn-inspectable-iinspectable"><c>IInspectable</c></see> objects.
+5 -5
ファイルの表示
@@ -1,7 +1,7 @@
using System.Numerics;
using System.Runtime.InteropServices;
using ABI.Microsoft.Graphics.Canvas.Effects;
using TerraFX.Interop;
using ComputeSharp.Win32;
using Windows.Foundation;
namespace ABI.Microsoft.Graphics.Canvas;
@@ -18,7 +18,7 @@ internal static unsafe class Win2D
/// <param name="image">The input <see cref="ICanvasImageInterop"/> instance to compute the bounds for.</param>
/// <param name="transform">The transform to use (optional).</param>
/// <param name="rect">The resulting bounds.</param>
/// <returns>The <see cref="TerraFX.Interop.Windows.HRESULT"/> for the operation.</returns>
/// <returns>The <see cref="HRESULT"/> for the operation.</returns>
[DllImport("Microsoft.Graphics.Canvas.dll", PreserveSig = true, ExactSpelling = true)]
[return: NativeTypeName("HRESULT")]
public static extern int GetBoundsForICanvasImageInterop(
@@ -34,7 +34,7 @@ internal static unsafe class Win2D
/// <param name="image">The target <see cref="ICanvasImageInterop"/> instance to execute the operation upon.</param>
/// <param name="sourceIndex">The input index to invalidate.</param>
/// <param name="invalidRectangle">The rectangle to invalidate.</param>
/// <returns>The <see cref="TerraFX.Interop.Windows.HRESULT"/> for the operation.</returns>
/// <returns>The <see cref="HRESULT"/> for the operation.</returns>
[DllImport("Microsoft.Graphics.Canvas.dll", PreserveSig = true, ExactSpelling = true)]
[return: NativeTypeName("HRESULT")]
public static extern int InvalidateSourceRectangleForICanvasImageInterop(
@@ -50,7 +50,7 @@ internal static unsafe class Win2D
/// <param name="image">The target <see cref="ICanvasImageInterop"/> instance to execute the operation upon.</param>
/// <param name="valueCount">The resulting length of the COM array returned via <paramref name="valueElements"/>.</param>
/// <param name="valueElements">The COM array with the sequence of invalid rectangles for the effect.</param>
/// <returns>The <see cref="TerraFX.Interop.Windows.HRESULT"/> for the operation.</returns>
/// <returns>The <see cref="HRESULT"/> for the operation.</returns>
[DllImport("Microsoft.Graphics.Canvas.dll", PreserveSig = true, ExactSpelling = true)]
[return: NativeTypeName("HRESULT")]
public static extern int GetInvalidRectanglesForICanvasImageInterop(
@@ -74,7 +74,7 @@ internal static unsafe class Win2D
/// <param name="sourceBounds">The sequence of bounds to consider in the resulting output.</param>
/// <param name="valueCount">The number of elements provided in <paramref name="valueElements"/>.</param>
/// <param name="valueElements">The sequence of resulting required rectangles to compute.</param>
/// <returns>The <see cref="TerraFX.Interop.Windows.HRESULT"/> for the operation.</returns>
/// <returns>The <see cref="HRESULT"/> for the operation.</returns>
[DllImport("Microsoft.Graphics.Canvas.dll", PreserveSig = true, ExactSpelling = true)]
[return: NativeTypeName("HRESULT")]
public static extern int GetRequiredSourceRectanglesForICanvasImageInterop(
+1 -2
ファイルの表示
@@ -3,8 +3,7 @@ using System.Runtime.CompilerServices;
using ABI.Microsoft.Graphics.Canvas;
using ComputeSharp.D2D1.WinUI.Extensions;
using ComputeSharp.D2D1.WinUI.Helpers;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
using Windows.Graphics.Effects;
namespace ComputeSharp.D2D1.WinUI.Buffers;
+1 -2
ファイルの表示
@@ -4,9 +4,8 @@ using System.Numerics;
using ABI.Microsoft.Graphics.Canvas;
using ComputeSharp.D2D1.Extensions;
using ComputeSharp.D2D1.WinUI.Helpers;
using ComputeSharp.Win32;
using Microsoft.Graphics.Canvas;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using Windows.Foundation;
using ICanvasResourceCreator = Microsoft.Graphics.Canvas.ICanvasResourceCreator;
+4 -6
ファイルの表示
@@ -1,8 +1,6 @@
using ABI.Microsoft.Graphics.Canvas;
using ComputeSharp.D2D1.Extensions;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using Win32 = TerraFX.Interop.Windows.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.WinUI.Extensions;
@@ -23,14 +21,14 @@ internal static unsafe class ICanvasDeviceExtensions
// Get the ICanvasResourceWrapperNative wrapper around the input device
canvasDevice.QueryInterface(
riid: Win32.__uuidof<ICanvasResourceWrapperNative>(),
riid: Win32.Windows.__uuidof<ICanvasResourceWrapperNative>(),
ppvObject: (void**)canvasDeviceResourceWrapperNative.GetAddressOf()).Assert();
// Get the underlying ID2D1Device1 instance in use
HRESULT hresult = canvasDeviceResourceWrapperNative.Get()->GetNativeResource(
device: null,
dpi: 0,
iid: Win32.__uuidof<ID2D1Device1>(),
iid: Win32.Windows.__uuidof<ID2D1Device1>(),
resource: (void**)d2D1Device1);
return hresult;
@@ -60,7 +58,7 @@ internal static unsafe class ICanvasDeviceExtensions
{
// Get the ID2D1DeviceContextPool interface reference
canvasDevice.QueryInterface(
riid: Win32.__uuidof<ID2D1DeviceContextPool>(),
riid: Win32.Windows.__uuidof<ID2D1DeviceContextPool>(),
ppvObject: (void**)d2D1DeviceContextPool.GetAddressOf()).Assert();
// Get a new ID2D1DeviceContextLease object from the retrieved pool
+1 -2
ファイルの表示
@@ -1,6 +1,5 @@
using ComputeSharp.D2D1.Extensions;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.WinUI.Extensions;
+1 -2
ファイルの表示
@@ -7,8 +7,7 @@ using ComputeSharp.D2D1.Extensions;
using ComputeSharp.D2D1.Interop;
using ComputeSharp.D2D1.Shaders.Interop.Effects.ResourceManagers;
using ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.WinUI.Extensions;
+3 -4
ファイルの表示
@@ -1,7 +1,6 @@
using System.Runtime.CompilerServices;
using ComputeSharp.D2D1.Extensions;
using TerraFX.Interop.Windows;
using Win32 = TerraFX.Interop.Windows.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.WinUI.Extensions;
@@ -35,8 +34,8 @@ internal static unsafe class IUnknownExtensions
using ComPtr<IUnknown> leftUnknown = default;
using ComPtr<IUnknown> rightUnknown = default;
((IUnknown*)Unsafe.AsPointer(ref left))->QueryInterface(Win32.__uuidof<IUnknown>(), (void**)leftUnknown.GetAddressOf()).Assert();
((IUnknown*)right)->QueryInterface(Win32.__uuidof<IUnknown>(), (void**)rightUnknown.GetAddressOf()).Assert();
((IUnknown*)Unsafe.AsPointer(ref left))->QueryInterface(Win32.Windows.__uuidof<IUnknown>(), (void**)leftUnknown.GetAddressOf()).Assert();
((IUnknown*)right)->QueryInterface(Win32.Windows.__uuidof<IUnknown>(), (void**)rightUnknown.GetAddressOf()).Assert();
return leftUnknown.Get() == rightUnknown.Get();
}
+2 -2
ファイルの表示
@@ -1,8 +1,8 @@
using System;
using System.Diagnostics.CodeAnalysis;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
using WinRT;
using IInspectable = TerraFX.Interop.WinRT.IInspectable;
using IInspectable = ComputeSharp.Win32.IInspectable;
namespace ComputeSharp.D2D1.WinUI.Helpers;
+2 -2
ファイルの表示
@@ -2,14 +2,14 @@ using System;
using System.Diagnostics.CodeAnalysis;
using ABI.Microsoft.Graphics.Canvas;
using ComputeSharp.D2D1.Extensions;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
using Windows.Graphics.Effects;
using WinRT;
namespace ComputeSharp.D2D1.WinUI.Helpers;
using CanvasDevice = Microsoft.Graphics.Canvas.CanvasDevice;
using IInspectable = TerraFX.Interop.WinRT.IInspectable;
using IInspectable = Win32.IInspectable;
/// <summary>
/// A helper type to replicate Win2D's <c>ResourceManager</c> type.
+1 -1
ファイルの表示
@@ -5,7 +5,7 @@ using ABI.Microsoft.Graphics.Canvas;
using ComputeSharp.D2D1.Extensions;
using ComputeSharp.D2D1.WinUI.Helpers;
using ComputeSharp.Interop;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
using Windows.Foundation;
using ICanvasEffect = Microsoft.Graphics.Canvas.Effects.ICanvasEffect;
using ICanvasResourceCreatorWithDpi = Microsoft.Graphics.Canvas.ICanvasResourceCreatorWithDpi;
+1 -3
ファイルの表示
@@ -5,9 +5,7 @@ using ComputeSharp.D2D1.Extensions;
using ComputeSharp.D2D1.Interop;
using ComputeSharp.D2D1.WinUI.Extensions;
using ComputeSharp.D2D1.WinUI.Helpers;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using TerraFX.Interop.WinRT;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.WinUI;
+1 -1
ファイルの表示
@@ -3,7 +3,7 @@ using ABI.Microsoft.Graphics.Canvas;
using ComputeSharp.D2D1.Extensions;
using ComputeSharp.D2D1.WinUI.Helpers;
using ComputeSharp.Interop;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
using Windows.Foundation;
using ICanvasResourceCreator = Microsoft.Graphics.Canvas.ICanvasResourceCreator;
+2 -4
ファイルの表示
@@ -7,12 +7,10 @@ using ComputeSharp.D2D1.Interop;
using ComputeSharp.D2D1.WinUI.Extensions;
using ComputeSharp.D2D1.WinUI.Helpers;
using ComputeSharp.Interop;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
using Windows.Graphics.Effects;
using static ABI.Microsoft.Graphics.Canvas.WIN2D_GET_D2D_IMAGE_FLAGS;
using static ABI.Microsoft.Graphics.Canvas.WIN2D_GET_DEVICE_ASSOCIATION_TYPE;
using Win32 = TerraFX.Interop.Windows.Windows;
namespace ComputeSharp.D2D1.WinUI;
@@ -64,7 +62,7 @@ unsafe partial class PixelShaderEffect<T>
}
// Set the association type if the copy was successful
if (Win32.SUCCEEDED(hresult))
if (Win32.Windows.SUCCEEDED(hresult))
{
*type = WIN2D_GET_DEVICE_ASSOCIATION_TYPE_REALIZATION_DEVICE;
}
+6 -8
ファイルの表示
@@ -7,16 +7,14 @@ using ComputeSharp.D2D1.WinUI.Buffers;
using ComputeSharp.D2D1.WinUI.Extensions;
using ComputeSharp.D2D1.WinUI.Helpers;
using ComputeSharp.Interop;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
using Windows.Graphics.Effects;
using static ABI.Microsoft.Graphics.Canvas.WIN2D_GET_D2D_IMAGE_FLAGS;
using static ABI.Microsoft.Graphics.Canvas.WIN2D_GET_DEVICE_ASSOCIATION_TYPE;
using static TerraFX.Interop.DirectX.D2D1_BORDER_MODE;
using static TerraFX.Interop.DirectX.D2D1_DPICOMPENSATION_INTERPOLATION_MODE;
using static TerraFX.Interop.DirectX.D2D1_DPICOMPENSATION_PROP;
using static TerraFX.Interop.DirectX.D2D1_PROPERTY_TYPE;
using Win32 = TerraFX.Interop.Windows.Windows;
using static ComputeSharp.Win32.D2D1_BORDER_MODE;
using static ComputeSharp.Win32.D2D1_DPICOMPENSATION_INTERPOLATION_MODE;
using static ComputeSharp.Win32.D2D1_DPICOMPENSATION_PROP;
using static ComputeSharp.Win32.D2D1_PROPERTY_TYPE;
namespace ComputeSharp.D2D1.WinUI;
@@ -133,7 +131,7 @@ unsafe partial class PixelShaderEffect<T>
// Try to get the ICanvasImageInterop interface from the input source
HRESULT hresult = RcwMarshaller.GetNativeInterface(value, canvasImageInterop.GetAddressOf());
if (!Win32.SUCCEEDED(hresult))
if (!Win32.Windows.SUCCEEDED(hresult))
{
// Only potentially handle E_NOINTERFACE, always throw in other cases
if (hresult != E.E_NOINTERFACE)
+1 -1
ファイルの表示
@@ -2,8 +2,8 @@ using System;
using ComputeSharp.D2D1.Interop;
using ComputeSharp.D2D1.WinUI.Extensions;
using ComputeSharp.Interop;
using ComputeSharp.Win32;
using Microsoft.Graphics.Canvas;
using TerraFX.Interop.DirectX;
namespace ComputeSharp.D2D1.WinUI;
+1 -1
ファイルの表示
@@ -2,7 +2,7 @@ using System;
using ComputeSharp.Interop;
using System.Runtime.CompilerServices;
using ComputeSharp.D2D1.WinUI.Helpers;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.WinUI;
+1 -2
ファイルの表示
@@ -3,10 +3,9 @@ using ABI.Microsoft.Graphics.Canvas;
using ComputeSharp.D2D1.Descriptors;
using ComputeSharp.D2D1.Interop;
using ComputeSharp.Interop;
using ComputeSharp.Win32;
using Microsoft.Graphics.Canvas;
using Microsoft.Graphics.Canvas.Effects;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
namespace ComputeSharp.D2D1.WinUI;
+1 -1
ファイルの表示
@@ -1,7 +1,7 @@
#if SOURCE_GENERATOR
using static Windows.Win32.Graphics.Direct2D.D2D1_BUFFER_PRECISION;
#else
using static TerraFX.Interop.DirectX.D2D1_BUFFER_PRECISION;
using static ComputeSharp.Win32.D2D1_BUFFER_PRECISION;
#endif
namespace ComputeSharp.D2D1;
+1 -1
ファイルの表示
@@ -1,7 +1,7 @@
#if SOURCE_GENERATOR
using static Windows.Win32.Graphics.Direct2D.D2D1_CHANNEL_DEPTH;
#else
using static TerraFX.Interop.DirectX.D2D1_CHANNEL_DEPTH;
using static ComputeSharp.Win32.D2D1_CHANNEL_DEPTH;
#endif
namespace ComputeSharp.D2D1;
+1 -1
ファイルの表示
@@ -3,7 +3,7 @@ using System;
using D3DCOMPILE = Windows.Win32.PInvoke;
#else
using ComputeSharp.D2D1.Interop;
using TerraFX.Interop.DirectX;
using ComputeSharp.Win32;
#pragma warning disable IDE0004
#endif
+1 -1
ファイルの表示
@@ -1,7 +1,7 @@
#if SOURCE_GENERATOR
using static Windows.Win32.Graphics.Direct2D.D2D1_FILTER;
#else
using static TerraFX.Interop.DirectX.D2D1_FILTER;
using static ComputeSharp.Win32.D2D1_FILTER;
#endif
namespace ComputeSharp.D2D1;
+1 -1
ファイルの表示
@@ -2,7 +2,7 @@ using System;
#if SOURCE_GENERATOR
using static Windows.Win32.Graphics.Direct2D.D2D1_PIXEL_OPTIONS;
#else
using static TerraFX.Interop.DirectX.D2D1_PIXEL_OPTIONS;
using static ComputeSharp.Win32.D2D1_PIXEL_OPTIONS;
#endif
namespace ComputeSharp.D2D1;
+1 -1
ファイルの表示
@@ -1,5 +1,5 @@
using System.Runtime.CompilerServices;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Extensions;
+1 -1
ファイルの表示
@@ -1,7 +1,7 @@
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Extensions;
+1 -1
ファイルの表示
@@ -1,7 +1,7 @@
using System;
using System.Drawing;
using System.Runtime.CompilerServices;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Extensions;
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
using static TerraFX.Interop.DirectX.D2D1_EXTEND_MODE;
using static ComputeSharp.Win32.D2D1_EXTEND_MODE;
namespace ComputeSharp.D2D1;
+1 -2
ファイルの表示
@@ -3,8 +3,7 @@ using System.Runtime.CompilerServices;
using ComputeSharp.D2D1.Descriptors;
using ComputeSharp.D2D1.Shaders.Loaders;
using ComputeSharp.D2D1.Shaders.Translation;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Interop;
+1 -2
ファイルの表示
@@ -9,8 +9,7 @@ using ComputeSharp.D2D1.Shaders.Interop.Buffers;
using ComputeSharp.D2D1.Shaders.Interop.Effects.ResourceManagers;
using ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
using ComputeSharp.D2D1.Shaders.Loaders;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Interop;
+1 -2
ファイルの表示
@@ -2,8 +2,7 @@ using System;
using System.Runtime.CompilerServices;
using ComputeSharp.D2D1.Descriptors;
using ComputeSharp.D2D1.Extensions;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Interop;
+1 -2
ファイルの表示
@@ -3,8 +3,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using ComputeSharp.D2D1.Extensions;
using ComputeSharp.D2D1.Shaders.Interop.Effects.ResourceManagers;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Interop;
+1 -2
ファイルの表示
@@ -2,8 +2,7 @@ using System;
using System.Buffers;
using System.Text;
using ComputeSharp.D2D1.Shaders.Translation;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Interop;
+1 -1
ファイルの表示
@@ -5,7 +5,7 @@ using System.Runtime.InteropServices;
using ComputeSharp.D2D1.Descriptors;
using ComputeSharp.D2D1.Interop.Effects;
using ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
#pragma warning disable CA1033
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
using static TerraFX.Interop.DirectX.D3D_FEATURE_LEVEL;
using static ComputeSharp.Win32.D3D_FEATURE_LEVEL;
namespace ComputeSharp.D2D1.Interop;
+1 -2
ファイルの表示
@@ -2,8 +2,7 @@ using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using ComputeSharp.D2D1.Descriptors;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Interop.Effects;
@@ -2,8 +2,7 @@ using System;
using System.Runtime.InteropServices;
using ComputeSharp.D2D1.Extensions;
using ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Interop.Effects;
@@ -3,8 +3,7 @@ using System.Runtime.InteropServices;
using ComputeSharp.D2D1.Extensions;
using ComputeSharp.D2D1.Shaders.Interop.Effects.ResourceManagers;
using ComputeSharp.D2D1.Shaders.Interop.Extensions;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Interop.Effects;
+1 -2
ファイルの表示
@@ -4,8 +4,7 @@ using System.Runtime.InteropServices;
using ComputeSharp.D2D1.Extensions;
using ComputeSharp.D2D1.Shaders.Interop.Effects.ResourceManagers;
using ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Interop.Effects;
+1 -2
ファイルの表示
@@ -2,8 +2,7 @@ using System.Runtime.CompilerServices;
#if !NET6_OR_GREATER
using System.Runtime.InteropServices;
#endif
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Interop.Effects;
+1 -2
ファイルの表示
@@ -5,8 +5,7 @@ using System.Runtime.CompilerServices;
#if !NET6_OR_GREATER
using System.Runtime.InteropServices;
#endif
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Interop.Effects;
+1 -2
ファイルの表示
@@ -3,8 +3,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
using ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Interop.Effects;
@@ -1,7 +1,6 @@
using System;
using System.Runtime.InteropServices;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Shaders.Interop.Effects.ResourceManagers;
@@ -1,8 +1,7 @@
using System;
using System.Runtime.InteropServices;
using ComputeSharp.D2D1.Shaders.Interop.Extensions;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Shaders.Interop.Effects.ResourceManagers;
@@ -3,8 +3,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
using ComputeSharp.D2D1.Interop;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Shaders.Interop.Effects.ResourceManagers;
@@ -1,8 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
#pragma warning disable CS0649
@@ -1,8 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
#pragma warning disable CS0649
@@ -1,6 +1,6 @@
using System;
using System.Runtime.InteropServices;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
@@ -1,6 +1,6 @@
using System;
using System.Runtime.InteropServices;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
@@ -3,8 +3,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
using ComputeSharp.D2D1.Interop;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
@@ -4,7 +4,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using ComputeSharp.D2D1.Extensions;
using ComputeSharp.D2D1.Interop.Effects;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
@@ -1,6 +1,6 @@
using System;
using System.Runtime.InteropServices;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
@@ -5,7 +5,7 @@ using System.Runtime.InteropServices;
using System.Threading;
using ComputeSharp.D2D1.Interop;
using ComputeSharp.D2D1.Interop.Effects;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
@@ -1,14 +1,14 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
#pragma warning disable CS0649
namespace ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
/// <summary>
/// The updater for <see cref="TerraFX.Interop.DirectX.ID2D1DrawInfo"/> type to use with built-in effects.
/// The updater for <see cref="ID2D1DrawInfo"/> type to use with built-in effects.
/// </summary>
[Guid("430C5B40-AE16-485F-90E6-4FA4915144B6")]
internal unsafe struct ID2D1DrawInfoUpdateContext
@@ -1,7 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
#pragma warning disable CS0649
+1 -1
ファイルの表示
@@ -1,7 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
#pragma warning disable CS0649
@@ -1,7 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
#pragma warning disable CS0649
+1 -2
ファイルの表示
@@ -1,7 +1,6 @@
using System;
using System.Runtime.CompilerServices;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Shaders.Interop.Extensions;
+1 -1
ファイルの表示
@@ -1,7 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using ComputeSharp.D2D1.Descriptors;
using TerraFX.Interop.DirectX;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Shaders.Loaders;
+1 -1
ファイルの表示
@@ -1,7 +1,7 @@
using System;
using System.Runtime.CompilerServices;
using ComputeSharp.D2D1.Descriptors;
using TerraFX.Interop.DirectX;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Shaders.Loaders;
+1 -1
ファイルの表示
@@ -3,7 +3,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using ComputeSharp.D2D1.Descriptors;
using ComputeSharp.D2D1.Extensions;
using TerraFX.Interop.DirectX;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Shaders.Loaders;
+1 -1
ファイルの表示
@@ -3,7 +3,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using ComputeSharp.D2D1.Descriptors;
using ComputeSharp.D2D1.Extensions;
using TerraFX.Interop.DirectX;
using ComputeSharp.Win32;
namespace ComputeSharp.D2D1.Shaders.Loaders;
+2 -2
ファイルの表示
@@ -8,8 +8,8 @@ using ComputeSharp.D2D1.Interop;
using Windows.Win32.Graphics.Direct3D;
using static Windows.Win32.Foundation.HRESULT;
#else
using TerraFX.Interop.DirectX;
using static TerraFX.Interop.Windows.S;
using ComputeSharp.Win32;
using static ComputeSharp.Win32.S;
#endif
namespace ComputeSharp.D2D1.Shaders.Translation;
+1 -2
ファイルの表示
@@ -12,8 +12,7 @@ using Windows.Win32.Graphics.Direct3D.Fxc;
using DirectX = Windows.Win32.PInvoke;
#else
using ComputeSharp.D2D1.Extensions;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
#endif
namespace ComputeSharp.D2D1.Shaders.Translation;
+1 -1
ファイルの表示
@@ -2,7 +2,7 @@ using System;
using System.Runtime.InteropServices;
using ComputeSharp.Core.Extensions;
using ComputeSharp.D3D12MemoryAllocator.Interop;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
namespace ComputeSharp.D3D12MemoryAllocator;
+11 -9
ファイルの表示
@@ -1,9 +1,11 @@
using ComputeSharp.Core.Extensions;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using static TerraFX.Interop.DirectX.D3D12_CPU_PAGE_PROPERTY;
using static TerraFX.Interop.DirectX.D3D12_HEAP_TYPE;
using static TerraFX.Interop.DirectX.D3D12_MEMORY_POOL;
using ComputeSharp.Win32;
using static ComputeSharp.Win32.D3D12_CPU_PAGE_PROPERTY;
using static ComputeSharp.Win32.D3D12_HEAP_TYPE;
using static ComputeSharp.Win32.D3D12_MEMORY_POOL;
using D3D12MA_Allocator = TerraFX.Interop.DirectX.D3D12MA_Allocator;
using D3D12MA_Pool = TerraFX.Interop.DirectX.D3D12MA_Pool;
using D3D12MA_POOL_DESC = TerraFX.Interop.DirectX.D3D12MA_POOL_DESC;
namespace ComputeSharp.D3D12MemoryAllocator.Extensions;
@@ -24,11 +26,11 @@ internal static unsafe class AllocatorExtensions
D3D12MA_POOL_DESC poolDesc = default;
poolDesc.HeapProperties.CreationNodeMask = 1;
poolDesc.HeapProperties.VisibleNodeMask = 1;
poolDesc.HeapProperties.Type = D3D12_HEAP_TYPE_CUSTOM;
poolDesc.HeapProperties.CPUPageProperty = D3D12_CPU_PAGE_PROPERTY_WRITE_BACK;
poolDesc.HeapProperties.MemoryPoolPreference = D3D12_MEMORY_POOL_L0;
poolDesc.HeapProperties.Type = (TerraFX.Interop.DirectX.D3D12_HEAP_TYPE)D3D12_HEAP_TYPE_CUSTOM;
poolDesc.HeapProperties.CPUPageProperty = (TerraFX.Interop.DirectX.D3D12_CPU_PAGE_PROPERTY)D3D12_CPU_PAGE_PROPERTY_WRITE_BACK;
poolDesc.HeapProperties.MemoryPoolPreference = (TerraFX.Interop.DirectX.D3D12_MEMORY_POOL)D3D12_MEMORY_POOL_L0;
allocator.CreatePool(&poolDesc, pool.GetAddressOf()).Assert();
((HRESULT)(int)allocator.CreatePool(&poolDesc, pool.GetAddressOf())).Assert();
return pool.Move();
}
+9 -7
ファイルの表示
@@ -1,9 +1,11 @@
using ComputeSharp.Core.Extensions;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using System.Runtime.CompilerServices;
using ComputeSharp.Core.Extensions;
using ComputeSharp.Win32;
using D3D12MA_Allocator = TerraFX.Interop.DirectX.D3D12MA_Allocator;
using D3D12MA_ALLOCATOR_DESC = TerraFX.Interop.DirectX.D3D12MA_ALLOCATOR_DESC;
using D3D12MemAlloc = TerraFX.Interop.DirectX.D3D12MemAlloc;
namespace ComputeSharp.Graphics.Extensions;
namespace ComputeSharp.D3D12MemoryAllocator.Extensions;
/// <summary>
/// A <see langword="class"/> with extensions for the <see cref="ID3D12Device"/> type.
@@ -21,10 +23,10 @@ internal static unsafe class ID3D12DeviceExtensions
using ComPtr<D3D12MA_Allocator> allocator = default;
D3D12MA_ALLOCATOR_DESC allocatorDesc = default;
allocatorDesc.pDevice = (ID3D12Device*)Unsafe.AsPointer(ref d3D12Device);
allocatorDesc.pAdapter = dxgiAdapter;
allocatorDesc.pDevice = (TerraFX.Interop.DirectX.ID3D12Device*)Unsafe.AsPointer(ref d3D12Device);
allocatorDesc.pAdapter = (TerraFX.Interop.DirectX.IDXGIAdapter*)dxgiAdapter;
D3D12MemAlloc.D3D12MA_CreateAllocator(&allocatorDesc, allocator.GetAddressOf()).Assert();
((HRESULT)(int)D3D12MemAlloc.D3D12MA_CreateAllocator(&allocatorDesc, allocator.GetAddressOf())).Assert();
return allocator.Move();
}
+2 -2
ファイルの表示
@@ -3,8 +3,8 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
using ComputeSharp.Interop.Allocation;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using ComputeSharp.Win32;
using D3D12MA_Allocation = TerraFX.Interop.DirectX.D3D12MA_Allocation;
namespace ComputeSharp.D3D12MemoryAllocator.Interop;
+4 -3
ファイルの表示
@@ -5,9 +5,10 @@ using System.Threading;
using ComputeSharp.D3D12MemoryAllocator.Extensions;
using ComputeSharp.Graphics.Extensions;
using ComputeSharp.Interop.Allocation;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using static TerraFX.Interop.DirectX.D3D12_FEATURE;
using ComputeSharp.Win32;
using static ComputeSharp.Win32.D3D12_FEATURE;
using D3D12MA_Allocator = TerraFX.Interop.DirectX.D3D12MA_Allocator;
using D3D12MA_Pool = TerraFX.Interop.DirectX.D3D12MA_Pool;
namespace ComputeSharp.D3D12MemoryAllocator.Interop;
+14 -9
ファイルの表示
@@ -3,9 +3,12 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
using ComputeSharp.Interop.Allocation;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
using static TerraFX.Interop.DirectX.D3D12MA_ALLOCATION_FLAGS;
using ComputeSharp.Win32;
using D3D12MA_Allocation = TerraFX.Interop.DirectX.D3D12MA_Allocation;
using D3D12MA_ALLOCATION_DESC = TerraFX.Interop.DirectX.D3D12MA_ALLOCATION_DESC;
using D3D12MA_ALLOCATION_FLAGS = TerraFX.Interop.DirectX.D3D12MA_ALLOCATION_FLAGS;
using D3D12MA_Allocator = TerraFX.Interop.DirectX.D3D12MA_Allocator;
using D3D12MA_Pool = TerraFX.Interop.DirectX.D3D12MA_Pool;
namespace ComputeSharp.D3D12MemoryAllocator.Interop;
@@ -180,10 +183,12 @@ internal unsafe struct ID3D12MemoryAllocatorImpl
BOOL clearAllocation,
ID3D12Allocation** allocation)
{
D3D12MA_ALLOCATION_FLAGS allocationFlags = clearAllocation ? D3D12MA_ALLOCATION_FLAG_COMMITTED : D3D12MA_ALLOCATION_FLAG_NONE;
D3D12MA_ALLOCATION_FLAGS allocationFlags = clearAllocation ?
D3D12MA_ALLOCATION_FLAGS.D3D12MA_ALLOCATION_FLAG_COMMITTED :
D3D12MA_ALLOCATION_FLAGS.D3D12MA_ALLOCATION_FLAG_NONE;
D3D12MA_ALLOCATION_DESC allocationDesc = default;
allocationDesc.HeapType = heapType;
allocationDesc.HeapType = (TerraFX.Interop.DirectX.D3D12_HEAP_TYPE)heapType;
allocationDesc.Flags = allocationFlags;
allocationDesc.CustomPool = @this->pool;
@@ -191,16 +196,16 @@ internal unsafe struct ID3D12MemoryAllocatorImpl
using ComPtr<ID3D12Resource> d3D12Resource = default;
// Invoke D3D12MA and create an allocation and resource
HRESULT hresult = @this->allocator->CreateResource(
TerraFX.Interop.Windows.HRESULT hresult = @this->allocator->CreateResource(
pAllocDesc: &allocationDesc,
pResourceDesc: resourceDescription,
InitialResourceState: resourceStates,
pResourceDesc: (TerraFX.Interop.DirectX.D3D12_RESOURCE_DESC*)resourceDescription,
InitialResourceState: (TerraFX.Interop.DirectX.D3D12_RESOURCE_STATES)resourceStates,
pOptimizedClearValue: null,
ppAllocation: d3D12MA_allocation.GetAddressOf(),
riidResource: Windows.__uuidof<ID3D12Resource>(),
ppvResource: (void**)d3D12Resource.GetAddressOf());
if (!Windows.SUCCEEDED(hresult))
if (!TerraFX.Interop.Windows.Windows.SUCCEEDED(hresult))
{
return hresult;
}
+1 -5
ファイルの表示
@@ -2,11 +2,7 @@ using System;
using System.Runtime.CompilerServices;
using ComputeSharp.Core.Extensions;
using ComputeSharp.Descriptors;
using TerraFX.Interop.DirectX;
using TerraFX.Interop.Windows;
#if !NET6_0_OR_GREATER
using DirectX = TerraFX.Interop.DirectX.DirectX2;
#endif
using ComputeSharp.Win32;
namespace ComputeSharp.Interop;
+1 -1
ファイルの表示
@@ -2,7 +2,7 @@ using System;
using System.Buffers;
using System.Runtime.CompilerServices;
using System.Text;
using TerraFX.Interop.DirectX;
using ComputeSharp.Win32;
namespace ComputeSharp.Interop;
+1 -1
ファイルの表示
@@ -1,5 +1,5 @@
using System.Runtime.InteropServices;
using TerraFX.Interop.DirectX;
using ComputeSharp.Win32;
namespace ComputeSharp.Interop;
+1 -1
ファイルの表示
@@ -3,7 +3,7 @@
// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.606.4
// Original source is Copyright © Microsoft. Licensed under the MIT license
namespace TerraFX.Interop.DirectX;
namespace ComputeSharp.Win32;
internal enum D3D_FEATURE_LEVEL
{
+1 -1
ファイルの表示
@@ -3,7 +3,7 @@
// Ported from um/d2d1.h in the Windows SDK for Windows 10.0.22000.0
// Original source is Copyright © Microsoft. All rights reserved.
namespace TerraFX.Interop.DirectX;
namespace ComputeSharp.Win32;
internal enum D2D1_EXTEND_MODE : uint
{
+1 -1
ファイルの表示
@@ -8,7 +8,7 @@ using System.Runtime.InteropServices;
#pragma warning disable CS0649
namespace TerraFX.Interop.DirectX;
namespace ComputeSharp.Win32;
[Guid("06152247-6F50-465A-9245-118BFD3B6007")]
[NativeTypeName("struct ID2D1Factory : IUnknown")]
+1 -2
ファイルの表示
@@ -6,11 +6,10 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop.Windows;
#pragma warning disable CS0649
namespace TerraFX.Interop.DirectX;
namespace ComputeSharp.Win32;
[Guid("65019F75-8DA2-497C-B32C-DFA34E48EDE6")]
[NativeTypeName("struct ID2D1Image : ID2D1Resource")]
+1 -1
ファイルの表示
@@ -3,7 +3,7 @@
// Ported from um/d2d1_1.h in the Windows SDK for Windows 10.0.22000.0
// Original source is Copyright © Microsoft. All rights reserved.
namespace TerraFX.Interop.DirectX;
namespace ComputeSharp.Win32;
internal enum D2D1_BUFFER_PRECISION : uint
{
+1 -1
ファイルの表示
@@ -3,7 +3,7 @@
// Ported from um/d2d1_1.h in the Windows SDK for Windows 10.0.22000.0
// Original source is Copyright © Microsoft. All rights reserved.
namespace TerraFX.Interop.DirectX;
namespace ComputeSharp.Win32;
internal enum D2D1_CHANNEL_DEPTH : uint
{
+1 -1
ファイルの表示
@@ -3,7 +3,7 @@
// Ported from um/d2d1_1.h in the Windows SDK for Windows 10.0.22621.0
// Original source is Copyright © Microsoft. All rights reserved.
namespace TerraFX.Interop.DirectX;
namespace ComputeSharp.Win32;
internal enum D2D1_PROPERTY : uint
{
+1 -1
ファイルの表示
@@ -3,7 +3,7 @@
// Ported from um/d2d1_1.h in the Windows SDK for Windows 10.0.22000.0
// Original source is Copyright © Microsoft. All rights reserved.
namespace TerraFX.Interop.DirectX;
namespace ComputeSharp.Win32;
internal enum D2D1_PROPERTY_TYPE : uint
{
+1 -1
ファイルの表示
@@ -6,7 +6,7 @@
using System;
using System.Runtime.InteropServices;
namespace TerraFX.Interop.DirectX;
namespace ComputeSharp.Win32;
[Guid("B4F34A19-2383-4D76-94F6-EC343657C3DC")]
[NativeTypeName("struct ID2D1CommandList : ID2D1Image")]
+1 -2
ファイルの表示
@@ -6,11 +6,10 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop.Windows;
#pragma warning disable CS0649
namespace TerraFX.Interop.DirectX;
namespace ComputeSharp.Win32;
[Guid("E8F7FE7A-191C-466D-AD95-975678BDA998")]
[NativeTypeName("struct ID2D1DeviceContext : ID2D1RenderTarget")]
+1 -2
ファイルの表示
@@ -6,11 +6,10 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop.Windows;
#pragma warning disable CS0649
namespace TerraFX.Interop.DirectX;
namespace ComputeSharp.Win32;
[Guid("28211A43-7D89-476F-8181-2D6159B220AD")]
[NativeTypeName("struct ID2D1Effect : ID2D1Properties")]
+1 -2
ファイルの表示
@@ -6,11 +6,10 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop.Windows;
#pragma warning disable CS0649
namespace TerraFX.Interop.DirectX;
namespace ComputeSharp.Win32;
[Guid("BB12D362-DAEE-4B9A-AA1D-14BA401CFA1F")]
[NativeTypeName("struct ID2D1Factory1 : ID2D1Factory")]
+1 -2
ファイルの表示
@@ -6,11 +6,10 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop.Windows;
#pragma warning disable CS0649
namespace TerraFX.Interop.DirectX;
namespace ComputeSharp.Win32;
[Guid("31E6E7BC-E0FF-4D46-8C64-A0A8C41C15D3")]
[NativeTypeName("struct ID2D1Multithread : IUnknown")]
+1 -2
ファイルの表示
@@ -6,9 +6,8 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using TerraFX.Interop.Windows;
namespace TerraFX.Interop.DirectX;
namespace ComputeSharp.Win32;
[Guid("D21768E1-23A4-4823-A14B-7C3EBA85D658")]
[NativeTypeName("struct ID2D1Device1 : ID2D1Device")]
+1 -1
ファイルの表示
@@ -5,7 +5,7 @@
using System;
namespace TerraFX.Interop.DirectX;
namespace ComputeSharp.Win32;
[Flags]
internal enum D2D1_CHANGE_TYPE : uint
474ファイル中100ファイルを読み込みました。 変更されたファイルが多すぎるため、それ以降のファイルは表示していません。 さらに表示