winrt-Windows.Graphics.DirectX.Direct3D11 2.1.0__tar.gz → 2.3.0__tar.gz
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_windows_graphics_directx_direct3d11-2.1.0 → winrt_windows_graphics_directx_direct3d11-2.3.0}/PKG-INFO +4 -4
- {winrt_windows_graphics_directx_direct3d11-2.1.0 → winrt_windows_graphics_directx_direct3d11-2.3.0}/all-requirements.txt +2 -2
- {winrt_windows_graphics_directx_direct3d11-2.1.0 → winrt_windows_graphics_directx_direct3d11-2.3.0}/py.Windows.Graphics.DirectX.Direct3D11.cpp +89 -9
- {winrt_windows_graphics_directx_direct3d11-2.1.0 → winrt_windows_graphics_directx_direct3d11-2.3.0}/pyproject.toml +3 -2
- winrt_windows_graphics_directx_direct3d11-2.3.0/pywinrt-version.txt +1 -0
- {winrt_windows_graphics_directx_direct3d11-2.1.0 → winrt_windows_graphics_directx_direct3d11-2.3.0}/requirements.txt +2 -2
- {winrt_windows_graphics_directx_direct3d11-2.1.0 → winrt_windows_graphics_directx_direct3d11-2.3.0}/winrt/_winrt_windows_graphics_directx_direct3d11.pyi +1 -5
- {winrt_windows_graphics_directx_direct3d11-2.1.0 → winrt_windows_graphics_directx_direct3d11-2.3.0}/winrt/windows/graphics/directx/direct3d11/__init__.py +1 -1
- {winrt_windows_graphics_directx_direct3d11-2.1.0 → winrt_windows_graphics_directx_direct3d11-2.3.0}/winrt_Windows.Graphics.DirectX.Direct3D11.egg-info/PKG-INFO +4 -4
- winrt_windows_graphics_directx_direct3d11-2.3.0/winrt_Windows.Graphics.DirectX.Direct3D11.egg-info/requires.txt +4 -0
- winrt_windows_graphics_directx_direct3d11-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_graphics_directx_direct3d11-2.1.0/winrt_Windows.Graphics.DirectX.Direct3D11.egg-info/requires.txt +0 -4
- {winrt_windows_graphics_directx_direct3d11-2.1.0 → winrt_windows_graphics_directx_direct3d11-2.3.0}/README.md +0 -0
- {winrt_windows_graphics_directx_direct3d11-2.1.0 → winrt_windows_graphics_directx_direct3d11-2.3.0}/setup.cfg +0 -0
- {winrt_windows_graphics_directx_direct3d11-2.1.0 → winrt_windows_graphics_directx_direct3d11-2.3.0}/setup.py +0 -0
- {winrt_windows_graphics_directx_direct3d11-2.1.0 → winrt_windows_graphics_directx_direct3d11-2.3.0}/winrt/windows/graphics/directx/direct3d11/py.typed +0 -0
- {winrt_windows_graphics_directx_direct3d11-2.1.0 → winrt_windows_graphics_directx_direct3d11-2.3.0}/winrt_Windows.Graphics.DirectX.Direct3D11.egg-info/SOURCES.txt +0 -0
- {winrt_windows_graphics_directx_direct3d11-2.1.0 → winrt_windows_graphics_directx_direct3d11-2.3.0}/winrt_Windows.Graphics.DirectX.Direct3D11.egg-info/dependency_links.txt +0 -0
- {winrt_windows_graphics_directx_direct3d11-2.1.0 → winrt_windows_graphics_directx_direct3d11-2.3.0}/winrt_Windows.Graphics.DirectX.Direct3D11.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Graphics.DirectX.Direct3D11
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,11 +10,11 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.3.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.3.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
2
|
|
|
3
|
-
winrt-Windows.Graphics.DirectX[all]==2.
|
|
3
|
+
winrt-Windows.Graphics.DirectX[all]==2.3.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Graphics.DirectX.Direct3D11.h"
|
|
4
4
|
|
|
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
29
29
|
{
|
|
30
30
|
try
|
|
31
31
|
{
|
|
32
|
-
|
|
32
|
+
static std::optional<bool> is_overload_present{};
|
|
33
|
+
|
|
34
|
+
if (!is_overload_present.has_value())
|
|
35
|
+
{
|
|
36
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Foundation.IClosable", L"Close", 0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
33
40
|
{
|
|
34
41
|
py::set_arg_count_version_error(0);
|
|
35
42
|
return nullptr;
|
|
@@ -59,7 +66,14 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
59
66
|
{
|
|
60
67
|
try
|
|
61
68
|
{
|
|
62
|
-
|
|
69
|
+
static std::optional<bool> is_overload_present{};
|
|
70
|
+
|
|
71
|
+
if (!is_overload_present.has_value())
|
|
72
|
+
{
|
|
73
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.DirectX.Direct3D11.IDirect3DDevice", L"Trim", 0);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (!is_overload_present.value())
|
|
63
77
|
{
|
|
64
78
|
py::set_arg_count_version_error(0);
|
|
65
79
|
return nullptr;
|
|
@@ -178,7 +192,14 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
178
192
|
{
|
|
179
193
|
try
|
|
180
194
|
{
|
|
181
|
-
|
|
195
|
+
static std::optional<bool> is_overload_present{};
|
|
196
|
+
|
|
197
|
+
if (!is_overload_present.has_value())
|
|
198
|
+
{
|
|
199
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Foundation.IClosable", L"Close", 0);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
if (!is_overload_present.value())
|
|
182
203
|
{
|
|
183
204
|
py::set_arg_count_version_error(0);
|
|
184
205
|
return nullptr;
|
|
@@ -204,7 +225,14 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
204
225
|
{
|
|
205
226
|
try
|
|
206
227
|
{
|
|
207
|
-
|
|
228
|
+
static std::optional<bool> is_property_present{};
|
|
229
|
+
|
|
230
|
+
if (!is_property_present.has_value())
|
|
231
|
+
{
|
|
232
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.DirectX.Direct3D11.IDirect3DSurface", L"Description");
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
if (!is_property_present.value())
|
|
208
236
|
{
|
|
209
237
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
210
238
|
return nullptr;
|
|
@@ -470,6 +498,23 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
470
498
|
}
|
|
471
499
|
}
|
|
472
500
|
|
|
501
|
+
static PyObject* _repr_Direct3DMultisampleDescription(PyObject* self) noexcept
|
|
502
|
+
{
|
|
503
|
+
py::pyobj_handle Count{PyObject_GetAttrString(self, "count")};
|
|
504
|
+
if (!Count)
|
|
505
|
+
{
|
|
506
|
+
return nullptr;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
py::pyobj_handle Quality{PyObject_GetAttrString(self, "quality")};
|
|
510
|
+
if (!Quality)
|
|
511
|
+
{
|
|
512
|
+
return nullptr;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
return PyUnicode_FromFormat("Direct3DMultisampleDescription(count=%R, quality=%R)", Count.get(), Quality.get());
|
|
516
|
+
}
|
|
517
|
+
|
|
473
518
|
static PyType_Slot _type_slots_Direct3DMultisampleDescription[] = {
|
|
474
519
|
{ Py_tp_new, reinterpret_cast<void*>(_new_Direct3DMultisampleDescription) },
|
|
475
520
|
{ Py_tp_init, reinterpret_cast<void*>(_init_Direct3DMultisampleDescription) },
|
|
@@ -477,6 +522,7 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
477
522
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_Direct3DMultisampleDescription) },
|
|
478
523
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_Direct3DMultisampleDescription) },
|
|
479
524
|
{ Py_tp_richcompare, reinterpret_cast<void*>(_richcompare_Direct3DMultisampleDescription) },
|
|
525
|
+
{ Py_tp_repr, reinterpret_cast<void*>(_repr_Direct3DMultisampleDescription) },
|
|
480
526
|
{ }
|
|
481
527
|
};
|
|
482
528
|
|
|
@@ -738,6 +784,35 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
738
784
|
}
|
|
739
785
|
}
|
|
740
786
|
|
|
787
|
+
static PyObject* _repr_Direct3DSurfaceDescription(PyObject* self) noexcept
|
|
788
|
+
{
|
|
789
|
+
py::pyobj_handle Width{PyObject_GetAttrString(self, "width")};
|
|
790
|
+
if (!Width)
|
|
791
|
+
{
|
|
792
|
+
return nullptr;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
py::pyobj_handle Height{PyObject_GetAttrString(self, "height")};
|
|
796
|
+
if (!Height)
|
|
797
|
+
{
|
|
798
|
+
return nullptr;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
py::pyobj_handle Format{PyObject_GetAttrString(self, "format")};
|
|
802
|
+
if (!Format)
|
|
803
|
+
{
|
|
804
|
+
return nullptr;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
py::pyobj_handle MultisampleDescription{PyObject_GetAttrString(self, "multisample_description")};
|
|
808
|
+
if (!MultisampleDescription)
|
|
809
|
+
{
|
|
810
|
+
return nullptr;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
return PyUnicode_FromFormat("Direct3DSurfaceDescription(width=%R, height=%R, format=%R, multisample_description=%R)", Width.get(), Height.get(), Format.get(), MultisampleDescription.get());
|
|
814
|
+
}
|
|
815
|
+
|
|
741
816
|
static PyType_Slot _type_slots_Direct3DSurfaceDescription[] = {
|
|
742
817
|
{ Py_tp_new, reinterpret_cast<void*>(_new_Direct3DSurfaceDescription) },
|
|
743
818
|
{ Py_tp_init, reinterpret_cast<void*>(_init_Direct3DSurfaceDescription) },
|
|
@@ -745,6 +820,7 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
745
820
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_Direct3DSurfaceDescription) },
|
|
746
821
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_Direct3DSurfaceDescription) },
|
|
747
822
|
{ Py_tp_richcompare, reinterpret_cast<void*>(_richcompare_Direct3DSurfaceDescription) },
|
|
823
|
+
{ Py_tp_repr, reinterpret_cast<void*>(_repr_Direct3DSurfaceDescription) },
|
|
748
824
|
{ }
|
|
749
825
|
};
|
|
750
826
|
|
|
@@ -800,22 +876,26 @@ PyMODINIT_FUNC PyInit__winrt_windows_graphics_directx_direct3d11(void) noexcept
|
|
|
800
876
|
return nullptr;
|
|
801
877
|
}
|
|
802
878
|
|
|
803
|
-
|
|
879
|
+
py::pytype_handle IDirect3DDevice_type{py::register_python_type(module.get(), &type_spec_IDirect3DDevice, object_bases.get(), nullptr)};
|
|
880
|
+
if (!IDirect3DDevice_type)
|
|
804
881
|
{
|
|
805
882
|
return nullptr;
|
|
806
883
|
}
|
|
807
884
|
|
|
808
|
-
|
|
885
|
+
py::pytype_handle IDirect3DSurface_type{py::register_python_type(module.get(), &type_spec_IDirect3DSurface, object_bases.get(), nullptr)};
|
|
886
|
+
if (!IDirect3DSurface_type)
|
|
809
887
|
{
|
|
810
888
|
return nullptr;
|
|
811
889
|
}
|
|
812
890
|
|
|
813
|
-
|
|
891
|
+
py::pytype_handle Direct3DMultisampleDescription_type{py::register_python_type(module.get(), &type_spec_Direct3DMultisampleDescription, nullptr, nullptr)};
|
|
892
|
+
if (!Direct3DMultisampleDescription_type)
|
|
814
893
|
{
|
|
815
894
|
return nullptr;
|
|
816
895
|
}
|
|
817
896
|
|
|
818
|
-
|
|
897
|
+
py::pytype_handle Direct3DSurfaceDescription_type{py::register_python_type(module.get(), &type_spec_Direct3DSurfaceDescription, nullptr, nullptr)};
|
|
898
|
+
if (!Direct3DSurfaceDescription_type)
|
|
819
899
|
{
|
|
820
900
|
return nullptr;
|
|
821
901
|
}
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9,<3.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.3.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.3.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -20,8 +20,6 @@ class Direct3DMultisampleDescription:
|
|
|
20
20
|
count: winrt.system.Int32
|
|
21
21
|
quality: winrt.system.Int32
|
|
22
22
|
def __init__(self, count: winrt.system.Int32, quality: winrt.system.Int32) -> None: ...
|
|
23
|
-
def __eq__(self, other: object, /) -> bool: ...
|
|
24
|
-
def __ne__(self, other: object, /) -> bool: ...
|
|
25
23
|
|
|
26
24
|
@typing.final
|
|
27
25
|
class Direct3DSurfaceDescription:
|
|
@@ -30,8 +28,6 @@ class Direct3DSurfaceDescription:
|
|
|
30
28
|
format: windows_graphics_directx.DirectXPixelFormat
|
|
31
29
|
multisample_description: Direct3DMultisampleDescription
|
|
32
30
|
def __init__(self, width: winrt.system.Int32, height: winrt.system.Int32, format: windows_graphics_directx.DirectXPixelFormat, multisample_description: Direct3DMultisampleDescription) -> None: ...
|
|
33
|
-
def __eq__(self, other: object, /) -> bool: ...
|
|
34
|
-
def __ne__(self, other: object, /) -> bool: ...
|
|
35
31
|
|
|
36
32
|
@typing.final
|
|
37
33
|
class IDirect3DDevice(winrt.system.Object):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Graphics.DirectX.Direct3D11
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,11 +10,11 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.3.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.3.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|