Skip to content

Commit 5820e85

Browse files
committed
Adding of the binding for IDirect3DDeviceManager9 in namespace "Vortice.DirectXVA2api".
More details: As the documentation of the IDirect3DDeviceManager9 class is already in the Vortice.Direct3D9 project, I've added the dxva2api header file here. Taking example of "d3d9on12" file header has already been added in this project but in a dedicated namespace, I reproduce the same architecture by putting the class IDirect3DDeviceManager9 in the new namespace "Vortice.DirectXVA2api". Following the SharpGen builds errors, I've "removed" all the functions, structs and interfaces not needed.
1 parent 2534aa9 commit 5820e85

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/Vortice.Direct3D9/Mappings.xml

+27
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
</post>
3434
</include>
3535
<include file="d3d9on12.h" namespace="Vortice.Direct3D9on12" attach="true"/>
36+
<include file="dxva2api.h" namespace="Vortice.DirectXVA2api" attach="true"/>
3637

3738
<extension>
3839
<define struct="Vortice.Direct3D9.Rect" sizeof="16" />
@@ -1504,5 +1505,31 @@
15041505
<map param="Direct3DCreate9On12Ex::pOverrideList" type="void" keep-pointers="true"/>
15051506

15061507
<remove function="D3DPERF.*" />
1508+
1509+
<!-- IDirect3DDeviceManager9 -->
1510+
<remove function="DXVA2CreateDirect3DDeviceManager9" />
1511+
<remove function="DXVA2CreateVideoService" />
1512+
<remove struct="DXVA2_VideoProcessBltParams" />
1513+
<remove interface ="IDirectXVideoAccelerationService" />
1514+
<remove interface ="IDirectXVideoDecoder" />
1515+
<remove interface ="IDirectXVideoDecoderService" />
1516+
<remove interface ="IDirectXVideoMemoryConfiguration" />
1517+
<remove interface ="IDirectXVideoProcessor" />
1518+
<remove interface ="IDirectXVideoProcessorService" />
1519+
1520+
<map method="IDirect3DDeviceManager9::CloseDeviceHandle" visibility="internal" />
1521+
<!-- HRESULT CloseDeviceHandle([in] HANDLE hDevice); -->
1522+
<map method="IDirect3DDeviceManager9::GetVideoService" visibility="internal" />
1523+
<!-- HRESULT GetVideoService([in] HANDLE hDevice,[in] REFIID riid, [out] void **ppService); -->
1524+
<map method="IDirect3DDeviceManager9::LockDevice" visibility="internal" />
1525+
<!-- HRESULT LockDevice([in] HANDLE hDevice, [out] IDirect3DDevice9 **ppDevice, [in] BOOL fBlock);-->
1526+
<map method="IDirect3DDeviceManager9::OpenDeviceHandle" visibility="internal" />
1527+
<!-- HRESULT OpenDeviceHandle([out] HANDLE *phDevice);-->
1528+
<map method="IDirect3DDeviceManager9::ResetDevice" visibility="internal" />
1529+
<!-- HRESULT ResetDevice([in] IDirect3DDevice9 *pDevice,[in] UINT resetToken);-->
1530+
<map method="IDirect3DDeviceManager9::TestDevice" visibility="internal" />
1531+
<!-- HRESULT TestDevice([in] HANDLE hDevice);-->
1532+
<map method="IDirect3DDeviceManager9::UnlockDevice" visibility="internal" />
1533+
<!-- HRESULT UnlockDevice([in] HANDLE hDevice,[in] BOOL fSaveState);-->
15071534
</mapping>
15081535
</config>

0 commit comments

Comments
 (0)