winrt-Windows.Graphics.DirectX.Direct3D11 2.0.1__tar.gz → 2.2.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.0.1 → winrt_windows_graphics_directx_direct3d11-2.2.0}/PKG-INFO +4 -4
- {winrt_windows_graphics_directx_direct3d11-2.0.1 → winrt_windows_graphics_directx_direct3d11-2.2.0}/all-requirements.txt +2 -2
- {winrt_windows_graphics_directx_direct3d11-2.0.1 → winrt_windows_graphics_directx_direct3d11-2.2.0}/py.Windows.Graphics.DirectX.Direct3D11.cpp +216 -72
- {winrt_windows_graphics_directx_direct3d11-2.0.1 → winrt_windows_graphics_directx_direct3d11-2.2.0}/pyproject.toml +3 -2
- winrt_windows_graphics_directx_direct3d11-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_graphics_directx_direct3d11-2.0.1 → winrt_windows_graphics_directx_direct3d11-2.2.0}/requirements.txt +2 -2
- {winrt_windows_graphics_directx_direct3d11-2.0.1 → winrt_windows_graphics_directx_direct3d11-2.2.0}/winrt/_winrt_windows_graphics_directx_direct3d11.pyi +4 -4
- {winrt_windows_graphics_directx_direct3d11-2.0.1 → winrt_windows_graphics_directx_direct3d11-2.2.0}/winrt/windows/graphics/directx/direct3d11/__init__.py +1 -1
- {winrt_windows_graphics_directx_direct3d11-2.0.1 → winrt_windows_graphics_directx_direct3d11-2.2.0}/winrt_Windows.Graphics.DirectX.Direct3D11.egg-info/PKG-INFO +4 -4
- winrt_windows_graphics_directx_direct3d11-2.2.0/winrt_Windows.Graphics.DirectX.Direct3D11.egg-info/requires.txt +4 -0
- winrt_windows_graphics_directx_direct3d11-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_graphics_directx_direct3d11-2.0.1/winrt_Windows.Graphics.DirectX.Direct3D11.egg-info/requires.txt +0 -4
- {winrt_windows_graphics_directx_direct3d11-2.0.1 → winrt_windows_graphics_directx_direct3d11-2.2.0}/README.md +0 -0
- {winrt_windows_graphics_directx_direct3d11-2.0.1 → winrt_windows_graphics_directx_direct3d11-2.2.0}/setup.cfg +0 -0
- {winrt_windows_graphics_directx_direct3d11-2.0.1 → winrt_windows_graphics_directx_direct3d11-2.2.0}/setup.py +0 -0
- {winrt_windows_graphics_directx_direct3d11-2.0.1 → winrt_windows_graphics_directx_direct3d11-2.2.0}/winrt/windows/graphics/directx/direct3d11/py.typed +0 -0
- {winrt_windows_graphics_directx_direct3d11-2.0.1 → winrt_windows_graphics_directx_direct3d11-2.2.0}/winrt_Windows.Graphics.DirectX.Direct3D11.egg-info/SOURCES.txt +0 -0
- {winrt_windows_graphics_directx_direct3d11-2.0.1 → winrt_windows_graphics_directx_direct3d11-2.2.0}/winrt_Windows.Graphics.DirectX.Direct3D11.egg-info/dependency_links.txt +0 -0
- {winrt_windows_graphics_directx_direct3d11-2.0.1 → winrt_windows_graphics_directx_direct3d11-2.2.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.0
|
|
3
|
+
Version: 2.2.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.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.2.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.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-Windows.Graphics.DirectX[all]==2.0
|
|
3
|
+
winrt-Windows.Graphics.DirectX[all]==2.2.0
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Graphics.DirectX.Direct3D11.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
7
6
|
{
|
|
8
7
|
// ----- IDirect3DDevice interface --------------------
|
|
@@ -28,14 +27,21 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
28
27
|
|
|
29
28
|
if (arg_count == 0)
|
|
30
29
|
{
|
|
31
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Foundation.IClosable", L"Close", 0))
|
|
32
|
-
{
|
|
33
|
-
py::set_arg_count_version_error(0);
|
|
34
|
-
return nullptr;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
try
|
|
38
31
|
{
|
|
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())
|
|
40
|
+
{
|
|
41
|
+
py::set_arg_count_version_error(0);
|
|
42
|
+
return nullptr;
|
|
43
|
+
}
|
|
44
|
+
|
|
39
45
|
self->obj.Close();
|
|
40
46
|
Py_RETURN_NONE;
|
|
41
47
|
}
|
|
@@ -58,14 +64,21 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
58
64
|
|
|
59
65
|
if (arg_count == 0)
|
|
60
66
|
{
|
|
61
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.DirectX.Direct3D11.IDirect3DDevice", L"Trim", 0))
|
|
62
|
-
{
|
|
63
|
-
py::set_arg_count_version_error(0);
|
|
64
|
-
return nullptr;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
67
|
try
|
|
68
68
|
{
|
|
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())
|
|
77
|
+
{
|
|
78
|
+
py::set_arg_count_version_error(0);
|
|
79
|
+
return nullptr;
|
|
80
|
+
}
|
|
81
|
+
|
|
69
82
|
self->obj.Trim();
|
|
70
83
|
Py_RETURN_NONE;
|
|
71
84
|
}
|
|
@@ -131,7 +144,7 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
131
144
|
{ "_assign_array_", _assign_array_IDirect3DDevice, METH_O | METH_STATIC, nullptr },
|
|
132
145
|
{ "_from", reinterpret_cast<PyCFunction>(_from_IDirect3DDevice), METH_O | METH_STATIC, nullptr },
|
|
133
146
|
{ "__enter__", reinterpret_cast<PyCFunction>(_enter_IDirect3DDevice), METH_NOARGS, nullptr },
|
|
134
|
-
{ "__exit__",
|
|
147
|
+
{ "__exit__", reinterpret_cast<PyCFunction>(_exit_IDirect3DDevice), METH_VARARGS, nullptr },
|
|
135
148
|
{ }
|
|
136
149
|
};
|
|
137
150
|
|
|
@@ -139,23 +152,20 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
139
152
|
{ }
|
|
140
153
|
};
|
|
141
154
|
|
|
142
|
-
static PyType_Slot _type_slots_IDirect3DDevice[] =
|
|
143
|
-
{
|
|
155
|
+
static PyType_Slot _type_slots_IDirect3DDevice[] = {
|
|
144
156
|
{ Py_tp_new, reinterpret_cast<void*>(_new_IDirect3DDevice) },
|
|
145
157
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IDirect3DDevice) },
|
|
146
158
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_IDirect3DDevice) },
|
|
147
159
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_IDirect3DDevice) },
|
|
148
|
-
{ }
|
|
160
|
+
{ }
|
|
149
161
|
};
|
|
150
162
|
|
|
151
|
-
static PyType_Spec type_spec_IDirect3DDevice =
|
|
152
|
-
{
|
|
163
|
+
static PyType_Spec type_spec_IDirect3DDevice = {
|
|
153
164
|
"winrt._winrt_windows_graphics_directx_direct3d11.IDirect3DDevice",
|
|
154
165
|
sizeof(py::wrapper::Windows::Graphics::DirectX::Direct3D11::IDirect3DDevice),
|
|
155
166
|
0,
|
|
156
167
|
Py_TPFLAGS_DEFAULT,
|
|
157
|
-
_type_slots_IDirect3DDevice
|
|
158
|
-
};
|
|
168
|
+
_type_slots_IDirect3DDevice};
|
|
159
169
|
|
|
160
170
|
// ----- IDirect3DSurface interface --------------------
|
|
161
171
|
|
|
@@ -180,14 +190,21 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
180
190
|
|
|
181
191
|
if (arg_count == 0)
|
|
182
192
|
{
|
|
183
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Foundation.IClosable", L"Close", 0))
|
|
184
|
-
{
|
|
185
|
-
py::set_arg_count_version_error(0);
|
|
186
|
-
return nullptr;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
193
|
try
|
|
190
194
|
{
|
|
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())
|
|
203
|
+
{
|
|
204
|
+
py::set_arg_count_version_error(0);
|
|
205
|
+
return nullptr;
|
|
206
|
+
}
|
|
207
|
+
|
|
191
208
|
self->obj.Close();
|
|
192
209
|
Py_RETURN_NONE;
|
|
193
210
|
}
|
|
@@ -206,14 +223,21 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
206
223
|
|
|
207
224
|
static PyObject* IDirect3DSurface_get_Description(py::wrapper::Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface* self, void* /*unused*/) noexcept
|
|
208
225
|
{
|
|
209
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.DirectX.Direct3D11.IDirect3DSurface", L"Description"))
|
|
210
|
-
{
|
|
211
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
212
|
-
return nullptr;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
226
|
try
|
|
216
227
|
{
|
|
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())
|
|
236
|
+
{
|
|
237
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
238
|
+
return nullptr;
|
|
239
|
+
}
|
|
240
|
+
|
|
217
241
|
return py::convert(self->obj.Description());
|
|
218
242
|
}
|
|
219
243
|
catch (...)
|
|
@@ -271,7 +295,7 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
271
295
|
{ "_assign_array_", _assign_array_IDirect3DSurface, METH_O | METH_STATIC, nullptr },
|
|
272
296
|
{ "_from", reinterpret_cast<PyCFunction>(_from_IDirect3DSurface), METH_O | METH_STATIC, nullptr },
|
|
273
297
|
{ "__enter__", reinterpret_cast<PyCFunction>(_enter_IDirect3DSurface), METH_NOARGS, nullptr },
|
|
274
|
-
{ "__exit__",
|
|
298
|
+
{ "__exit__", reinterpret_cast<PyCFunction>(_exit_IDirect3DSurface), METH_VARARGS, nullptr },
|
|
275
299
|
{ }
|
|
276
300
|
};
|
|
277
301
|
|
|
@@ -280,23 +304,20 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
280
304
|
{ }
|
|
281
305
|
};
|
|
282
306
|
|
|
283
|
-
static PyType_Slot _type_slots_IDirect3DSurface[] =
|
|
284
|
-
{
|
|
307
|
+
static PyType_Slot _type_slots_IDirect3DSurface[] = {
|
|
285
308
|
{ Py_tp_new, reinterpret_cast<void*>(_new_IDirect3DSurface) },
|
|
286
309
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IDirect3DSurface) },
|
|
287
310
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_IDirect3DSurface) },
|
|
288
311
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_IDirect3DSurface) },
|
|
289
|
-
{ }
|
|
312
|
+
{ }
|
|
290
313
|
};
|
|
291
314
|
|
|
292
|
-
static PyType_Spec type_spec_IDirect3DSurface =
|
|
293
|
-
{
|
|
315
|
+
static PyType_Spec type_spec_IDirect3DSurface = {
|
|
294
316
|
"winrt._winrt_windows_graphics_directx_direct3d11.IDirect3DSurface",
|
|
295
317
|
sizeof(py::wrapper::Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface),
|
|
296
318
|
0,
|
|
297
319
|
Py_TPFLAGS_DEFAULT,
|
|
298
|
-
_type_slots_IDirect3DSurface
|
|
299
|
-
};
|
|
320
|
+
_type_slots_IDirect3DSurface};
|
|
300
321
|
|
|
301
322
|
// ----- Direct3DMultisampleDescription struct --------------------
|
|
302
323
|
|
|
@@ -335,7 +356,9 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
335
356
|
|
|
336
357
|
try
|
|
337
358
|
{
|
|
338
|
-
self->obj =
|
|
359
|
+
self->obj.Count = _Count;
|
|
360
|
+
self->obj.Quality = _Quality;
|
|
361
|
+
|
|
339
362
|
return 0;
|
|
340
363
|
}
|
|
341
364
|
catch (...)
|
|
@@ -440,24 +463,75 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
440
463
|
{ }
|
|
441
464
|
};
|
|
442
465
|
|
|
443
|
-
static
|
|
466
|
+
static PyObject* _richcompare_Direct3DMultisampleDescription(py::wrapper::Windows::Graphics::DirectX::Direct3D11::Direct3DMultisampleDescription* self, PyObject* other, int op) noexcept
|
|
467
|
+
{
|
|
468
|
+
try
|
|
469
|
+
{
|
|
470
|
+
auto _other = py::converter<winrt::Windows::Graphics::DirectX::Direct3D11::Direct3DMultisampleDescription>::convert_to(other);
|
|
471
|
+
|
|
472
|
+
if (op == Py_EQ)
|
|
473
|
+
{
|
|
474
|
+
if (self->obj == _other)
|
|
475
|
+
{
|
|
476
|
+
Py_RETURN_TRUE;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
Py_RETURN_FALSE;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
if (op == Py_NE)
|
|
483
|
+
{
|
|
484
|
+
if (self->obj != _other)
|
|
485
|
+
{
|
|
486
|
+
Py_RETURN_TRUE;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
Py_RETURN_FALSE;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
Py_RETURN_NOTIMPLEMENTED;
|
|
493
|
+
}
|
|
494
|
+
catch (...)
|
|
495
|
+
{
|
|
496
|
+
py::to_PyErr();
|
|
497
|
+
return nullptr;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
static PyObject* _repr_Direct3DMultisampleDescription(PyObject* self) noexcept
|
|
444
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
|
+
|
|
518
|
+
static PyType_Slot _type_slots_Direct3DMultisampleDescription[] = {
|
|
445
519
|
{ Py_tp_new, reinterpret_cast<void*>(_new_Direct3DMultisampleDescription) },
|
|
446
520
|
{ Py_tp_init, reinterpret_cast<void*>(_init_Direct3DMultisampleDescription) },
|
|
447
521
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_Direct3DMultisampleDescription) },
|
|
448
522
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_Direct3DMultisampleDescription) },
|
|
449
523
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_Direct3DMultisampleDescription) },
|
|
450
|
-
{ },
|
|
524
|
+
{ Py_tp_richcompare, reinterpret_cast<void*>(_richcompare_Direct3DMultisampleDescription) },
|
|
525
|
+
{ Py_tp_repr, reinterpret_cast<void*>(_repr_Direct3DMultisampleDescription) },
|
|
526
|
+
{ }
|
|
451
527
|
};
|
|
452
528
|
|
|
453
|
-
static PyType_Spec type_spec_Direct3DMultisampleDescription =
|
|
454
|
-
{
|
|
529
|
+
static PyType_Spec type_spec_Direct3DMultisampleDescription = {
|
|
455
530
|
"winrt._winrt_windows_graphics_directx_direct3d11.Direct3DMultisampleDescription",
|
|
456
531
|
sizeof(py::wrapper::Windows::Graphics::DirectX::Direct3D11::Direct3DMultisampleDescription),
|
|
457
532
|
0,
|
|
458
533
|
Py_TPFLAGS_DEFAULT,
|
|
459
|
-
_type_slots_Direct3DMultisampleDescription
|
|
460
|
-
};
|
|
534
|
+
_type_slots_Direct3DMultisampleDescription};
|
|
461
535
|
|
|
462
536
|
// ----- Direct3DSurfaceDescription struct --------------------
|
|
463
537
|
|
|
@@ -498,7 +572,11 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
498
572
|
|
|
499
573
|
try
|
|
500
574
|
{
|
|
501
|
-
self->obj =
|
|
575
|
+
self->obj.Width = _Width;
|
|
576
|
+
self->obj.Height = _Height;
|
|
577
|
+
self->obj.Format = static_cast<winrt::Windows::Graphics::DirectX::DirectXPixelFormat>(_Format);
|
|
578
|
+
self->obj.MultisampleDescription = py::converter<winrt::Windows::Graphics::DirectX::Direct3D11::Direct3DMultisampleDescription>::convert_to(_MultisampleDescription);
|
|
579
|
+
|
|
502
580
|
return 0;
|
|
503
581
|
}
|
|
504
582
|
catch (...)
|
|
@@ -671,40 +749,102 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
671
749
|
{ }
|
|
672
750
|
};
|
|
673
751
|
|
|
674
|
-
static
|
|
752
|
+
static PyObject* _richcompare_Direct3DSurfaceDescription(py::wrapper::Windows::Graphics::DirectX::Direct3D11::Direct3DSurfaceDescription* self, PyObject* other, int op) noexcept
|
|
753
|
+
{
|
|
754
|
+
try
|
|
755
|
+
{
|
|
756
|
+
auto _other = py::converter<winrt::Windows::Graphics::DirectX::Direct3D11::Direct3DSurfaceDescription>::convert_to(other);
|
|
757
|
+
|
|
758
|
+
if (op == Py_EQ)
|
|
759
|
+
{
|
|
760
|
+
if (self->obj == _other)
|
|
761
|
+
{
|
|
762
|
+
Py_RETURN_TRUE;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
Py_RETURN_FALSE;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
if (op == Py_NE)
|
|
769
|
+
{
|
|
770
|
+
if (self->obj != _other)
|
|
771
|
+
{
|
|
772
|
+
Py_RETURN_TRUE;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
Py_RETURN_FALSE;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
Py_RETURN_NOTIMPLEMENTED;
|
|
779
|
+
}
|
|
780
|
+
catch (...)
|
|
781
|
+
{
|
|
782
|
+
py::to_PyErr();
|
|
783
|
+
return nullptr;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
static PyObject* _repr_Direct3DSurfaceDescription(PyObject* self) noexcept
|
|
675
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
|
+
|
|
816
|
+
static PyType_Slot _type_slots_Direct3DSurfaceDescription[] = {
|
|
676
817
|
{ Py_tp_new, reinterpret_cast<void*>(_new_Direct3DSurfaceDescription) },
|
|
677
818
|
{ Py_tp_init, reinterpret_cast<void*>(_init_Direct3DSurfaceDescription) },
|
|
678
819
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_Direct3DSurfaceDescription) },
|
|
679
820
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_Direct3DSurfaceDescription) },
|
|
680
821
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_Direct3DSurfaceDescription) },
|
|
681
|
-
{ },
|
|
822
|
+
{ Py_tp_richcompare, reinterpret_cast<void*>(_richcompare_Direct3DSurfaceDescription) },
|
|
823
|
+
{ Py_tp_repr, reinterpret_cast<void*>(_repr_Direct3DSurfaceDescription) },
|
|
824
|
+
{ }
|
|
682
825
|
};
|
|
683
826
|
|
|
684
|
-
static PyType_Spec type_spec_Direct3DSurfaceDescription =
|
|
685
|
-
{
|
|
827
|
+
static PyType_Spec type_spec_Direct3DSurfaceDescription = {
|
|
686
828
|
"winrt._winrt_windows_graphics_directx_direct3d11.Direct3DSurfaceDescription",
|
|
687
829
|
sizeof(py::wrapper::Windows::Graphics::DirectX::Direct3D11::Direct3DSurfaceDescription),
|
|
688
830
|
0,
|
|
689
831
|
Py_TPFLAGS_DEFAULT,
|
|
690
|
-
_type_slots_Direct3DSurfaceDescription
|
|
691
|
-
};
|
|
832
|
+
_type_slots_Direct3DSurfaceDescription};
|
|
692
833
|
|
|
693
834
|
// ----- Windows.Graphics.DirectX.Direct3D11 Initialization --------------------
|
|
694
|
-
PyDoc_STRVAR(module_doc, "Windows::Graphics::DirectX::Direct3D11");
|
|
695
|
-
|
|
696
835
|
|
|
697
|
-
|
|
698
|
-
= {PyModuleDef_HEAD_INIT,
|
|
699
|
-
"_winrt_windows_graphics_directx_direct3d11",
|
|
700
|
-
module_doc,
|
|
701
|
-
0,
|
|
702
|
-
nullptr,
|
|
703
|
-
nullptr,
|
|
704
|
-
nullptr,
|
|
705
|
-
nullptr,
|
|
706
|
-
nullptr};
|
|
836
|
+
PyDoc_STRVAR(module_doc, "Windows.Graphics.DirectX.Direct3D11");
|
|
707
837
|
|
|
838
|
+
static PyModuleDef module_def = {
|
|
839
|
+
PyModuleDef_HEAD_INIT,
|
|
840
|
+
"_winrt_windows_graphics_directx_direct3d11",
|
|
841
|
+
module_doc,
|
|
842
|
+
0,
|
|
843
|
+
nullptr,
|
|
844
|
+
nullptr,
|
|
845
|
+
nullptr,
|
|
846
|
+
nullptr,
|
|
847
|
+
nullptr};
|
|
708
848
|
} // py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
709
849
|
|
|
710
850
|
PyMODINIT_FUNC PyInit__winrt_windows_graphics_directx_direct3d11(void) noexcept
|
|
@@ -736,22 +876,26 @@ PyMODINIT_FUNC PyInit__winrt_windows_graphics_directx_direct3d11(void) noexcept
|
|
|
736
876
|
return nullptr;
|
|
737
877
|
}
|
|
738
878
|
|
|
739
|
-
|
|
879
|
+
py::pytype_handle IDirect3DDevice_type{py::register_python_type(module.get(), &type_spec_IDirect3DDevice, object_bases.get(), nullptr)};
|
|
880
|
+
if (!IDirect3DDevice_type)
|
|
740
881
|
{
|
|
741
882
|
return nullptr;
|
|
742
883
|
}
|
|
743
884
|
|
|
744
|
-
|
|
885
|
+
py::pytype_handle IDirect3DSurface_type{py::register_python_type(module.get(), &type_spec_IDirect3DSurface, object_bases.get(), nullptr)};
|
|
886
|
+
if (!IDirect3DSurface_type)
|
|
745
887
|
{
|
|
746
888
|
return nullptr;
|
|
747
889
|
}
|
|
748
890
|
|
|
749
|
-
|
|
891
|
+
py::pytype_handle Direct3DMultisampleDescription_type{py::register_python_type(module.get(), &type_spec_Direct3DMultisampleDescription, nullptr, nullptr)};
|
|
892
|
+
if (!Direct3DMultisampleDescription_type)
|
|
750
893
|
{
|
|
751
894
|
return nullptr;
|
|
752
895
|
}
|
|
753
896
|
|
|
754
|
-
|
|
897
|
+
py::pytype_handle Direct3DSurfaceDescription_type{py::register_python_type(module.get(), &type_spec_Direct3DSurfaceDescription, nullptr, nullptr)};
|
|
898
|
+
if (!Direct3DSurfaceDescription_type)
|
|
755
899
|
{
|
|
756
900
|
return nullptr;
|
|
757
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.2.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,7 +9,7 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.graphics.directx
|
|
12
|
+
import winrt.windows.graphics.directx as windows_graphics_directx
|
|
13
13
|
|
|
14
14
|
from winrt.windows.graphics.directx.direct3d11 import Direct3DBindings, Direct3DUsage
|
|
15
15
|
|
|
@@ -25,9 +25,9 @@ class Direct3DMultisampleDescription:
|
|
|
25
25
|
class Direct3DSurfaceDescription:
|
|
26
26
|
width: winrt.system.Int32
|
|
27
27
|
height: winrt.system.Int32
|
|
28
|
-
format:
|
|
28
|
+
format: windows_graphics_directx.DirectXPixelFormat
|
|
29
29
|
multisample_description: Direct3DMultisampleDescription
|
|
30
|
-
def __init__(self, width: winrt.system.Int32, height: winrt.system.Int32, format:
|
|
30
|
+
def __init__(self, width: winrt.system.Int32, height: winrt.system.Int32, format: windows_graphics_directx.DirectXPixelFormat, multisample_description: Direct3DMultisampleDescription) -> None: ...
|
|
31
31
|
|
|
32
32
|
@typing.final
|
|
33
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.0
|
|
3
|
+
Version: 2.2.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.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.2.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.0.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|