External Semaphore - Extensions#

oneAPI Level Zero Specification - Version 1.18.31

External Semaphore - Extension Structures#

ze_external_semaphore_ext_desc_t#

Added in version 1.12

struct ze_external_semaphore_ext_desc_t#

External Semaphore Descriptor.

Public Members

ze_structure_type_t stype#

[in] type of this structure

const void *pNext#

[in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).

ze_external_semaphore_ext_flags_t flags#

[in] The flags describing the type of the semaphore. must be 0 (default) or a valid combination of ze_external_semaphore_ext_flag_t. When importing a semaphore, pNext should be pointing to one of the following structures: ze_external_semaphore_win32_ext_desc_t or ze_external_semaphore_fd_ext_desc_t.

ze_external_semaphore_win32_ext_desc_t#

Added in version 1.12

struct ze_external_semaphore_win32_ext_desc_t#

External Semaphore Win32 Descriptor.

Public Members

ze_structure_type_t stype#

[in] type of this structure

const void *pNext#

[in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).

void *handle#

[in] Win32 handle of the semaphore. Must be a valid Win32 handle.

const char *name#

[in] Name of the semaphore. Must be a valid null-terminated string.

ze_external_semaphore_fd_ext_desc_t#

Added in version 1.12

struct ze_external_semaphore_fd_ext_desc_t#

External Semaphore FD Descriptor.

Public Members

ze_structure_type_t stype#

[in] type of this structure

const void *pNext#

[in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).

int fd#

[in] File descriptor of the semaphore. Must be a valid file descriptor.

ze_external_semaphore_signal_params_ext_t#

Added in version 1.12

struct ze_external_semaphore_signal_params_ext_t#

External Semaphore Signal parameters.

Public Members

ze_structure_type_t stype#

[in] type of this structure

const void *pNext#

[in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).

uint64_t value#

[in] [optional] Value to signal. Specified by user as an expected value with some of semaphore types, such as ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_D3D12_FENCE.

ze_external_semaphore_wait_params_ext_t#

Added in version 1.12

struct ze_external_semaphore_wait_params_ext_t#

External Semaphore Wait parameters.

Public Members

ze_structure_type_t stype#

[in] type of this structure

const void *pNext#

[in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).

uint64_t value#

[in] [optional] Value to wait for. Specified by user as an expected value with some of semaphore types, such as ZE_EXTERNAL_SEMAPHORE_EXT_FLAG_D3D12_FENCE.