winrt-Windows.Graphics.DirectX.Direct3D11 2.0.0b2__tar.gz → 2.1.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.0b2 → winrt_windows_graphics_directx_direct3d11-2.1.0}/PKG-INFO +3 -1
- winrt_windows_graphics_directx_direct3d11-2.1.0/all-requirements.txt +3 -0
- {winrt-Windows.Graphics.DirectX.Direct3D11-2.0.0b2 → winrt_windows_graphics_directx_direct3d11-2.1.0}/py.Windows.Graphics.DirectX.Direct3D11.cpp +132 -68
- {winrt-Windows.Graphics.DirectX.Direct3D11-2.0.0b2 → winrt_windows_graphics_directx_direct3d11-2.1.0}/pyproject.toml +2 -2
- winrt_windows_graphics_directx_direct3d11-2.1.0/pywinrt-version.txt +1 -0
- {winrt-Windows.Graphics.DirectX.Direct3D11-2.0.0b2 → winrt_windows_graphics_directx_direct3d11-2.1.0}/requirements.txt +2 -2
- winrt_windows_graphics_directx_direct3d11-2.1.0/setup.py +31 -0
- {winrt-Windows.Graphics.DirectX.Direct3D11-2.0.0b2 → winrt_windows_graphics_directx_direct3d11-2.1.0}/winrt/_winrt_windows_graphics_directx_direct3d11.pyi +8 -4
- {winrt-Windows.Graphics.DirectX.Direct3D11-2.0.0b2 → winrt_windows_graphics_directx_direct3d11-2.1.0}/winrt/windows/graphics/directx/direct3d11/__init__.py +1 -1
- winrt_windows_graphics_directx_direct3d11-2.1.0/winrt/windows/graphics/directx/direct3d11/py.typed +0 -0
- {winrt-Windows.Graphics.DirectX.Direct3D11-2.0.0b2 → winrt_windows_graphics_directx_direct3d11-2.1.0}/winrt_Windows.Graphics.DirectX.Direct3D11.egg-info/PKG-INFO +3 -1
- {winrt-Windows.Graphics.DirectX.Direct3D11-2.0.0b2 → winrt_windows_graphics_directx_direct3d11-2.1.0}/winrt_Windows.Graphics.DirectX.Direct3D11.egg-info/SOURCES.txt +1 -0
- winrt_windows_graphics_directx_direct3d11-2.1.0/winrt_Windows.Graphics.DirectX.Direct3D11.egg-info/requires.txt +4 -0
- winrt-Windows.Graphics.DirectX.Direct3D11-2.0.0b2/all-requirements.txt +0 -3
- winrt-Windows.Graphics.DirectX.Direct3D11-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.Graphics.DirectX.Direct3D11-2.0.0b2/setup.py +0 -16
- winrt-Windows.Graphics.DirectX.Direct3D11-2.0.0b2/winrt_Windows.Graphics.DirectX.Direct3D11.egg-info/requires.txt +0 -4
- {winrt-Windows.Graphics.DirectX.Direct3D11-2.0.0b2 → winrt_windows_graphics_directx_direct3d11-2.1.0}/README.md +0 -0
- {winrt-Windows.Graphics.DirectX.Direct3D11-2.0.0b2 → winrt_windows_graphics_directx_direct3d11-2.1.0}/setup.cfg +0 -0
- {winrt-Windows.Graphics.DirectX.Direct3D11-2.0.0b2 → winrt_windows_graphics_directx_direct3d11-2.1.0}/winrt_Windows.Graphics.DirectX.Direct3D11.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.Graphics.DirectX.Direct3D11-2.0.0b2 → winrt_windows_graphics_directx_direct3d11-2.1.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.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,9 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.1.0; extra == "all"
|
|
16
18
|
|
|
17
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
20
|
|
|
@@ -1,8 +1,7 @@
|
|
|
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.1.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,14 @@ 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
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Foundation.IClosable", L"Close", 0))
|
|
33
|
+
{
|
|
34
|
+
py::set_arg_count_version_error(0);
|
|
35
|
+
return nullptr;
|
|
36
|
+
}
|
|
37
|
+
|
|
39
38
|
self->obj.Close();
|
|
40
39
|
Py_RETURN_NONE;
|
|
41
40
|
}
|
|
@@ -58,14 +57,14 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
58
57
|
|
|
59
58
|
if (arg_count == 0)
|
|
60
59
|
{
|
|
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
60
|
try
|
|
68
61
|
{
|
|
62
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Graphics.DirectX.Direct3D11.IDirect3DDevice", L"Trim", 0))
|
|
63
|
+
{
|
|
64
|
+
py::set_arg_count_version_error(0);
|
|
65
|
+
return nullptr;
|
|
66
|
+
}
|
|
67
|
+
|
|
69
68
|
self->obj.Trim();
|
|
70
69
|
Py_RETURN_NONE;
|
|
71
70
|
}
|
|
@@ -131,7 +130,7 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
131
130
|
{ "_assign_array_", _assign_array_IDirect3DDevice, METH_O | METH_STATIC, nullptr },
|
|
132
131
|
{ "_from", reinterpret_cast<PyCFunction>(_from_IDirect3DDevice), METH_O | METH_STATIC, nullptr },
|
|
133
132
|
{ "__enter__", reinterpret_cast<PyCFunction>(_enter_IDirect3DDevice), METH_NOARGS, nullptr },
|
|
134
|
-
{ "__exit__",
|
|
133
|
+
{ "__exit__", reinterpret_cast<PyCFunction>(_exit_IDirect3DDevice), METH_VARARGS, nullptr },
|
|
135
134
|
{ }
|
|
136
135
|
};
|
|
137
136
|
|
|
@@ -139,23 +138,20 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
139
138
|
{ }
|
|
140
139
|
};
|
|
141
140
|
|
|
142
|
-
static PyType_Slot _type_slots_IDirect3DDevice[] =
|
|
143
|
-
{
|
|
141
|
+
static PyType_Slot _type_slots_IDirect3DDevice[] = {
|
|
144
142
|
{ Py_tp_new, reinterpret_cast<void*>(_new_IDirect3DDevice) },
|
|
145
143
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IDirect3DDevice) },
|
|
146
144
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_IDirect3DDevice) },
|
|
147
145
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_IDirect3DDevice) },
|
|
148
|
-
{ }
|
|
146
|
+
{ }
|
|
149
147
|
};
|
|
150
148
|
|
|
151
|
-
static PyType_Spec type_spec_IDirect3DDevice =
|
|
152
|
-
{
|
|
149
|
+
static PyType_Spec type_spec_IDirect3DDevice = {
|
|
153
150
|
"winrt._winrt_windows_graphics_directx_direct3d11.IDirect3DDevice",
|
|
154
151
|
sizeof(py::wrapper::Windows::Graphics::DirectX::Direct3D11::IDirect3DDevice),
|
|
155
152
|
0,
|
|
156
153
|
Py_TPFLAGS_DEFAULT,
|
|
157
|
-
_type_slots_IDirect3DDevice
|
|
158
|
-
};
|
|
154
|
+
_type_slots_IDirect3DDevice};
|
|
159
155
|
|
|
160
156
|
// ----- IDirect3DSurface interface --------------------
|
|
161
157
|
|
|
@@ -180,14 +176,14 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
180
176
|
|
|
181
177
|
if (arg_count == 0)
|
|
182
178
|
{
|
|
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
179
|
try
|
|
190
180
|
{
|
|
181
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Foundation.IClosable", L"Close", 0))
|
|
182
|
+
{
|
|
183
|
+
py::set_arg_count_version_error(0);
|
|
184
|
+
return nullptr;
|
|
185
|
+
}
|
|
186
|
+
|
|
191
187
|
self->obj.Close();
|
|
192
188
|
Py_RETURN_NONE;
|
|
193
189
|
}
|
|
@@ -206,14 +202,14 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
206
202
|
|
|
207
203
|
static PyObject* IDirect3DSurface_get_Description(py::wrapper::Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface* self, void* /*unused*/) noexcept
|
|
208
204
|
{
|
|
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
205
|
try
|
|
216
206
|
{
|
|
207
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Graphics.DirectX.Direct3D11.IDirect3DSurface", L"Description"))
|
|
208
|
+
{
|
|
209
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
210
|
+
return nullptr;
|
|
211
|
+
}
|
|
212
|
+
|
|
217
213
|
return py::convert(self->obj.Description());
|
|
218
214
|
}
|
|
219
215
|
catch (...)
|
|
@@ -271,7 +267,7 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
271
267
|
{ "_assign_array_", _assign_array_IDirect3DSurface, METH_O | METH_STATIC, nullptr },
|
|
272
268
|
{ "_from", reinterpret_cast<PyCFunction>(_from_IDirect3DSurface), METH_O | METH_STATIC, nullptr },
|
|
273
269
|
{ "__enter__", reinterpret_cast<PyCFunction>(_enter_IDirect3DSurface), METH_NOARGS, nullptr },
|
|
274
|
-
{ "__exit__",
|
|
270
|
+
{ "__exit__", reinterpret_cast<PyCFunction>(_exit_IDirect3DSurface), METH_VARARGS, nullptr },
|
|
275
271
|
{ }
|
|
276
272
|
};
|
|
277
273
|
|
|
@@ -280,23 +276,20 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
280
276
|
{ }
|
|
281
277
|
};
|
|
282
278
|
|
|
283
|
-
static PyType_Slot _type_slots_IDirect3DSurface[] =
|
|
284
|
-
{
|
|
279
|
+
static PyType_Slot _type_slots_IDirect3DSurface[] = {
|
|
285
280
|
{ Py_tp_new, reinterpret_cast<void*>(_new_IDirect3DSurface) },
|
|
286
281
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IDirect3DSurface) },
|
|
287
282
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_IDirect3DSurface) },
|
|
288
283
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_IDirect3DSurface) },
|
|
289
|
-
{ }
|
|
284
|
+
{ }
|
|
290
285
|
};
|
|
291
286
|
|
|
292
|
-
static PyType_Spec type_spec_IDirect3DSurface =
|
|
293
|
-
{
|
|
287
|
+
static PyType_Spec type_spec_IDirect3DSurface = {
|
|
294
288
|
"winrt._winrt_windows_graphics_directx_direct3d11.IDirect3DSurface",
|
|
295
289
|
sizeof(py::wrapper::Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface),
|
|
296
290
|
0,
|
|
297
291
|
Py_TPFLAGS_DEFAULT,
|
|
298
|
-
_type_slots_IDirect3DSurface
|
|
299
|
-
};
|
|
292
|
+
_type_slots_IDirect3DSurface};
|
|
300
293
|
|
|
301
294
|
// ----- Direct3DMultisampleDescription struct --------------------
|
|
302
295
|
|
|
@@ -335,7 +328,9 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
335
328
|
|
|
336
329
|
try
|
|
337
330
|
{
|
|
338
|
-
self->obj =
|
|
331
|
+
self->obj.Count = _Count;
|
|
332
|
+
self->obj.Quality = _Quality;
|
|
333
|
+
|
|
339
334
|
return 0;
|
|
340
335
|
}
|
|
341
336
|
catch (...)
|
|
@@ -440,24 +435,57 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
440
435
|
{ }
|
|
441
436
|
};
|
|
442
437
|
|
|
443
|
-
static
|
|
438
|
+
static PyObject* _richcompare_Direct3DMultisampleDescription(py::wrapper::Windows::Graphics::DirectX::Direct3D11::Direct3DMultisampleDescription* self, PyObject* other, int op) noexcept
|
|
444
439
|
{
|
|
440
|
+
try
|
|
441
|
+
{
|
|
442
|
+
auto _other = py::converter<winrt::Windows::Graphics::DirectX::Direct3D11::Direct3DMultisampleDescription>::convert_to(other);
|
|
443
|
+
|
|
444
|
+
if (op == Py_EQ)
|
|
445
|
+
{
|
|
446
|
+
if (self->obj == _other)
|
|
447
|
+
{
|
|
448
|
+
Py_RETURN_TRUE;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
Py_RETURN_FALSE;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
if (op == Py_NE)
|
|
455
|
+
{
|
|
456
|
+
if (self->obj != _other)
|
|
457
|
+
{
|
|
458
|
+
Py_RETURN_TRUE;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
Py_RETURN_FALSE;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
Py_RETURN_NOTIMPLEMENTED;
|
|
465
|
+
}
|
|
466
|
+
catch (...)
|
|
467
|
+
{
|
|
468
|
+
py::to_PyErr();
|
|
469
|
+
return nullptr;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
static PyType_Slot _type_slots_Direct3DMultisampleDescription[] = {
|
|
445
474
|
{ Py_tp_new, reinterpret_cast<void*>(_new_Direct3DMultisampleDescription) },
|
|
446
475
|
{ Py_tp_init, reinterpret_cast<void*>(_init_Direct3DMultisampleDescription) },
|
|
447
476
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_Direct3DMultisampleDescription) },
|
|
448
477
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_Direct3DMultisampleDescription) },
|
|
449
478
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_Direct3DMultisampleDescription) },
|
|
450
|
-
{ },
|
|
479
|
+
{ Py_tp_richcompare, reinterpret_cast<void*>(_richcompare_Direct3DMultisampleDescription) },
|
|
480
|
+
{ }
|
|
451
481
|
};
|
|
452
482
|
|
|
453
|
-
static PyType_Spec type_spec_Direct3DMultisampleDescription =
|
|
454
|
-
{
|
|
483
|
+
static PyType_Spec type_spec_Direct3DMultisampleDescription = {
|
|
455
484
|
"winrt._winrt_windows_graphics_directx_direct3d11.Direct3DMultisampleDescription",
|
|
456
485
|
sizeof(py::wrapper::Windows::Graphics::DirectX::Direct3D11::Direct3DMultisampleDescription),
|
|
457
486
|
0,
|
|
458
487
|
Py_TPFLAGS_DEFAULT,
|
|
459
|
-
_type_slots_Direct3DMultisampleDescription
|
|
460
|
-
};
|
|
488
|
+
_type_slots_Direct3DMultisampleDescription};
|
|
461
489
|
|
|
462
490
|
// ----- Direct3DSurfaceDescription struct --------------------
|
|
463
491
|
|
|
@@ -498,7 +526,11 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
498
526
|
|
|
499
527
|
try
|
|
500
528
|
{
|
|
501
|
-
self->obj =
|
|
529
|
+
self->obj.Width = _Width;
|
|
530
|
+
self->obj.Height = _Height;
|
|
531
|
+
self->obj.Format = static_cast<winrt::Windows::Graphics::DirectX::DirectXPixelFormat>(_Format);
|
|
532
|
+
self->obj.MultisampleDescription = py::converter<winrt::Windows::Graphics::DirectX::Direct3D11::Direct3DMultisampleDescription>::convert_to(_MultisampleDescription);
|
|
533
|
+
|
|
502
534
|
return 0;
|
|
503
535
|
}
|
|
504
536
|
catch (...)
|
|
@@ -671,40 +703,72 @@ namespace py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
|
671
703
|
{ }
|
|
672
704
|
};
|
|
673
705
|
|
|
674
|
-
static
|
|
706
|
+
static PyObject* _richcompare_Direct3DSurfaceDescription(py::wrapper::Windows::Graphics::DirectX::Direct3D11::Direct3DSurfaceDescription* self, PyObject* other, int op) noexcept
|
|
675
707
|
{
|
|
708
|
+
try
|
|
709
|
+
{
|
|
710
|
+
auto _other = py::converter<winrt::Windows::Graphics::DirectX::Direct3D11::Direct3DSurfaceDescription>::convert_to(other);
|
|
711
|
+
|
|
712
|
+
if (op == Py_EQ)
|
|
713
|
+
{
|
|
714
|
+
if (self->obj == _other)
|
|
715
|
+
{
|
|
716
|
+
Py_RETURN_TRUE;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
Py_RETURN_FALSE;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
if (op == Py_NE)
|
|
723
|
+
{
|
|
724
|
+
if (self->obj != _other)
|
|
725
|
+
{
|
|
726
|
+
Py_RETURN_TRUE;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
Py_RETURN_FALSE;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
Py_RETURN_NOTIMPLEMENTED;
|
|
733
|
+
}
|
|
734
|
+
catch (...)
|
|
735
|
+
{
|
|
736
|
+
py::to_PyErr();
|
|
737
|
+
return nullptr;
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
static PyType_Slot _type_slots_Direct3DSurfaceDescription[] = {
|
|
676
742
|
{ Py_tp_new, reinterpret_cast<void*>(_new_Direct3DSurfaceDescription) },
|
|
677
743
|
{ Py_tp_init, reinterpret_cast<void*>(_init_Direct3DSurfaceDescription) },
|
|
678
744
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_Direct3DSurfaceDescription) },
|
|
679
745
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_Direct3DSurfaceDescription) },
|
|
680
746
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_Direct3DSurfaceDescription) },
|
|
681
|
-
{ },
|
|
747
|
+
{ Py_tp_richcompare, reinterpret_cast<void*>(_richcompare_Direct3DSurfaceDescription) },
|
|
748
|
+
{ }
|
|
682
749
|
};
|
|
683
750
|
|
|
684
|
-
static PyType_Spec type_spec_Direct3DSurfaceDescription =
|
|
685
|
-
{
|
|
751
|
+
static PyType_Spec type_spec_Direct3DSurfaceDescription = {
|
|
686
752
|
"winrt._winrt_windows_graphics_directx_direct3d11.Direct3DSurfaceDescription",
|
|
687
753
|
sizeof(py::wrapper::Windows::Graphics::DirectX::Direct3D11::Direct3DSurfaceDescription),
|
|
688
754
|
0,
|
|
689
755
|
Py_TPFLAGS_DEFAULT,
|
|
690
|
-
_type_slots_Direct3DSurfaceDescription
|
|
691
|
-
};
|
|
756
|
+
_type_slots_Direct3DSurfaceDescription};
|
|
692
757
|
|
|
693
758
|
// ----- Windows.Graphics.DirectX.Direct3D11 Initialization --------------------
|
|
694
|
-
PyDoc_STRVAR(module_doc, "Windows::Graphics::DirectX::Direct3D11");
|
|
695
759
|
|
|
760
|
+
PyDoc_STRVAR(module_doc, "Windows.Graphics.DirectX.Direct3D11");
|
|
696
761
|
|
|
697
|
-
static PyModuleDef module_def
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
762
|
+
static PyModuleDef module_def = {
|
|
763
|
+
PyModuleDef_HEAD_INIT,
|
|
764
|
+
"_winrt_windows_graphics_directx_direct3d11",
|
|
765
|
+
module_doc,
|
|
766
|
+
0,
|
|
767
|
+
nullptr,
|
|
768
|
+
nullptr,
|
|
769
|
+
nullptr,
|
|
770
|
+
nullptr,
|
|
771
|
+
nullptr};
|
|
708
772
|
} // py::cpp::Windows::Graphics::DirectX::Direct3D11
|
|
709
773
|
|
|
710
774
|
PyMODINIT_FUNC PyInit__winrt_windows_graphics_directx_direct3d11(void) noexcept
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "
|
|
4
|
+
requires = ["setuptools", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
|
|
|
30
30
|
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
31
|
|
|
32
32
|
[tool.setuptools.package-data]
|
|
33
|
-
|
|
33
|
+
"*" = ["*.pyi", "py.typed"]
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.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.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from setuptools.command.build_ext import build_ext
|
|
5
|
+
from winrt_sdk import get_include_dirs
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class build_ext_ex(build_ext):
|
|
9
|
+
def build_extension(self, ext):
|
|
10
|
+
if self.compiler.compiler_type == "msvc":
|
|
11
|
+
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
|
+
elif self.compiler.compiler_type == "mingw32":
|
|
13
|
+
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
+
ext.extra_link_args = ["-loleaut32"]
|
|
15
|
+
else:
|
|
16
|
+
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
17
|
+
|
|
18
|
+
build_ext.build_extension(self, ext)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
setup(
|
|
22
|
+
cmdclass = {'build_ext': build_ext_ex},
|
|
23
|
+
ext_modules=[
|
|
24
|
+
Extension(
|
|
25
|
+
"winrt._winrt_windows_graphics_directx_direct3d11",
|
|
26
|
+
sources=["py.Windows.Graphics.DirectX.Direct3D11.cpp"],
|
|
27
|
+
include_dirs=get_include_dirs(),
|
|
28
|
+
libraries=["windowsapp"],
|
|
29
|
+
)
|
|
30
|
+
],
|
|
31
|
+
)
|
|
@@ -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.1.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
|
|
|
@@ -20,14 +20,18 @@ 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: ...
|
|
23
25
|
|
|
24
26
|
@typing.final
|
|
25
27
|
class Direct3DSurfaceDescription:
|
|
26
28
|
width: winrt.system.Int32
|
|
27
29
|
height: winrt.system.Int32
|
|
28
|
-
format:
|
|
30
|
+
format: windows_graphics_directx.DirectXPixelFormat
|
|
29
31
|
multisample_description: Direct3DMultisampleDescription
|
|
30
|
-
def __init__(self, width: winrt.system.Int32, height: winrt.system.Int32, format:
|
|
32
|
+
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: ...
|
|
31
35
|
|
|
32
36
|
@typing.final
|
|
33
37
|
class IDirect3DDevice(winrt.system.Object):
|
winrt_windows_graphics_directx_direct3d11-2.1.0/winrt/windows/graphics/directx/direct3d11/py.typed
ADDED
|
File without changes
|
|
@@ -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.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,9 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.1.0; extra == "all"
|
|
16
18
|
|
|
17
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
20
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_graphics_directx_direct3d11.pyi
|
|
9
9
|
winrt/windows/graphics/directx/direct3d11/__init__.py
|
|
10
|
+
winrt/windows/graphics/directx/direct3d11/py.typed
|
|
10
11
|
winrt_Windows.Graphics.DirectX.Direct3D11.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.Graphics.DirectX.Direct3D11.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.Graphics.DirectX.Direct3D11.egg-info/dependency_links.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.0-beta.2
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
-
|
|
3
|
-
from setuptools import Extension, setup
|
|
4
|
-
from winrt_sdk import get_include_dirs
|
|
5
|
-
|
|
6
|
-
setup(
|
|
7
|
-
ext_modules=[
|
|
8
|
-
Extension(
|
|
9
|
-
"winrt._winrt_windows_graphics_directx_direct3d11",
|
|
10
|
-
sources=["py.Windows.Graphics.DirectX.Direct3D11.cpp"],
|
|
11
|
-
include_dirs=get_include_dirs(),
|
|
12
|
-
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
-
libraries=["windowsapp"],
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|