winrt-Windows.Graphics.DirectX.Direct3D11.Interop 4.0.0__cp315-cp315-win32.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- winrt/_winrt_windows_graphics_directx_direct3d11_interop.cp315-win32.pyd +0 -0
- winrt/_winrt_windows_graphics_directx_direct3d11_interop.pyi +10 -0
- winrt/windows/graphics/directx/direct3d11/interop/__init__.py +81 -0
- winrt/windows/graphics/directx/direct3d11/interop/py.typed +0 -0
- winrt_windows_graphics_directx_direct3d11_interop-4.0.0.dist-info/METADATA +39 -0
- winrt_windows_graphics_directx_direct3d11_interop-4.0.0.dist-info/RECORD +9 -0
- winrt_windows_graphics_directx_direct3d11_interop-4.0.0.dist-info/WHEEL +5 -0
- winrt_windows_graphics_directx_direct3d11_interop-4.0.0.dist-info/licenses/LICENSE +22 -0
- winrt_windows_graphics_directx_direct3d11_interop-4.0.0.dist-info/top_level.txt +1 -0
|
Binary file
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from winrt.runtime.interop import InterfaceCapsule
|
|
2
|
+
|
|
3
|
+
def create_direct3d11_device_from_dxgi_device(
|
|
4
|
+
dxgi_device: int, /
|
|
5
|
+
) -> InterfaceCapsule: ...
|
|
6
|
+
def create_direct3d11_surface_from_dxgi_surface(
|
|
7
|
+
dxgi_surface: int, /
|
|
8
|
+
) -> InterfaceCapsule: ...
|
|
9
|
+
def get_dxgi_device_from_object(capsule: InterfaceCapsule, /) -> int: ...
|
|
10
|
+
def get_dxgi_surface_from_object(capsule: InterfaceCapsule, /) -> int: ...
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
from uuid import UUID
|
|
2
|
+
|
|
3
|
+
import winrt.runtime.interop as _runtime
|
|
4
|
+
import winrt._winrt_windows_graphics_directx_direct3d11_interop as _native
|
|
5
|
+
from winrt.system import Object
|
|
6
|
+
from winrt.windows.graphics.directx.direct3d11 import IDirect3DDevice, IDirect3DSurface
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"create_direct3d11_device_from_dxgi_device",
|
|
10
|
+
"create_direct3d11_surface_from_dxgi_surface",
|
|
11
|
+
"get_dxgi_device_from_object",
|
|
12
|
+
"get_dxgi_surface_from_object",
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
_IID_IINSPECTABLE = UUID("AF86E2E0-B12D-4C6A-9C5A-D7AA65101E90")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def create_direct3d11_device_from_dxgi_device(dxgi_device: int, /) -> IDirect3DDevice:
|
|
19
|
+
"""
|
|
20
|
+
Creates an instance of IDirect3DDevice from an IDXGIDevice.
|
|
21
|
+
|
|
22
|
+
Args:
|
|
23
|
+
dxgi_device (IDXGIDevice*): The IDXGIDevice to create the Direct3DDevice
|
|
24
|
+
from.
|
|
25
|
+
|
|
26
|
+
Returns:
|
|
27
|
+
A Direct3DDevice instance that wraps the DXGIDevice.
|
|
28
|
+
"""
|
|
29
|
+
return _runtime.wrap_interface(
|
|
30
|
+
_native.create_direct3d11_device_from_dxgi_device(dxgi_device),
|
|
31
|
+
IDirect3DDevice,
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def create_direct3d11_surface_from_dxgi_surface(
|
|
36
|
+
dxgi_surface: int, /
|
|
37
|
+
) -> IDirect3DSurface:
|
|
38
|
+
"""
|
|
39
|
+
Creates an instance of IDirect3DSurface from an IDXGISurface.
|
|
40
|
+
|
|
41
|
+
Args:
|
|
42
|
+
dxgi_surface (IDXGISurface*): The IDXGISurface to create the
|
|
43
|
+
Direct3DSurface from.
|
|
44
|
+
|
|
45
|
+
Returns:
|
|
46
|
+
A Direct3DSurface instance that wraps the DXGISurface.
|
|
47
|
+
"""
|
|
48
|
+
return _runtime.wrap_interface(
|
|
49
|
+
_native.create_direct3d11_surface_from_dxgi_surface(dxgi_surface),
|
|
50
|
+
IDirect3DSurface,
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def get_dxgi_device_from_object(device: Object, /) -> int:
|
|
55
|
+
"""
|
|
56
|
+
Retrieves the IDXGIDevice from a Direct3D object.
|
|
57
|
+
|
|
58
|
+
Args:
|
|
59
|
+
device: The WinRT object to retrieve the IDXGIDevice from.
|
|
60
|
+
|
|
61
|
+
Returns:
|
|
62
|
+
Pointer to IDXGIDevice interface of the WinRT object.
|
|
63
|
+
"""
|
|
64
|
+
return _native.get_dxgi_device_from_object(
|
|
65
|
+
_runtime.as_interface(device, _IID_IINSPECTABLE)
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def get_dxgi_surface_from_object(surface: Object, /) -> int:
|
|
70
|
+
"""
|
|
71
|
+
Retrieves the IDXGISurface from a Direct3D object.
|
|
72
|
+
|
|
73
|
+
Args:
|
|
74
|
+
surface: The WinRT object to retrieve the IDXGISurface from.
|
|
75
|
+
|
|
76
|
+
Returns:
|
|
77
|
+
Pointer to IDXGISurface interface of the WinRT object.
|
|
78
|
+
"""
|
|
79
|
+
return _native.get_dxgi_surface_from_object(
|
|
80
|
+
_runtime.as_interface(surface, _IID_IINSPECTABLE)
|
|
81
|
+
)
|
|
File without changes
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: winrt-Windows.Graphics.DirectX.Direct3D11.Interop
|
|
3
|
+
Version: 4.0.0
|
|
4
|
+
Summary: Converts between DXGI devices and surfaces and the IDirect3DDevice and IDirect3DSurface that WinRT APIs take.
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
|
+
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/interop/winrt-Windows.Graphics.DirectX.Direct3D11.Interop/CHANGELOG.md
|
|
9
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
16
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
17
|
+
Classifier: Intended Audience :: Developers
|
|
18
|
+
Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
|
|
19
|
+
Classifier: Typing :: Typed
|
|
20
|
+
Requires-Python: >=3.11
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Requires-Dist: winrt-runtime<5,>=4.0.0
|
|
24
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX.Direct3D11>=4!10.0.28000.2705
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
|
|
27
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
28
|
+
|
|
29
|
+
# winrt-Windows.Graphics.DirectX.Direct3D11.Interop
|
|
30
|
+
|
|
31
|
+
Converts between DXGI devices and surfaces and the `IDirect3DDevice` and `IDirect3DSurface` that WinRT APIs take.
|
|
32
|
+
|
|
33
|
+
This package provides the `winrt.windows.graphics.directx.direct3d11.interop` module.
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
pip install winrt-Windows.Graphics.DirectX.Direct3D11.Interop
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
installs it with `winrt-Windows.Graphics.DirectX.Direct3D11`.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
winrt/_winrt_windows_graphics_directx_direct3d11_interop.cp315-win32.pyd,sha256=p0kXskbDde0PYuYbyvu33wLHl6ZkeVDqJol9quiTGqs,11776
|
|
2
|
+
winrt/_winrt_windows_graphics_directx_direct3d11_interop.pyi,sha256=p1uKVk5GaJOutBWHKooer3ISuM9Zh6MSVGJSGYTjRAU,400
|
|
3
|
+
winrt/windows/graphics/directx/direct3d11/interop/__init__.py,sha256=VeAiboeOnXPU-_Cdgoo89cCEYpRX2MN34uRgTCXgkWA,2319
|
|
4
|
+
winrt/windows/graphics/directx/direct3d11/interop/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
winrt_windows_graphics_directx_direct3d11_interop-4.0.0.dist-info/licenses/LICENSE,sha256=dyVKOMqPV0fimbzMhqN3zpg6K6Y2OlekwrdfiZTBm8M,1225
|
|
6
|
+
winrt_windows_graphics_directx_direct3d11_interop-4.0.0.dist-info/METADATA,sha256=umHA7fIfNbB_nMpKu8AdkoVnaIuN-CK88TjKytRFqeM,1799
|
|
7
|
+
winrt_windows_graphics_directx_direct3d11_interop-4.0.0.dist-info/WHEEL,sha256=hw69xxiYuOcOqid9WoScsymTbZ3eDs5HQ4gUZZtdDhs,97
|
|
8
|
+
winrt_windows_graphics_directx_direct3d11_interop-4.0.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
|
|
9
|
+
winrt_windows_graphics_directx_direct3d11_interop-4.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
Copyright (c) 2021-2026 David Lechner <david@pybricks.com>
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt
|