Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

Commit 0866697

Browse files
authored
Merge pull request #876 from andrewst/sdk15063
Update maping on Windows 10 Creators Update SDK 15063
2 parents 654cfd4 + 662dc97 commit 0866697

20 files changed

Lines changed: 365 additions & 12 deletions

File tree

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You can find more documentation on the [Wiki](http://sharpdx.org/wiki)
1313
In order to compile SharpDX, you need to install **Visual Studio 2017 or newer** with the following workloads and components:
1414

1515
- [x] Visual C++ Toolset Component
16-
- [x] Windows 10 Anniversary SDK (10.0.14393.0) Component
16+
- [x] Windows 10 Creators Update SDK (10.0.15063.0) Component
1717
- [x] C# Development Workload
1818
- [x] .NET Core Cross Platform Development Workload
1919

Source/Mapping.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424

2525
<include-dir override="true">$(THIS_CONFIG_PATH)\..\External\LegacyHeaders</include-dir>
2626
<include-dir>$(VC_TOOLS_PATH)\include</include-dir>
27-
<include-dir>=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10;Include\10.0.14393.0\shared</include-dir>
28-
<include-dir>=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10;Include\10.0.14393.0\um</include-dir>
29-
<include-dir>=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10;Include\10.0.14393.0\ucrt</include-dir>
27+
<include-dir>=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10;Include\10.0.15063.0\shared</include-dir>
28+
<include-dir>=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10;Include\10.0.15063.0\um</include-dir>
29+
<include-dir>=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10;Include\10.0.15063.0\ucrt</include-dir>
3030

3131
<var name="FILTER_PASTING_ERROR">error: pasting .*a valid preprocessing token</var>
3232

@@ -59,7 +59,7 @@
5959
// For XAudio2 patch
6060
#define __unaligned __attribute((__unaligned))
6161

62-
#define NTDDI_VERSION NTDDI_WIN10_RS1
62+
#define NTDDI_VERSION NTDDI_WIN10_RS2
6363

6464
</include-prolog>
6565

Source/SharpDX.DXGI/Mapping.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,26 @@
3131
<include id="dxgiformat" file="dxgiformat.h" attach="true" />
3232
<include id="winerror" file="winerror.h"/>
3333
<include id="dxgitype" file="dxgitype.h" attach="true"/>
34+
<include id="dxgicommon" file="dxgicommon.h" attach="true"/>
3435
<include id="dxgi1_2" file="dxgi1_2.h" attach="true" />
3536
<include id="windows.ui.xaml.media.dxinterop" file="windows.ui.xaml.media.dxinterop.h" attach="true" />
3637
<include id="dxgi1_3" file="dxgi1_3.h" attach="true" />
3738
<include id="dxgi1_4" file="dxgi1_4.h" attach="true" />
3839
<include id="dxgi1_5" file="dxgi1_5.h" attach="true" />
40+
<include id="dxgi1_6" file="dxgi1_6.h" attach="true" />
3941

4042
<context-set id="dxgi-all">
4143
<context>sharpdx-dxgi</context>
4244
<context>sharpdx-dxgi-ext</context>
4345
<context>dxgi</context>
4446
<context>dxgiformat</context>
4547
<context>dxgitype</context>
48+
<context>dxgicommon</context>
4649
<context>dxgi1_2</context>
4750
<context>dxgi1_3</context>
4851
<context>dxgi1_4</context>
4952
<context>dxgi1_5</context>
53+
<context>dxgi1_6</context>
5054
<context>winerror</context>
5155
<context>windows.ui.xaml.media.dxinterop</context>
5256
</context-set>
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
// Copyright (c) 2010-2014 SharpDX - Alexandre Mutel
2+
//
3+
// Permission is hereby granted, free of charge, to any person obtaining a copy
4+
// of this software and associated documentation files (the "Software"), to deal
5+
// in the Software without restriction, including without limitation the rights
6+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
// copies of the Software, and to permit persons to whom the Software is
8+
// furnished to do so, subject to the following conditions:
9+
//
10+
// The above copyright notice and this permission notice shall be included in
11+
// all copies or substantial portions of the Software.
12+
//
13+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
// THE SOFTWARE.
20+
using System;
21+
using System.Collections.Generic;
22+
using System.Text;
23+
24+
namespace SharpDX.Direct2D1
25+
{
26+
public partial class ColorContext1
27+
{
28+
/// <summary>
29+
/// Initializes a new instance of <see cref="ColorContext1"/> class from ColorSpaceType.
30+
/// </summary>
31+
/// <param name="context">No documentation.</param>
32+
/// <param name="wicColorContext">No documentation.</param>
33+
/// <unmanaged>HRESULT ID2D1DeviceContext5::CreateColorContextFromDxgiColorSpace([In] DXGI_COLOR_SPACE_TYPE colorSpace,[Out, Fast] ID2D1ColorContext1** colorContext)</unmanaged>
34+
public ColorContext1(DeviceContext5 context, SharpDX.DXGI.ColorSpaceType colorSpace)
35+
: base(IntPtr.Zero)
36+
{
37+
context.CreateColorContextFromDxgiColorSpace(colorSpace, this);
38+
}
39+
40+
/// <summary>
41+
/// Initializes a new instance of <see cref="ColorContext1"/> class from SimpleColorProfile.
42+
/// </summary>
43+
/// <param name="context">No documentation.</param>
44+
/// <param name="wicColorContext">No documentation.</param>
45+
/// <unmanaged>HRESULT ID2D1DeviceContext5::CreateColorContextFromDxgiColorSpace([In] DXGI_COLOR_SPACE_TYPE colorSpace,[Out, Fast] ID2D1ColorContext1** colorContext)</unmanaged>
46+
public ColorContext1(DeviceContext5 context, ref SharpDX.Direct2D1.SimpleColorProfile simpleProfile)
47+
: base(IntPtr.Zero)
48+
{
49+
context.CreateColorContextFromSimpleColorProfile(ref simpleProfile, this);
50+
}
51+
52+
/// <summary>
53+
/// Initializes a new instance of <see cref="ColorContext1"/> class from ColorSpaceType.
54+
/// </summary>
55+
/// <param name="context">No documentation.</param>
56+
/// <param name="wicColorContext">No documentation.</param>
57+
/// <unmanaged>HRESULT ID2D1DeviceContext5::CreateColorContextFromDxgiColorSpace([In] DXGI_COLOR_SPACE_TYPE colorSpace,[Out, Fast] ID2D1ColorContext1** colorContext)</unmanaged>
58+
public ColorContext1(EffectContext2 context, SharpDX.DXGI.ColorSpaceType colorSpace)
59+
: base(IntPtr.Zero)
60+
{
61+
context.CreateColorContextFromDxgiColorSpace(colorSpace, this);
62+
}
63+
64+
/// <summary>
65+
/// Initializes a new instance of <see cref="ColorContext1"/> class from SimpleColorProfile.
66+
/// </summary>
67+
/// <param name="context">No documentation.</param>
68+
/// <param name="wicColorContext">No documentation.</param>
69+
/// <unmanaged>HRESULT ID2D1DeviceContext5::CreateColorContextFromDxgiColorSpace([In] DXGI_COLOR_SPACE_TYPE colorSpace,[Out, Fast] ID2D1ColorContext1** colorContext)</unmanaged>
70+
public ColorContext1(EffectContext2 context, ref SharpDX.Direct2D1.SimpleColorProfile simpleProfile)
71+
: base(IntPtr.Zero)
72+
{
73+
context.CreateColorContextFromSimpleColorProfile(ref simpleProfile, this);
74+
}
75+
}
76+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
namespace SharpDX.Direct2D1
2+
{
3+
public partial interface CommandSink4
4+
{
5+
/// <summary>
6+
/// <p>Sets a new primitive blend mode. Allows access to the MAX primitive blend mode.</p>
7+
/// </summary>
8+
/// <param name="primitiveBlend">The primitive blend that will apply to subsequent primitives.</param>
9+
/// <returns><p>If this method succeeds, it returns <strong><see cref="SharpDX.Result.Ok"/></strong>. Otherwise, it returns an <strong><see cref="SharpDX.Result"/></strong> error code.</p></returns>
10+
/// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='ID2D1CommandSink4::SetPrimitiveBlend2']/*"/>
11+
/// <msdn-id>mt797802</msdn-id>
12+
/// <unmanaged>HRESULT ID2D1CommandSink4::SetPrimitiveBlend2([In] D2D1_PRIMITIVE_BLEND primitiveBlend)</unmanaged>
13+
/// <unmanaged-short>ID2D1CommandSink4::SetPrimitiveBlend2</unmanaged-short>
14+
void SetPrimitiveBlend2(PrimitiveBlend primitiveBlend);
15+
}
16+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
namespace SharpDX.Direct2D1
2+
{
3+
internal partial class CommandSink4Native
4+
{
5+
/// <summary>
6+
/// <p>Sets a new primitive blend mode. Allows access to the MAX primitive blend mode.</p>
7+
/// </summary>
8+
/// <param name="primitiveBlend">The primitive blend that will apply to subsequent primitives.</param>
9+
/// <returns><p>If this method succeeds, it returns <strong><see cref="SharpDX.Result.Ok"/></strong>. Otherwise, it returns an <strong><see cref="SharpDX.Result"/></strong> error code.</p></returns>
10+
/// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='ID2D1CommandSink4::SetPrimitiveBlend2']/*"/>
11+
/// <msdn-id>mt797802</msdn-id>
12+
/// <unmanaged>HRESULT ID2D1CommandSink4::SetPrimitiveBlend2([In] D2D1_PRIMITIVE_BLEND primitiveBlend)</unmanaged>
13+
/// <unmanaged-short>ID2D1CommandSink4::SetPrimitiveBlend2</unmanaged-short>
14+
public void SetPrimitiveBlend2(PrimitiveBlend primitiveBlend)
15+
{
16+
SetPrimitiveBlend2_(primitiveBlend);
17+
}
18+
}
19+
}

Source/SharpDX.Direct2D1/Device3.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public partial class Device3
3333
/// Each call to CreateDevice returns a unique <see cref="SharpDX.Direct2D1.Device3"/> object.The <see cref="SharpDX.DXGI.Device"/> object is obtained by calling QueryInterface on an ID3D10Device or an ID3D11Device.
3434
/// </remarks>
3535
/// <unmanaged>HRESULT ID2D1Factory3::CreateDevice([In] IDXGIDevice* dxgiDevice,[Out] ID2D1Device2** d2dDevice2)</unmanaged>
36-
public Device3(Factory4 factory, SharpDX.DXGI.Device3 device)
36+
public Device3(Factory4 factory, SharpDX.DXGI.Device device)
3737
: base(IntPtr.Zero)
3838
{
3939
factory.CreateDevice(device, this);
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// Copyright (c) 2010-2014 SharpDX - Alexandre Mutel
2+
//
3+
// Permission is hereby granted, free of charge, to any person obtaining a copy
4+
// of this software and associated documentation files (the "Software"), to deal
5+
// in the Software without restriction, including without limitation the rights
6+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
// copies of the Software, and to permit persons to whom the Software is
8+
// furnished to do so, subject to the following conditions:
9+
//
10+
// The above copyright notice and this permission notice shall be included in
11+
// all copies or substantial portions of the Software.
12+
//
13+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
// THE SOFTWARE.
20+
21+
using System;
22+
23+
namespace SharpDX.Direct2D1
24+
{
25+
public partial class Device4
26+
{
27+
/// <summary>
28+
/// Initializes a new instance of the <see cref="Device4"/> class.
29+
/// </summary>
30+
/// <param name="factory"><para>The <see cref="Factory5"/> object used when creating the <see cref="SharpDX.Direct2D1.Device3"/>. </para></param>
31+
/// <param name="device"><para>The <see cref="SharpDX.DXGI.Device"/> object used when creating the <see cref="SharpDX.Direct2D1.Device4"/>. </para></param>
32+
/// <remarks>
33+
/// Each call to CreateDevice returns a unique <see cref="SharpDX.Direct2D1.Device4"/> object.The <see cref="SharpDX.DXGI.Device4"/> object is obtained by calling QueryInterface on an ID3D10Device or an ID3D11Device.
34+
/// </remarks>
35+
/// <unmanaged>HRESULT ID2D1Factory5::CreateDevice([In] IDXGIDevice* dxgiDevice,[Out] ID2D1Device5** d2dDevice4)</unmanaged>
36+
public Device4(Factory5 factory, SharpDX.DXGI.Device device)
37+
: base(IntPtr.Zero)
38+
{
39+
factory.CreateDevice(device, this);
40+
}
41+
}
42+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// Copyright (c) 2010-2014 SharpDX - Alexandre Mutel
2+
//
3+
// Permission is hereby granted, free of charge, to any person obtaining a copy
4+
// of this software and associated documentation files (the "Software"), to deal
5+
// in the Software without restriction, including without limitation the rights
6+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
// copies of the Software, and to permit persons to whom the Software is
8+
// furnished to do so, subject to the following conditions:
9+
//
10+
// The above copyright notice and this permission notice shall be included in
11+
// all copies or substantial portions of the Software.
12+
//
13+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
// THE SOFTWARE.
20+
21+
using System;
22+
23+
namespace SharpDX.Direct2D1
24+
{
25+
public partial class Device5
26+
{
27+
/// <summary>
28+
/// Initializes a new instance of the <see cref="Device5"/> class.
29+
/// </summary>
30+
/// <param name="factory"><para>The <see cref="Factory4"/> object used when creating the <see cref="SharpDX.Direct2D1.Device5"/>. </para></param>
31+
/// <param name="device"><para>The <see cref="SharpDX.DXGI.Device"/> object used when creating the <see cref="SharpDX.Direct2D1.Device5"/>. </para></param>
32+
/// <remarks>
33+
/// Each call to CreateDevice returns a unique <see cref="SharpDX.Direct2D1.Device5"/> object.The <see cref="SharpDX.DXGI.Device"/> object is obtained by calling QueryInterface on an ID3D10Device or an ID3D11Device.
34+
/// </remarks>
35+
/// <unmanaged>HRESULT ID2D1Factory3::CreateDevice([In] IDXGIDevice* dxgiDevice,[Out] ID2D1Device2** d2dDevice2)</unmanaged>
36+
public Device5(Factory6 factory, SharpDX.DXGI.Device device)
37+
: base(IntPtr.Zero)
38+
{
39+
factory.CreateDevice(device, this);
40+
}
41+
}
42+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// Copyright (c) 2010-2014 SharpDX - Alexandre Mutel
2+
//
3+
// Permission is hereby granted, free of charge, to any person obtaining a copy
4+
// of this software and associated documentation files (the "Software"), to deal
5+
// in the Software without restriction, including without limitation the rights
6+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
// copies of the Software, and to permit persons to whom the Software is
8+
// furnished to do so, subject to the following conditions:
9+
//
10+
// The above copyright notice and this permission notice shall be included in
11+
// all copies or substantial portions of the Software.
12+
//
13+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
// THE SOFTWARE.
20+
21+
using System;
22+
23+
namespace SharpDX.Direct2D1
24+
{
25+
public partial class DeviceContext4
26+
{
27+
/// <summary>
28+
/// Initializes a new instance of the <see cref="DeviceContext4"/> class using an existing <see cref="Device4"/>.
29+
/// </summary>
30+
/// <param name="device">The device.</param>
31+
/// <param name="options">The options to be applied to the created device context.</param>
32+
/// <remarks>
33+
/// The new device context will not have a selected target bitmap. The caller must create and select a bitmap as the target surface of the context.
34+
/// </remarks>
35+
/// <unmanaged>HRESULT ID2D1Device4::CreateDeviceContext([In] D2D1_DEVICE_CONTEXT_OPTIONS options,[Out] ID2D1DeviceContext4** DeviceContext4)</unmanaged>
36+
public DeviceContext4(Device4 device, DeviceContextOptions options)
37+
: base(IntPtr.Zero)
38+
{
39+
device.CreateDeviceContext(options, this);
40+
}
41+
}
42+
}

0 commit comments

Comments
 (0)