Struct rcudnn_sys::cudaExternalSemaphoreHandleDesc__bindgen_ty_1__bindgen_ty_1 [−][src]
#[repr(C)]pub struct cudaExternalSemaphoreHandleDesc__bindgen_ty_1__bindgen_ty_1 {
pub handle: *mut c_void,
pub name: *const c_void,
}
Expand description
Win32 handle referencing the semaphore object. Valid when type is one of the following:
- ::cudaExternalSemaphoreHandleTypeOpaqueWin32
- ::cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt
- ::cudaExternalSemaphoreHandleTypeD3D12Fence
- ::cudaExternalSemaphoreHandleTypeD3D11Fence
- ::cudaExternalSemaphoreHandleTypeKeyedMutex
- ::cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 Exactly one of ‘handle’ and ‘name’ must be non-NULL. If type is one of the following: ::cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt ::cudaExternalSemaphoreHandleTypeKeyedMutexKmt then ‘name’ must be NULL.
Fields
handle: *mut c_void
Valid NT handle. Must be NULL if ‘name’ is non-NULL
name: *const c_void
Name of a valid synchronization primitive. Must be NULL if ‘handle’ is non-NULL.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more