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

Commit

Permalink
[DXGI] Improve to DXGI 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSt committed Jun 6, 2016
1 parent e2f613c commit 6b09ebb
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Source/SharpDX.DXGI/Factory4.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,16 @@ public Adapter GetWarpAdapter()
EnumWarpAdapter(Utilities.GetGuidFromType(typeof(Adapter)), out adapterPtr);
return new Adapter(adapterPtr);
}
/// <summary>
/// Gets the adapter for the specified LUID.
/// </summary>
/// <param name="adapterLuid">A unique value that identifies the adapter.</param>
/// <returns>The adapter.</returns>
public Adapter GetAdapterByLuid(long adapterLuid)
{
IntPtr adapterPtr;
EnumAdapterByLuid(adapterLuid, Utilities.GetGuidFromType(typeof(Adapter)), out adapterPtr);
return new Adapter(adapterPtr);
}
}
}
23 changes: 22 additions & 1 deletion Source/SharpDX.DXGI/Mapping.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<include id="windows.ui.xaml.media.dxinterop" file="windows.ui.xaml.media.dxinterop.h" attach="true" />
<include id="dxgi1_3" file="dxgi1_3.h" attach="true" />
<include id="dxgi1_4" file="dxgi1_4.h" attach="true" />
<include id="dxgi1_5" file="dxgi1_5.h" attach="true" />

<context-set id="dxgi-all">
<context>sharpdx-dxgi</context>
Expand All @@ -45,6 +46,7 @@
<context>dxgi1_2</context>
<context>dxgi1_3</context>
<context>dxgi1_4</context>
<context>dxgi1_5</context>
<context>winerror</context>
<context>windows.ui.xaml.media.dxinterop</context>
</context-set>
Expand Down Expand Up @@ -200,6 +202,10 @@
<map param="IDXGISwapChain::Present::Flags" type="DXGI_PRESENT_FLAGS" />
<map param="IDXGISwapChain::ResizeBuffers::SwapChainFlags" type="DXGI_SWAP_CHAIN_FLAG" />

<map param="IDXGISwapChain3::CheckColorSpaceSupport::pColorSpaceSupport" type="DXGI_SWAP_CHAIN_COLOR_SPACE_SUPPORT_FLAG" />
<map param="IDXGISwapChain3::CheckColorSpaceSupport::pColorSpaceSupport" return="true" />
<map param="IDXGISwapChain3::ResizeBuffers1::SwapChainFlags" type="DXGI_SWAP_CHAIN_FLAG" />

<map method="IDXGIOutputDuplication::MapDesktopSurface" visibility="internal"/>

<map method="IDXGIResource1::CreateSubresourceSurface" visibility="internal"/>
Expand All @@ -213,9 +219,18 @@

<ifdef name="STORE_APP">
<map method="IDXGIOutput1::DuplicateOutput" visibility="internal"/>
<map method="IDXGIOutput5::DuplicateOutput1" visibility="internal"/>
<map param="IDXGIOutput1::DuplicateOutput::ppOutputDuplication" type="void"/>
<map param="IDXGIOutput5::DuplicateOutput1::ppOutputDuplication" type="void"/>
</ifdef>
<map param="IDXGIOutput1::DuplicateOutput::ppOutputDuplication" return="true"/>
<map param="IDXGIOutput5::DuplicateOutput1::ppOutputDuplication" return="true"/>

<map param="IDXGIOutput3::CheckOverlaySupport::pFlags" type="DXGI_OVERLAY_SUPPORT_FLAG"/>
<map param="IDXGIOutput3::CheckOverlaySupport::pFlags" return="true"/>

<map param="IDXGIOutput4::CheckOverlayColorSpaceSupport::pFlags" type="DXGI_OVERLAY_COLOR_SPACE_SUPPORT_FLAG"/>
<map param="IDXGIOutput4::CheckOverlayColorSpaceSupport::pFlags" return="true"/>

<map param="ISurfaceImageSourceNative::BeginDraw::surface" return="true"/>

Expand All @@ -237,8 +252,14 @@
<map method="IDXGISwapChain2::[GS]etSourceSize" visibility="internal" />

<map method="IDXGIFactory4::EnumWarpAdapter" visibility="private"/>
<map method="IDXGIFactory4::EnumAdapterByLuid" visibility="private"/>

<!--
<map param="IDXGIAdapter3::RegisterHardwareContentProtectionTeardownStatusEvent::pdwCookie" return="true"/>
<map param="IDXGIAdapter3::QueryVideoMemoryInfo::pVideoMemoryInfo" return="true"/>
<map param="IDXGIAdapter3::RegisterVideoMemoryBudgetChangeNotificationEvent::pdwCookie" return="true"/>


<!--
// *****************************************************************
// DXGI Functions
// *****************************************************************
Expand Down

0 comments on commit 6b09ebb

Please sign in to comment.