2018-04-04 17:20:44 +02:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2018-01-18 20:29:49 +01:00
|
|
|
/* TODO these should be generated */
|
|
|
|
typedef struct __winISteamClient winISteamClient;
|
|
|
|
typedef struct __winISteamUser winISteamUser;
|
|
|
|
typedef struct __winISteamGameServer winISteamGameServer;
|
|
|
|
typedef struct __winISteamFriends winISteamFriends;
|
|
|
|
typedef struct __winISteamUtils winISteamUtils;
|
|
|
|
typedef struct __winISteamMatchmaking winISteamMatchmaking;
|
|
|
|
typedef struct __winISteamMatchmakingServers winISteamMatchmakingServers;
|
|
|
|
typedef struct __winISteamUserStats winISteamUserStats;
|
|
|
|
typedef struct __winISteamGameServerStats winISteamGameServerStats;
|
|
|
|
typedef struct __winISteamApps winISteamApps;
|
|
|
|
typedef struct __winISteamNetworking winISteamNetworking;
|
|
|
|
typedef struct __winISteamRemoteStorage winISteamRemoteStorage;
|
|
|
|
typedef struct __winISteamRemoteScreenshots winISteamRemoteScreenshots;
|
|
|
|
typedef struct __winISteamScreenshots winISteamScreenshots;
|
|
|
|
typedef struct __winISteamHTTP winISteamHTTP;
|
|
|
|
typedef struct __winISteamUnifiedMessages winISteamUnifiedMessages;
|
|
|
|
typedef struct __winISteamController winISteamController;
|
|
|
|
typedef struct __winISteamUGC winISteamUGC;
|
|
|
|
typedef struct __winISteamAppList winISteamAppList;
|
|
|
|
typedef struct __winISteamMusic winISteamMusic;
|
|
|
|
typedef struct __winISteamMusicRemote winISteamMusicRemote;
|
|
|
|
typedef struct __winISteamHTMLSurface winISteamHTMLSurface;
|
|
|
|
typedef struct __winISteamInventory winISteamInventory;
|
|
|
|
typedef struct __winISteamVideo winISteamVideo;
|
|
|
|
typedef struct __winISteamMasterServerUpdater winISteamMasterServerUpdater;
|
|
|
|
typedef struct __winISteamContentServer winISteamContentServer;
|
|
|
|
typedef struct __winX winX;
|
|
|
|
typedef struct __winX winX;
|
|
|
|
|
|
|
|
void *create_win_interface(const char *name, void *linux_side);
|
|
|
|
unsigned int steamclient_unix_path_to_dos_path(unsigned int api_result, char *inout, unsigned int inout_bytes);
|
|
|
|
void *create_LinuxMatchmakingServerListResponse(void *win);
|
2018-01-18 20:57:01 +01:00
|
|
|
|
2018-04-04 17:20:44 +02:00
|
|
|
#ifndef __cplusplus
|
2018-04-04 17:20:44 +02:00
|
|
|
typedef struct ID3D11Device ID3D11Device;
|
|
|
|
typedef struct IWineD3D11Device IWineD3D11Device;
|
2018-05-11 02:18:06 +02:00
|
|
|
typedef struct IDXGIVkInteropDevice IDXGIVkInteropDevice;
|
2018-04-04 17:20:44 +02:00
|
|
|
|
2018-04-19 15:50:32 +02:00
|
|
|
struct generic_interface
|
|
|
|
{
|
|
|
|
void *object;
|
|
|
|
void (*dtor)(void *);
|
|
|
|
};
|
|
|
|
|
|
|
|
struct client_core_data
|
|
|
|
{
|
|
|
|
CRITICAL_SECTION critical_section;
|
|
|
|
struct generic_interface *created_interfaces;
|
|
|
|
SIZE_T created_interface_count;
|
|
|
|
SIZE_T created_interfaces_size;
|
|
|
|
};
|
|
|
|
|
2018-04-04 17:20:44 +02:00
|
|
|
struct compositor_data
|
|
|
|
{
|
|
|
|
ID3D11Device *d3d11_device;
|
|
|
|
IWineD3D11Device *wined3d_device;
|
2018-05-23 21:29:19 +02:00
|
|
|
#if !defined(__APPLE__) || defined(__x86_64__)
|
2018-05-11 02:18:06 +02:00
|
|
|
IDXGIVkInteropDevice *dxvk_device;
|
2018-05-23 21:29:19 +02:00
|
|
|
#endif
|
2018-04-04 17:20:44 +02:00
|
|
|
};
|
|
|
|
|
2018-04-19 16:11:32 +02:00
|
|
|
void destroy_compositor_data(struct compositor_data *data);
|
|
|
|
|
2018-04-19 15:50:32 +02:00
|
|
|
EVRInitError ivrclientcore_002_init(EVRInitError (*cpp_func)(void *, EVRApplicationType),
|
|
|
|
void *linux_side, EVRApplicationType application_type,
|
|
|
|
unsigned int version, struct client_core_data *user_data);
|
|
|
|
EVRInitError ivrclientcore_init(EVRInitError (*cpp_func)(void *, EVRApplicationType, const char *),
|
|
|
|
void *linux_side, EVRApplicationType application_type, const char *startup_info,
|
|
|
|
unsigned int version, struct client_core_data *user_data);
|
|
|
|
|
|
|
|
void *ivrclientcore_get_generic_interface(void *(*cpp_func)(void *, const char *, EVRInitError *),
|
|
|
|
void *linux_side, const char *name_and_version, EVRInitError *error,
|
|
|
|
unsigned int version, struct client_core_data *user_data);
|
|
|
|
|
|
|
|
void ivrclientcore_cleanup(void (*cpp_func)(void *), void *linux_side,
|
|
|
|
unsigned int version, struct client_core_data *user_data);
|
|
|
|
|
2018-04-04 17:20:44 +02:00
|
|
|
void get_dxgi_output_info(void *cpp_func, void *linux_side,
|
|
|
|
int32_t *adapter_idx, unsigned int version);
|
|
|
|
void get_dxgi_output_info2(void *cpp_func, void *linux_side,
|
|
|
|
int32_t *adapter_idx, int32_t *output_idx, unsigned int version);
|
2018-04-11 18:03:38 +02:00
|
|
|
void ivrsystem_016_get_output_device(
|
|
|
|
void (*cpp_func)(void *, uint64_t *, ETextureType),
|
|
|
|
void *linux_side, uint64_t *out_device, ETextureType type,
|
|
|
|
unsigned int version);
|
|
|
|
void ivrsystem_get_output_device(
|
|
|
|
void (*cpp_func)(void *, uint64_t *, ETextureType, VkInstance_T *),
|
|
|
|
void *linux_side, uint64_t *out_device, ETextureType type,
|
|
|
|
VkInstance_T *wrapped_instance, unsigned int version);
|
2018-04-04 17:20:44 +02:00
|
|
|
|
2018-04-04 17:20:44 +02:00
|
|
|
void ivrcompositor_005_submit(
|
|
|
|
void (*cpp_func)(void *, Hmd_Eye, void *, Compositor_TextureBounds *),
|
2018-04-04 17:20:44 +02:00
|
|
|
void *linux_side, Hmd_Eye eye, void *texture, Compositor_TextureBounds *bounds,
|
2018-04-04 17:20:44 +02:00
|
|
|
unsigned int version, struct compositor_data *user_data);
|
2018-04-04 17:20:44 +02:00
|
|
|
VRCompositorError ivrcompositor_006_submit(
|
|
|
|
VRCompositorError (*cpp_func)(void *, Hmd_Eye, void *, VRTextureBounds_t *),
|
2018-04-04 17:20:44 +02:00
|
|
|
void *linux_side, Hmd_Eye eye, void *texture, VRTextureBounds_t *bounds,
|
2018-04-04 17:20:44 +02:00
|
|
|
unsigned int version, struct compositor_data *user_data);
|
2018-04-04 17:20:44 +02:00
|
|
|
VRCompositorError ivrcompositor_007_submit(
|
|
|
|
VRCompositorError (*cpp_func)(void *, Hmd_Eye, GraphicsAPIConvention, void *, VRTextureBounds_t *),
|
2018-04-04 17:20:44 +02:00
|
|
|
void *linux_side, Hmd_Eye eye, GraphicsAPIConvention api, void *texture, VRTextureBounds_t *bounds,
|
2018-04-04 17:20:44 +02:00
|
|
|
unsigned int version, struct compositor_data *user_data);
|
2018-04-04 17:20:44 +02:00
|
|
|
VRCompositorError ivrcompositor_008_submit(
|
|
|
|
VRCompositorError (*cpp_func)(void *, Hmd_Eye, GraphicsAPIConvention, void *,
|
|
|
|
VRTextureBounds_t *, VRSubmitFlags_t),
|
|
|
|
void *linux_side, Hmd_Eye eye, GraphicsAPIConvention texture_type, void *texture,
|
2018-04-04 17:20:44 +02:00
|
|
|
VRTextureBounds_t *bounds, VRSubmitFlags_t submit_flags,
|
2018-04-04 17:20:44 +02:00
|
|
|
unsigned int version, struct compositor_data *user_data);
|
2018-04-04 17:20:44 +02:00
|
|
|
EVRCompositorError ivrcompositor_submit(
|
|
|
|
EVRCompositorError (*cpp_func)(void *, EVREye, Texture_t *, VRTextureBounds_t *, EVRSubmitFlags),
|
2018-04-04 17:20:44 +02:00
|
|
|
void *linux_side, EVREye eye, Texture_t *texture, VRTextureBounds_t *bounds, EVRSubmitFlags submit_flags,
|
2018-04-04 17:20:44 +02:00
|
|
|
unsigned int version, struct compositor_data *user_data);
|
2018-04-04 17:20:44 +02:00
|
|
|
|
|
|
|
void ivrcompositor_post_present_handoff(void (*cpp_func)(void *),
|
2018-04-04 17:20:44 +02:00
|
|
|
void *linux_side, unsigned int version, struct compositor_data *user_data);
|
2018-04-04 17:20:44 +02:00
|
|
|
|
|
|
|
EVRCompositorError ivrcompositor_wait_get_poses(
|
|
|
|
EVRCompositorError (cpp_func)(void *, TrackedDevicePose_t *, uint32_t, TrackedDevicePose_t *, uint32_t),
|
|
|
|
void *linux_side, TrackedDevicePose_t *render_poses, uint32_t render_pose_count,
|
|
|
|
TrackedDevicePose_t *game_poses, uint32_t game_pose_count,
|
|
|
|
unsigned int version, struct compositor_data *user_data);
|
2018-04-11 17:10:22 +02:00
|
|
|
|
|
|
|
uint32_t ivrcompositor_get_vulkan_device_extensions_required(
|
|
|
|
uint32_t (*cpp_func)(void *, VkPhysicalDevice_T *, char *, uint32_t),
|
|
|
|
void *linux_side, VkPhysicalDevice_T *phys_dev, char *value, uint32_t bufsize,
|
|
|
|
unsigned int version, struct compositor_data *user_data);
|
2018-04-04 17:20:44 +02:00
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2018-01-18 20:57:01 +01:00
|
|
|
#define TRACE WINE_TRACE
|
|
|
|
#define ERR WINE_ERR
|
|
|
|
#define WARN WINE_WARN
|
2018-04-04 17:20:44 +02:00
|
|
|
#define FIXME WINE_FIXME
|