Fix remaining build errors with C# preview

このコミットが含まれているのは:
Sergio Pedri committed 2022-09-16 10:38:38 -07:00
1 親 a0048c183b
コミット 58bf15b4d9
12ファイル変更
+12 -299

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

-9
ファイルの表示
@@ -26,15 +26,6 @@ namespace TerraFX.Interop.DirectX
}
}
public ref D3D12_DEPTH_STENCIL_VALUE DepthStencil
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.DepthStencil, 1));
}
}
[StructLayout(LayoutKind.Explicit)]
internal unsafe partial struct _Anonymous_e__Union
{
-29
ファイルの表示
@@ -3,9 +3,7 @@
// Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
namespace TerraFX.Interop.DirectX
{
@@ -18,33 +16,6 @@ namespace TerraFX.Interop.DirectX
[NativeTypeName("D3D12_RESOURCE_BARRIER::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.20348.0/um/d3d12.h:2883:5)")]
public _Anonymous_e__Union Anonymous;
public ref D3D12_RESOURCE_TRANSITION_BARRIER Transition
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Transition, 1));
}
}
public ref D3D12_RESOURCE_ALIASING_BARRIER Aliasing
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Aliasing, 1));
}
}
public ref D3D12_RESOURCE_UAV_BARRIER UAV
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.UAV, 1));
}
}
[StructLayout(LayoutKind.Explicit)]
internal partial struct _Anonymous_e__Union
{
-29
ファイルの表示
@@ -3,9 +3,7 @@
// Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
namespace TerraFX.Interop.DirectX
{
@@ -18,33 +16,6 @@ namespace TerraFX.Interop.DirectX
public D3D12_SHADER_VISIBILITY ShaderVisibility;
public ref D3D12_ROOT_DESCRIPTOR_TABLE DescriptorTable
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.DescriptorTable, 1));
}
}
public ref D3D12_ROOT_CONSTANTS Constants
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Constants, 1));
}
}
public ref D3D12_ROOT_DESCRIPTOR Descriptor
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Descriptor, 1));
}
}
[StructLayout(LayoutKind.Explicit)]
internal partial struct _Anonymous_e__Union
{
-29
ファイルの表示
@@ -3,9 +3,7 @@
// Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
namespace TerraFX.Interop.DirectX
{
@@ -18,33 +16,6 @@ namespace TerraFX.Interop.DirectX
public D3D12_SHADER_VISIBILITY ShaderVisibility;
public ref D3D12_ROOT_DESCRIPTOR_TABLE1 DescriptorTable
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.DescriptorTable, 1));
}
}
public ref D3D12_ROOT_CONSTANTS Constants
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Constants, 1));
}
}
public ref D3D12_ROOT_DESCRIPTOR1 Descriptor
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Descriptor, 1));
}
}
[StructLayout(LayoutKind.Explicit)]
internal partial struct _Anonymous_e__Union
{
+5 -84
ファイルの表示
@@ -3,9 +3,9 @@
// Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
namespace TerraFX.Interop.DirectX
{
@@ -20,102 +20,23 @@ namespace TerraFX.Interop.DirectX
[NativeTypeName("D3D12_SHADER_RESOURCE_VIEW_DESC::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.20348.0/um/d3d12.h:3094:5)")]
public _Anonymous_e__Union Anonymous;
[UnscopedRef]
public ref D3D12_BUFFER_SRV Buffer
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Buffer, 1));
}
}
public ref D3D12_TEX1D_SRV Texture1D
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1D, 1));
}
}
public ref D3D12_TEX1D_ARRAY_SRV Texture1DArray
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1DArray, 1));
return ref Anonymous.Buffer;
}
}
[UnscopedRef]
public ref D3D12_TEX2D_SRV Texture2D
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1));
}
}
public ref D3D12_TEX2D_ARRAY_SRV Texture2DArray
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1));
}
}
public ref D3D12_TEX2DMS_SRV Texture2DMS
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMS, 1));
}
}
public ref D3D12_TEX2DMS_ARRAY_SRV Texture2DMSArray
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMSArray, 1));
}
}
public ref D3D12_TEX3D_SRV Texture3D
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture3D, 1));
}
}
public ref D3D12_TEXCUBE_SRV TextureCube
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.TextureCube, 1));
}
}
public ref D3D12_TEXCUBE_ARRAY_SRV TextureCubeArray
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.TextureCubeArray, 1));
}
}
public ref D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV RaytracingAccelerationStructure
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.RaytracingAccelerationStructure, 1));
return ref Anonymous.Texture2D;
}
}
-20
ファイルの表示
@@ -3,9 +3,7 @@
// Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
namespace TerraFX.Interop.DirectX
{
@@ -18,24 +16,6 @@ namespace TerraFX.Interop.DirectX
[NativeTypeName("D3D12_TEXTURE_COPY_LOCATION::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.20348.0/um/d3d12.h:2917:5)")]
public _Anonymous_e__Union Anonymous;
public ref D3D12_PLACED_SUBRESOURCE_FOOTPRINT PlacedFootprint
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.PlacedFootprint, 1));
}
}
public ref uint SubresourceIndex
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.SubresourceIndex, 1));
}
}
[StructLayout(LayoutKind.Explicit)]
internal partial struct _Anonymous_e__Union
{
+5 -39
ファイルの表示
@@ -3,9 +3,9 @@
// Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
namespace TerraFX.Interop.DirectX
{
@@ -18,57 +18,23 @@ namespace TerraFX.Interop.DirectX
[NativeTypeName("D3D12_UNORDERED_ACCESS_VIEW_DESC::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.20348.0/um/d3d12.h:3309:5)")]
public _Anonymous_e__Union Anonymous;
[UnscopedRef]
public ref D3D12_BUFFER_UAV Buffer
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Buffer, 1));
}
}
public ref D3D12_TEX1D_UAV Texture1D
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1D, 1));
}
}
public ref D3D12_TEX1D_ARRAY_UAV Texture1DArray
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1DArray, 1));
}
}
public ref D3D12_TEX2D_UAV Texture2D
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1));
}
}
public ref D3D12_TEX2D_ARRAY_UAV Texture2DArray
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1));
return ref Anonymous.Buffer;
}
}
[UnscopedRef]
public ref D3D12_TEX3D_UAV Texture3D
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture3D, 1));
return ref Anonymous.Texture3D;
}
}
-20
ファイルの表示
@@ -3,9 +3,7 @@
// Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
namespace TerraFX.Interop.DirectX
{
@@ -16,24 +14,6 @@ namespace TerraFX.Interop.DirectX
[NativeTypeName("D3D12_VERSIONED_ROOT_SIGNATURE_DESC::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.20348.0/um/d3d12.h:3711:5)")]
public _Anonymous_e__Union Anonymous;
public ref D3D12_ROOT_SIGNATURE_DESC Desc_1_0
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Desc_1_0, 1));
}
}
public ref D3D12_ROOT_SIGNATURE_DESC1 Desc_1_1
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Desc_1_1, 1));
}
}
[StructLayout(LayoutKind.Explicit)]
internal partial struct _Anonymous_e__Union
{
-20
ファイルの表示
@@ -3,9 +3,7 @@
// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
namespace TerraFX.Interop.Windows
{
@@ -24,24 +22,6 @@ namespace TerraFX.Interop.Windows
[NativeTypeName("LONGLONG")]
public long QuadPart;
public ref uint LowPart
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.LowPart, 1));
}
}
public ref int HighPart
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.HighPart, 1));
}
}
internal partial struct _Anonymous_e__Struct
{
[NativeTypeName("DWORD")]
-20
ファイルの表示
@@ -3,9 +3,7 @@
// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal;
namespace TerraFX.Interop.Windows
{
@@ -24,24 +22,6 @@ namespace TerraFX.Interop.Windows
[NativeTypeName("ULONGLONG")]
public ulong QuadPart;
public ref uint LowPart
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.LowPart, 1));
}
}
public ref uint HighPart
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.HighPart, 1));
}
}
internal partial struct _Anonymous_e__Struct
{
[NativeTypeName("DWORD")]
+1
ファイルの表示
@@ -30,6 +30,7 @@
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\src\ComputeSharp.Core\Properties\Polyfills\UnscopedRefAttribute.cs" Link="Properties\Polyfills\UnscopedRefAttribute.cs" />
<Compile Include="..\ComputeSharp.Tests\Attributes\AdditionalDataAttribute.cs" Link="Attributes\AdditionalDataAttribute.cs" />
<Compile Include="..\ComputeSharp.Tests\Attributes\AdditionalResourceAttribute.cs" Link="Attributes\AdditionalResourceAttribute.cs" />
<Compile Include="..\ComputeSharp.Tests\Attributes\AllDevicesAttribute.cs" Link="Attributes\AllDevicesAttribute.cs" />
+1
ファイルの表示
@@ -40,6 +40,7 @@
<Compile Include="..\..\samples\ComputeSharp.ImageProcessing\Processors\HlslBokehBlurProcessor{TPixel}.cs" Link="Imaging\Processors\HlslBokehBlurProcessor{TPixel}.cs" />
<Compile Include="..\..\samples\ComputeSharp.ImageProcessing\Processors\HlslGaussianBlurProcessor.cs" Link="Imaging\Processors\HlslGaussianBlurProcessor.cs" />
<Compile Include="..\..\samples\ComputeSharp.ImageProcessing\Processors\HlslGaussianBlurProcessor{TPixel}.cs" Link="Imaging\Processors\HlslGaussianBlurProcessor{TPixel}.cs" />
<Compile Include="..\..\src\ComputeSharp.Core\Properties\Polyfills\UnscopedRefAttribute.cs" Link="Properties\Polyfills\UnscopedRefAttribute.cs" />
</ItemGroup>
<ItemGroup>