Commit Graph

164 Commits

Author SHA1 Message Date
Rémi Bernon
428e5a7bc8 vrclient: Generate the .h and .cpp files separately.
CW-Bug-Id: #22729
2023-12-19 19:42:14 +01:00
Rémi Bernon
5fa947bcc1 vrclient: Pass write function as parameter to handle_method*.
CW-Bug-Id: #22729
2023-12-19 19:42:14 +01:00
Rémi Bernon
b62eb2aa0f vrclient: Consistently use the computed return type.
CW-Bug-Id: #22729
2023-12-19 19:42:14 +01:00
Rémi Bernon
43538fdc1b vrclient: Fix inconsistent const qualifier handling.
CW-Bug-Id: #22729
2023-12-19 19:42:14 +01:00
Rémi Bernon
5ec1df2911 vrclient: Always use a return result variable.
CW-Bug-Id: #22729
2023-12-19 19:42:14 +01:00
Rémi Bernon
56b828c365 vrclient: Fix incorrect size paramter passed to lin_to_win.
CW-Bug-Id: #22729
2023-12-19 19:42:14 +01:00
Rémi Bernon
5da4d0da96 vrclient: Fix some compilation warnings.
CW-Bug-Id: #22729
2023-12-19 19:42:14 +01:00
Rémi Bernon
9611b1f7e2 vrclient: Build using makedep rules.
CW-Bug-Id: #22729
2023-12-19 19:42:14 +01:00
Rémi Bernon
7cf466db02 vrclient: Cleanup C method generator.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
a2efb6cc82 vrclient: Generate thiscall wrappers separately.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
600870e008 vrclient: Introduce a new Method cursor wrapper.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
0c2a05b757 vrclient: Introduce a new Class cursor wrapper.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
d9aa610ab5 vrclient: Use the generated names in the C++ method.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
0b01dbee04 vrclient: Simplify next-is-size handling a bit.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
4caba0be92 vrclient: Use declspec to generate C++ method signature.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
27736adb76 vrclient: Use method.get_arguments instead of get_params.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
32dff08a42 vrclient: Split C++/C method generation helpers.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
c58925af68 vrclient: Split cpp_h generation to a dedicated method.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
eaf6d83cf1 vrclient: Return all struct abis from find_struct.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
67d2ae8e88 vrclient: Filter structs and classes while parsing.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
c2e6c8c56d vrclient: Use the all_records dict to lookup structs.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
95f33e076d vrclient: Introduce new canonical_typename helper.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
04aa1b2efa vrclient: Sort classes by their version string.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
430cf3601a vrclient: Filter classes by version before generating.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
d1baf2d116 vrclient: Parse SDK versions and ABIs in parallel.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
d4ac89c481 vrclient: Split loading, parsing, and generating steps.
CW-Bug-Id: #22729
2023-12-19 19:42:12 +01:00
Rémi Bernon
6f66cf2ffd vrclient: Introduce a dedicated parsing function.
CW-Bug-Id: #22729
2023-12-19 19:42:12 +01:00
Rémi Bernon
bdac7963b3 vrclient: Use a dict for SDK sources / class mapping.
CW-Bug-Id: #22729
2023-12-19 19:42:12 +01:00
Rémi Bernon
7f722fb6d1 lsteamclient: Use a dict for SDK sources / class mapping.
CW-Bug-Id: #22729
2023-12-19 19:42:12 +01:00
Rémi Bernon
732ee565b5 vrclient: Use upper-case global constants.
CW-Bug-Id: #22729
2023-12-19 19:42:12 +01:00
Rémi Bernon
ac07abfc26 vrclient: Remove unused imports and duplicate entries.
CW-Bug-Id: #22729
2023-12-19 19:42:12 +01:00
Paul Gofman
d229821fdf vrclient: Support v1.26.7.
CW-Bug-Id: #22757
2023-12-07 13:43:40 +02:00
Paul Gofman
2f851ecb82 vrclient: Support v1.23.7. 2023-06-05 17:55:10 +03:00
Paul Gofman
967b7878e5 vrclient: Update clang path in gen_wrapper.py to 15. 2023-06-05 17:55:10 +03:00
Paul Gofman
74ae018197 vrclient: Load unwrappers from winevulkan.so. 2023-02-14 16:07:43 +02:00
Paul Gofman
a62a80be58 vrclient: Use PROTON_VR_RUNTIME from registry if env var is not there.
CW-Bug-Id: #21036
2022-08-10 19:29:30 +03:00
Arkadiusz Hiler
9a07890d7e vrclient: Remove wined3d interop.
DXVK interop is still in place.
2022-01-24 22:53:20 +02:00
Paul Gofman
dd35b33d6c vrclient: Update clang path in gen_wrapper.py to 13.0.0. 2022-01-24 22:53:20 +02:00
Rémi Bernon
a7d8aabc0d vrclient: Parse all include files at once. 2022-01-19 11:29:54 +02:00
Rémi Bernon
db7e0e7a14 vrclient: Remove unnecessary includes. 2022-01-19 11:29:54 +02:00
Rémi Bernon
fc14f36b9d vrclient: Use dicts to lookup structs in gen_wrapper.py. 2022-01-19 11:29:54 +02:00
Rémi Bernon
e868aa6e1a vrclient: Import from clang.cindex instead of prefixing. 2022-01-19 11:29:54 +02:00
Paul Gofman
450f3e8025 vrclient: HACK: Fixup digital action 'bChange' parameter on 32 bit.
CW-Bug-Id: 19067
2021-08-12 10:54:19 -05:00
Paul Gofman
d46e6aaada vrclient: Fixup size for structs with matching field offsets but mismatched size.
CW-Bug-Id: 19067
2021-08-12 10:54:19 -05:00
Paul Gofman
7c30c77105 vrclient: Return stored BMD presence from BIsHmdPresent() if client core is not initialized.
CW-Bug-Id: 18901
2021-05-13 10:06:49 -05:00
Paul Gofman
5d57ef328f vrclient: Cleanup vrclient before native library unload if the app failed to do so.
Unloading native library without the cleanup hangs. If the native
library is not unloaded explicitly the Linux process then hangs on exit.

Fixes hang on exit from Doom VFR.

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
2021-03-31 14:08:11 -05:00
Paul Gofman
52415ddaa4 vrclient: Use Vulkan texture array for d3d11 texture arrays.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
2021-03-31 14:08:10 -05:00
Paul Gofman
e0f82e30cb vrclient: Support v1.16.8.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
2021-03-31 14:08:10 -05:00
Paul Gofman
92b8b209f2 vrclient_x64: Translate action manifest path in startup info. 2021-03-31 14:08:10 -05:00
Paul Gofman
d2948348b0 vrclient_x64: Use staging texture for the right eye in case of submitted d3d11 texture array. 2021-03-31 14:08:10 -05:00