2023-09-26 23:56:43 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
|
|
|
|
#define COBJMACROS
|
|
|
|
#include "d3d11_4.h"
|
|
|
|
#include "dxvk-interop.h"
|
|
|
|
#include "vrclient_private.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(vrclient);
|
|
|
|
|
2023-09-27 10:41:04 +02:00
|
|
|
struct set_overlay_texture_state
|
2023-09-26 23:56:43 +02:00
|
|
|
{
|
2023-09-29 11:28:17 +02:00
|
|
|
w_Texture_t texture;
|
|
|
|
w_VRVulkanTextureData_t vkdata;
|
2023-09-26 23:56:43 +02:00
|
|
|
|
|
|
|
VkImageLayout image_layout;
|
|
|
|
VkImageSubresourceRange subresources;
|
2023-09-27 10:41:04 +02:00
|
|
|
IDXGIVkInteropSurface *dxvk_surface;
|
|
|
|
IDXGIVkInteropDevice *dxvk_device;
|
|
|
|
};
|
2023-09-26 23:56:43 +02:00
|
|
|
|
2023-09-29 11:28:17 +02:00
|
|
|
static void load_overlay_texture_dxvk( const w_Texture_t *texture, struct set_overlay_texture_state *state )
|
2023-09-27 10:41:04 +02:00
|
|
|
{
|
|
|
|
VkImageCreateInfo image_info;
|
|
|
|
IUnknown *texture_iface;
|
2023-09-26 23:56:43 +02:00
|
|
|
|
2023-09-27 10:41:04 +02:00
|
|
|
TRACE( "texture = %p\n", texture );
|
2023-09-26 23:56:43 +02:00
|
|
|
|
2023-09-27 10:41:04 +02:00
|
|
|
if (!(texture_iface = texture->handle))
|
|
|
|
{
|
|
|
|
WARN( "No D3D11 texture %p.\n", texture );
|
|
|
|
return;
|
|
|
|
}
|
2023-09-26 23:56:43 +02:00
|
|
|
|
2023-09-27 10:41:04 +02:00
|
|
|
if (FAILED(texture_iface->lpVtbl->QueryInterface( texture_iface, &IID_IDXGIVkInteropSurface,
|
|
|
|
(void **)&state->dxvk_surface )))
|
|
|
|
{
|
|
|
|
WARN( "Invalid D3D11 texture %p.\n", texture );
|
|
|
|
return;
|
|
|
|
}
|
2023-09-26 23:56:43 +02:00
|
|
|
|
2023-09-27 10:41:04 +02:00
|
|
|
state->texture = vrclient_translate_texture_dxvk( texture, &state->vkdata, state->dxvk_surface, &state->dxvk_device,
|
|
|
|
&state->image_layout, &image_info );
|
|
|
|
state->subresources.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
|
|
|
|
state->subresources.baseMipLevel = 0;
|
|
|
|
state->subresources.levelCount = image_info.mipLevels;
|
|
|
|
state->subresources.baseArrayLayer = 0;
|
|
|
|
state->subresources.layerCount = image_info.arrayLayers;
|
2023-09-26 23:56:43 +02:00
|
|
|
|
2023-09-27 10:41:04 +02:00
|
|
|
state->dxvk_device->lpVtbl->TransitionSurfaceLayout( state->dxvk_device, state->dxvk_surface, &state->subresources,
|
|
|
|
state->image_layout, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL );
|
|
|
|
state->dxvk_device->lpVtbl->FlushRenderingCommands( state->dxvk_device );
|
|
|
|
state->dxvk_device->lpVtbl->LockSubmissionQueue( state->dxvk_device );
|
2023-09-26 23:56:43 +02:00
|
|
|
}
|
|
|
|
|
2023-09-27 10:41:04 +02:00
|
|
|
static void free_unix_overlay_texture_dxvk( struct set_overlay_texture_state *state )
|
2023-09-26 23:56:43 +02:00
|
|
|
{
|
2023-09-27 10:41:04 +02:00
|
|
|
if (!state->dxvk_device) return;
|
2023-09-26 23:56:43 +02:00
|
|
|
|
2023-09-27 10:41:04 +02:00
|
|
|
state->dxvk_device->lpVtbl->ReleaseSubmissionQueue( state->dxvk_device );
|
|
|
|
state->dxvk_device->lpVtbl->TransitionSurfaceLayout( state->dxvk_device, state->dxvk_surface, &state->subresources,
|
|
|
|
VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, state->image_layout );
|
|
|
|
state->dxvk_device->lpVtbl->Release( state->dxvk_device );
|
|
|
|
state->dxvk_surface->lpVtbl->Release( state->dxvk_surface );
|
2023-09-26 23:56:43 +02:00
|
|
|
}
|
|
|
|
|
2023-09-14 16:22:47 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_001_SetOverlayTexture( struct w_steam_iface *_this,
|
2023-09-19 19:59:23 +02:00
|
|
|
uint64_t ulOverlayHandle, void *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
|
|
|
/* probably no one actually uses this old interface... */
|
|
|
|
FIXME( "unimplemented!\n" );
|
|
|
|
return VROverlayError_InvalidHandle;
|
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_002_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-14 16:22:47 +02:00
|
|
|
uint32_t eTextureType, void *pTexture )
|
2023-09-26 23:56:43 +02:00
|
|
|
{
|
|
|
|
/* hopefully no one actually uses this old interface... Vulkan support
|
|
|
|
* wasn't added until later; how can we pass in a DirectX texture? */
|
|
|
|
FIXME( "unimplemented!\n" );
|
|
|
|
return VROverlayError_InvalidHandle;
|
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_003_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-14 16:22:47 +02:00
|
|
|
uint32_t eTextureType, void *pTexture )
|
2023-09-26 23:56:43 +02:00
|
|
|
{
|
2023-09-27 08:43:42 +02:00
|
|
|
/* hopefully no one actually uses this old interface... Vulkan support
|
|
|
|
* wasn't added until later; how can we pass in a DirectX texture? */
|
2023-09-26 23:56:43 +02:00
|
|
|
FIXME( "unimplemented!\n" );
|
|
|
|
return VROverlayError_InvalidHandle;
|
|
|
|
}
|
2023-09-27 08:43:42 +02:00
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_004_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-14 16:22:47 +02:00
|
|
|
uint32_t eTextureType, void *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
|
|
|
/* hopefully no one actually uses this old interface... Vulkan support
|
|
|
|
* wasn't added until later; how can we pass in a DirectX texture? */
|
|
|
|
FIXME( "unimplemented!\n" );
|
|
|
|
return VROverlayError_InvalidHandle;
|
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_005_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-14 16:22:47 +02:00
|
|
|
uint32_t eTextureType, void *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
|
|
|
/* hopefully no one actually uses this old interface... Vulkan support
|
|
|
|
* wasn't added until later; how can we pass in a DirectX texture? */
|
|
|
|
FIXME( "unimplemented!\n" );
|
|
|
|
return VROverlayError_InvalidHandle;
|
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_007_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-29 11:28:17 +02:00
|
|
|
const w_Texture_t *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
2023-09-27 10:41:04 +02:00
|
|
|
struct set_overlay_texture_state state = {.texture = *pTexture};
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVROverlay_IVROverlay_007_SetOverlayTexture_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.pTexture = &state.texture,
|
|
|
|
};
|
2023-09-27 10:41:04 +02:00
|
|
|
|
2023-09-27 08:43:42 +02:00
|
|
|
TRACE( "%p\n", _this );
|
2023-09-27 10:41:04 +02:00
|
|
|
|
|
|
|
if (pTexture->eType == TextureType_DirectX) load_overlay_texture_dxvk( pTexture, &state );
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVROverlay_IVROverlay_007_SetOverlayTexture, ¶ms );
|
2023-09-27 10:41:04 +02:00
|
|
|
if (pTexture->eType == TextureType_DirectX) free_unix_overlay_texture_dxvk( &state );
|
|
|
|
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2023-09-27 08:43:42 +02:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_008_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-29 11:28:17 +02:00
|
|
|
const w_Texture_t *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
2023-09-27 10:41:04 +02:00
|
|
|
struct set_overlay_texture_state state = {.texture = *pTexture};
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVROverlay_IVROverlay_008_SetOverlayTexture_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.pTexture = &state.texture,
|
|
|
|
};
|
2023-09-27 10:41:04 +02:00
|
|
|
|
2023-09-27 08:43:42 +02:00
|
|
|
TRACE( "%p\n", _this );
|
2023-09-27 10:41:04 +02:00
|
|
|
|
|
|
|
if (pTexture->eType == TextureType_DirectX) load_overlay_texture_dxvk( pTexture, &state );
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVROverlay_IVROverlay_008_SetOverlayTexture, ¶ms );
|
2023-09-27 10:41:04 +02:00
|
|
|
if (pTexture->eType == TextureType_DirectX) free_unix_overlay_texture_dxvk( &state );
|
|
|
|
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2023-09-27 08:43:42 +02:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_010_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-29 11:28:17 +02:00
|
|
|
const w_Texture_t *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
2023-09-27 10:41:04 +02:00
|
|
|
struct set_overlay_texture_state state = {.texture = *pTexture};
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVROverlay_IVROverlay_010_SetOverlayTexture_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.pTexture = &state.texture,
|
|
|
|
};
|
2023-09-27 10:41:04 +02:00
|
|
|
|
2023-09-27 08:43:42 +02:00
|
|
|
TRACE( "%p\n", _this );
|
2023-09-27 10:41:04 +02:00
|
|
|
|
|
|
|
if (pTexture->eType == TextureType_DirectX) load_overlay_texture_dxvk( pTexture, &state );
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVROverlay_IVROverlay_010_SetOverlayTexture, ¶ms );
|
2023-09-27 10:41:04 +02:00
|
|
|
if (pTexture->eType == TextureType_DirectX) free_unix_overlay_texture_dxvk( &state );
|
|
|
|
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2023-09-27 08:43:42 +02:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_011_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-29 11:28:17 +02:00
|
|
|
const w_Texture_t *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
2023-09-27 10:41:04 +02:00
|
|
|
struct set_overlay_texture_state state = {.texture = *pTexture};
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVROverlay_IVROverlay_011_SetOverlayTexture_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.pTexture = &state.texture,
|
|
|
|
};
|
2023-09-27 10:41:04 +02:00
|
|
|
|
2023-09-27 08:43:42 +02:00
|
|
|
TRACE( "%p\n", _this );
|
2023-09-27 10:41:04 +02:00
|
|
|
|
|
|
|
if (pTexture->eType == TextureType_DirectX) load_overlay_texture_dxvk( pTexture, &state );
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVROverlay_IVROverlay_011_SetOverlayTexture, ¶ms );
|
2023-09-27 10:41:04 +02:00
|
|
|
if (pTexture->eType == TextureType_DirectX) free_unix_overlay_texture_dxvk( &state );
|
|
|
|
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2023-09-27 08:43:42 +02:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_012_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-29 11:28:17 +02:00
|
|
|
const w_Texture_t *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
2023-09-27 10:41:04 +02:00
|
|
|
struct set_overlay_texture_state state = {.texture = *pTexture};
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVROverlay_IVROverlay_012_SetOverlayTexture_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.pTexture = &state.texture,
|
|
|
|
};
|
2023-09-27 10:41:04 +02:00
|
|
|
|
2023-09-27 08:43:42 +02:00
|
|
|
TRACE( "%p\n", _this );
|
2023-09-27 10:41:04 +02:00
|
|
|
|
|
|
|
if (pTexture->eType == TextureType_DirectX) load_overlay_texture_dxvk( pTexture, &state );
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVROverlay_IVROverlay_012_SetOverlayTexture, ¶ms );
|
2023-09-27 10:41:04 +02:00
|
|
|
if (pTexture->eType == TextureType_DirectX) free_unix_overlay_texture_dxvk( &state );
|
|
|
|
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2023-09-27 08:43:42 +02:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_013_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-29 11:28:17 +02:00
|
|
|
const w_Texture_t *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
2023-09-27 10:41:04 +02:00
|
|
|
struct set_overlay_texture_state state = {.texture = *pTexture};
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVROverlay_IVROverlay_013_SetOverlayTexture_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.pTexture = &state.texture,
|
|
|
|
};
|
2023-09-27 10:41:04 +02:00
|
|
|
|
2023-09-27 08:43:42 +02:00
|
|
|
TRACE( "%p\n", _this );
|
2023-09-27 10:41:04 +02:00
|
|
|
|
|
|
|
if (pTexture->eType == TextureType_DirectX) load_overlay_texture_dxvk( pTexture, &state );
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVROverlay_IVROverlay_013_SetOverlayTexture, ¶ms );
|
2023-09-27 10:41:04 +02:00
|
|
|
if (pTexture->eType == TextureType_DirectX) free_unix_overlay_texture_dxvk( &state );
|
|
|
|
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2023-09-27 08:43:42 +02:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_014_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-29 11:28:17 +02:00
|
|
|
const w_Texture_t *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
2023-09-27 10:41:04 +02:00
|
|
|
struct set_overlay_texture_state state = {.texture = *pTexture};
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVROverlay_IVROverlay_014_SetOverlayTexture_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.pTexture = &state.texture,
|
|
|
|
};
|
2023-09-27 10:41:04 +02:00
|
|
|
|
2023-09-27 08:43:42 +02:00
|
|
|
TRACE( "%p\n", _this );
|
2023-09-27 10:41:04 +02:00
|
|
|
|
|
|
|
if (pTexture->eType == TextureType_DirectX) load_overlay_texture_dxvk( pTexture, &state );
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVROverlay_IVROverlay_014_SetOverlayTexture, ¶ms );
|
2023-09-27 10:41:04 +02:00
|
|
|
if (pTexture->eType == TextureType_DirectX) free_unix_overlay_texture_dxvk( &state );
|
|
|
|
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2023-09-27 08:43:42 +02:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_016_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-29 11:28:17 +02:00
|
|
|
const w_Texture_t *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
2023-09-27 10:41:04 +02:00
|
|
|
struct set_overlay_texture_state state = {.texture = *pTexture};
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVROverlay_IVROverlay_016_SetOverlayTexture_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.pTexture = &state.texture,
|
|
|
|
};
|
2023-09-27 10:41:04 +02:00
|
|
|
|
2023-09-27 08:43:42 +02:00
|
|
|
TRACE( "%p\n", _this );
|
2023-09-27 10:41:04 +02:00
|
|
|
|
|
|
|
if (pTexture->eType == TextureType_DirectX) load_overlay_texture_dxvk( pTexture, &state );
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVROverlay_IVROverlay_016_SetOverlayTexture, ¶ms );
|
2023-09-27 10:41:04 +02:00
|
|
|
if (pTexture->eType == TextureType_DirectX) free_unix_overlay_texture_dxvk( &state );
|
|
|
|
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2023-09-27 08:43:42 +02:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_017_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-29 11:28:17 +02:00
|
|
|
const w_Texture_t *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
2023-09-27 10:41:04 +02:00
|
|
|
struct set_overlay_texture_state state = {.texture = *pTexture};
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVROverlay_IVROverlay_017_SetOverlayTexture_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.pTexture = &state.texture,
|
|
|
|
};
|
2023-09-27 10:41:04 +02:00
|
|
|
|
2023-09-27 08:43:42 +02:00
|
|
|
TRACE( "%p\n", _this );
|
2023-09-27 10:41:04 +02:00
|
|
|
|
|
|
|
if (pTexture->eType == TextureType_DirectX) load_overlay_texture_dxvk( pTexture, &state );
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVROverlay_IVROverlay_017_SetOverlayTexture, ¶ms );
|
2023-09-27 10:41:04 +02:00
|
|
|
if (pTexture->eType == TextureType_DirectX) free_unix_overlay_texture_dxvk( &state );
|
|
|
|
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2023-09-27 08:43:42 +02:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_018_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-29 11:28:17 +02:00
|
|
|
const w_Texture_t *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
2023-09-27 10:41:04 +02:00
|
|
|
struct set_overlay_texture_state state = {.texture = *pTexture};
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVROverlay_IVROverlay_018_SetOverlayTexture_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.pTexture = &state.texture,
|
|
|
|
};
|
2023-09-27 10:41:04 +02:00
|
|
|
|
2023-09-27 08:43:42 +02:00
|
|
|
TRACE( "%p\n", _this );
|
2023-09-27 10:41:04 +02:00
|
|
|
|
|
|
|
if (pTexture->eType == TextureType_DirectX) load_overlay_texture_dxvk( pTexture, &state );
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVROverlay_IVROverlay_018_SetOverlayTexture, ¶ms );
|
2023-09-27 10:41:04 +02:00
|
|
|
if (pTexture->eType == TextureType_DirectX) free_unix_overlay_texture_dxvk( &state );
|
|
|
|
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2023-09-27 08:43:42 +02:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_019_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-29 11:28:17 +02:00
|
|
|
const w_Texture_t *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
2023-09-27 10:41:04 +02:00
|
|
|
struct set_overlay_texture_state state = {.texture = *pTexture};
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVROverlay_IVROverlay_019_SetOverlayTexture_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.pTexture = &state.texture,
|
|
|
|
};
|
2023-09-27 10:41:04 +02:00
|
|
|
|
2023-09-27 08:43:42 +02:00
|
|
|
TRACE( "%p\n", _this );
|
2023-09-27 10:41:04 +02:00
|
|
|
|
|
|
|
if (pTexture->eType == TextureType_DirectX) load_overlay_texture_dxvk( pTexture, &state );
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVROverlay_IVROverlay_019_SetOverlayTexture, ¶ms );
|
2023-09-27 10:41:04 +02:00
|
|
|
if (pTexture->eType == TextureType_DirectX) free_unix_overlay_texture_dxvk( &state );
|
|
|
|
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2023-09-27 08:43:42 +02:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_020_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-29 11:28:17 +02:00
|
|
|
const w_Texture_t *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
2023-09-27 10:41:04 +02:00
|
|
|
struct set_overlay_texture_state state = {.texture = *pTexture};
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVROverlay_IVROverlay_020_SetOverlayTexture_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.pTexture = &state.texture,
|
|
|
|
};
|
2023-09-27 10:41:04 +02:00
|
|
|
|
2023-09-27 08:43:42 +02:00
|
|
|
TRACE( "%p\n", _this );
|
2023-09-27 10:41:04 +02:00
|
|
|
|
|
|
|
if (pTexture->eType == TextureType_DirectX) load_overlay_texture_dxvk( pTexture, &state );
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVROverlay_IVROverlay_020_SetOverlayTexture, ¶ms );
|
2023-09-27 10:41:04 +02:00
|
|
|
if (pTexture->eType == TextureType_DirectX) free_unix_overlay_texture_dxvk( &state );
|
|
|
|
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2023-09-27 08:43:42 +02:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_021_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-29 11:28:17 +02:00
|
|
|
const w_Texture_t *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
2023-09-27 10:41:04 +02:00
|
|
|
struct set_overlay_texture_state state = {.texture = *pTexture};
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVROverlay_IVROverlay_021_SetOverlayTexture_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.pTexture = &state.texture,
|
|
|
|
};
|
2023-09-27 10:41:04 +02:00
|
|
|
|
2023-09-27 08:43:42 +02:00
|
|
|
TRACE( "%p\n", _this );
|
2023-09-27 10:41:04 +02:00
|
|
|
|
|
|
|
if (pTexture->eType == TextureType_DirectX) load_overlay_texture_dxvk( pTexture, &state );
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVROverlay_IVROverlay_021_SetOverlayTexture, ¶ms );
|
2023-09-27 10:41:04 +02:00
|
|
|
if (pTexture->eType == TextureType_DirectX) free_unix_overlay_texture_dxvk( &state );
|
|
|
|
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2023-09-27 08:43:42 +02:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_022_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-29 11:28:17 +02:00
|
|
|
const w_Texture_t *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
2023-09-27 10:41:04 +02:00
|
|
|
struct set_overlay_texture_state state = {.texture = *pTexture};
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVROverlay_IVROverlay_022_SetOverlayTexture_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.pTexture = &state.texture,
|
|
|
|
};
|
2023-09-27 10:41:04 +02:00
|
|
|
|
2023-09-27 08:43:42 +02:00
|
|
|
TRACE( "%p\n", _this );
|
2023-09-27 10:41:04 +02:00
|
|
|
|
|
|
|
if (pTexture->eType == TextureType_DirectX) load_overlay_texture_dxvk( pTexture, &state );
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVROverlay_IVROverlay_022_SetOverlayTexture, ¶ms );
|
2023-09-27 10:41:04 +02:00
|
|
|
if (pTexture->eType == TextureType_DirectX) free_unix_overlay_texture_dxvk( &state );
|
|
|
|
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2023-09-27 08:43:42 +02:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_024_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-29 11:28:17 +02:00
|
|
|
const w_Texture_t *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
2023-09-27 10:41:04 +02:00
|
|
|
struct set_overlay_texture_state state = {.texture = *pTexture};
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVROverlay_IVROverlay_024_SetOverlayTexture_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.pTexture = &state.texture,
|
|
|
|
};
|
2023-09-27 10:41:04 +02:00
|
|
|
|
2023-09-27 08:43:42 +02:00
|
|
|
TRACE( "%p\n", _this );
|
2023-09-27 10:41:04 +02:00
|
|
|
|
|
|
|
if (pTexture->eType == TextureType_DirectX) load_overlay_texture_dxvk( pTexture, &state );
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVROverlay_IVROverlay_024_SetOverlayTexture, ¶ms );
|
2023-09-27 10:41:04 +02:00
|
|
|
if (pTexture->eType == TextureType_DirectX) free_unix_overlay_texture_dxvk( &state );
|
|
|
|
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2023-09-27 08:43:42 +02:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_025_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-29 11:28:17 +02:00
|
|
|
const w_Texture_t *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
2023-09-27 10:41:04 +02:00
|
|
|
struct set_overlay_texture_state state = {.texture = *pTexture};
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVROverlay_IVROverlay_025_SetOverlayTexture_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.pTexture = &state.texture,
|
|
|
|
};
|
2023-09-27 10:41:04 +02:00
|
|
|
|
2023-09-27 08:43:42 +02:00
|
|
|
TRACE( "%p\n", _this );
|
2023-09-27 10:41:04 +02:00
|
|
|
|
|
|
|
if (pTexture->eType == TextureType_DirectX) load_overlay_texture_dxvk( pTexture, &state );
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVROverlay_IVROverlay_025_SetOverlayTexture, ¶ms );
|
2023-09-27 10:41:04 +02:00
|
|
|
if (pTexture->eType == TextureType_DirectX) free_unix_overlay_texture_dxvk( &state );
|
|
|
|
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2023-09-27 08:43:42 +02:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_026_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-29 11:28:17 +02:00
|
|
|
const w_Texture_t *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
2023-09-27 10:41:04 +02:00
|
|
|
struct set_overlay_texture_state state = {.texture = *pTexture};
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVROverlay_IVROverlay_026_SetOverlayTexture_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.pTexture = &state.texture,
|
|
|
|
};
|
2023-09-27 10:41:04 +02:00
|
|
|
|
2023-09-27 08:43:42 +02:00
|
|
|
TRACE( "%p\n", _this );
|
2023-09-27 10:41:04 +02:00
|
|
|
|
|
|
|
if (pTexture->eType == TextureType_DirectX) load_overlay_texture_dxvk( pTexture, &state );
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVROverlay_IVROverlay_026_SetOverlayTexture, ¶ms );
|
2023-09-27 10:41:04 +02:00
|
|
|
if (pTexture->eType == TextureType_DirectX) free_unix_overlay_texture_dxvk( &state );
|
|
|
|
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2023-09-27 08:43:42 +02:00
|
|
|
}
|
|
|
|
|
2023-09-19 19:59:23 +02:00
|
|
|
uint32_t __thiscall winIVROverlay_IVROverlay_027_SetOverlayTexture( struct w_steam_iface *_this, uint64_t ulOverlayHandle,
|
2023-09-29 11:28:17 +02:00
|
|
|
const w_Texture_t *pTexture )
|
2023-09-27 08:43:42 +02:00
|
|
|
{
|
2023-09-27 10:41:04 +02:00
|
|
|
struct set_overlay_texture_state state = {.texture = *pTexture};
|
2023-09-30 13:08:49 +02:00
|
|
|
struct IVROverlay_IVROverlay_027_SetOverlayTexture_params params =
|
2023-09-27 11:05:52 +02:00
|
|
|
{
|
|
|
|
.linux_side = _this->u_iface,
|
|
|
|
.ulOverlayHandle = ulOverlayHandle,
|
|
|
|
.pTexture = &state.texture,
|
|
|
|
};
|
2023-09-27 10:41:04 +02:00
|
|
|
|
2023-09-27 08:43:42 +02:00
|
|
|
TRACE( "%p\n", _this );
|
2023-09-27 10:41:04 +02:00
|
|
|
|
|
|
|
if (pTexture->eType == TextureType_DirectX) load_overlay_texture_dxvk( pTexture, &state );
|
2023-09-30 13:08:49 +02:00
|
|
|
VRCLIENT_CALL( IVROverlay_IVROverlay_027_SetOverlayTexture, ¶ms );
|
2023-09-27 10:41:04 +02:00
|
|
|
if (pTexture->eType == TextureType_DirectX) free_unix_overlay_texture_dxvk( &state );
|
|
|
|
|
2023-09-27 11:05:52 +02:00
|
|
|
return params._ret;
|
2023-09-27 08:43:42 +02:00
|
|
|
}
|