mesa/st: Introduce WINSYS_HANDLE_TYPE_D3D12_RES

This is analogous to VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE_BIT
from Vulkan, and GL_HANDLE_TYPE_D3D12_RESOURCE_EXT from
GL_EXT_external_objects_win32.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7535>
This commit is contained in:
Erik Faye-Lund 2020-04-08 14:59:00 +02:00
parent 5c305c8e36
commit 7145cd6e73

View file

@ -11,6 +11,11 @@ extern "C" {
#define WINSYS_HANDLE_TYPE_FD 2
#define WINSYS_HANDLE_TYPE_SHMID 3
#ifdef _WIN32
#include <unknwn.h>
#define WINSYS_HANDLE_TYPE_D3D12_RES 4
#endif
/**
* For use with pipe_screen::{texture_from_handle|texture_get_handle}.
*/
@ -60,6 +65,14 @@ struct winsys_handle
* Output from resource_get_handle.
*/
uint64_t modifier;
#ifdef _WIN32
/**
* Input to resource_from_handle.
* Output for resource_get_handle.
*/
IUnknown *com_obj;
#endif
};
#ifdef __cplusplus