@@ -216,6 +216,13 @@ typedef enum CUeglColorFormat
216216 CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR = 0x19 ,
217217} CUeglColorFormat ;
218218
219+ typedef enum CUd3d11DeviceList_enum
220+ {
221+ CU_D3D11_DEVICE_LIST_ALL = 1 ,
222+ CU_D3D11_DEVICE_LIST_CURRENT_FRAME = 2 ,
223+ CU_D3D11_DEVICE_LIST_NEXT_FRAME = 3 ,
224+ } CUd3d11DeviceList ;
225+
219226#ifndef CU_UUID_HAS_BEEN_DEFINED
220227#define CU_UUID_HAS_BEEN_DEFINED
221228typedef struct CUuuid_st {
@@ -442,7 +449,7 @@ typedef CUresult CUDAAPI tcuEventQuery(CUevent hEvent);
442449typedef CUresult CUDAAPI tcuEventRecord (CUevent hEvent , CUstream hStream );
443450
444451typedef CUresult CUDAAPI tcuLaunchKernel (CUfunction f , unsigned int gridDimX , unsigned int gridDimY , unsigned int gridDimZ , unsigned int blockDimX , unsigned int blockDimY , unsigned int blockDimZ , unsigned int sharedMemBytes , CUstream hStream , void * * kernelParams , void * * extra );
445- typedef CUresult CUDAAPI tcuLinkCreate (unsigned int numOptions , CUjit_option * options , void * * optionValues , CUlinkState * stateOut );
452+ typedef CUresult CUDAAPI tcuLinkCreate (unsigned int numOptions , CUjit_option * options , void * * optionValues , CUlinkState * stateOut );
446453typedef CUresult CUDAAPI tcuLinkAddData (CUlinkState state , CUjitInputType type , void * data , size_t size , const char * name , unsigned int numOptions , CUjit_option * options , void * * optionValues );
447454typedef CUresult CUDAAPI tcuLinkComplete (CUlinkState state , void * * cubinOut , size_t * sizeOut );
448455typedef CUresult CUDAAPI tcuLinkDestroy (CUlinkState state );
@@ -459,6 +466,7 @@ typedef CUresult CUDAAPI tcuGraphicsUnregisterResource(CUgraphicsResource resour
459466typedef CUresult CUDAAPI tcuGraphicsMapResources (unsigned int count , CUgraphicsResource * resources , CUstream hStream );
460467typedef CUresult CUDAAPI tcuGraphicsUnmapResources (unsigned int count , CUgraphicsResource * resources , CUstream hStream );
461468typedef CUresult CUDAAPI tcuGraphicsSubResourceGetMappedArray (CUarray * pArray , CUgraphicsResource resource , unsigned int arrayIndex , unsigned int mipLevel );
469+ typedef CUresult CUDAAPI tcuGraphicsResourceGetMappedPointer (CUdeviceptr * devPtrOut , size_t * sizeOut , CUgraphicsResource resource );
462470
463471typedef CUresult CUDAAPI tcuImportExternalMemory (CUexternalMemory * extMem_out , const CUDA_EXTERNAL_MEMORY_HANDLE_DESC * memHandleDesc );
464472typedef CUresult CUDAAPI tcuDestroyExternalMemory (CUexternalMemory extMem );
@@ -480,4 +488,8 @@ typedef CUresult CUDAAPI tcuEGLStreamProducerDisconnect(CUeglStreamConnection* c
480488typedef CUresult CUDAAPI tcuEGLStreamConsumerDisconnect (CUeglStreamConnection * conn );
481489typedef CUresult CUDAAPI tcuEGLStreamProducerPresentFrame (CUeglStreamConnection * conn , CUeglFrame eglframe , CUstream * pStream );
482490typedef CUresult CUDAAPI tcuEGLStreamProducerReturnFrame (CUeglStreamConnection * conn , CUeglFrame * eglframe , CUstream * pStream );
491+
492+ typedef CUresult CUDAAPI tcuD3D11GetDevice (CUdevice * device , void * dxgiAdapter );
493+ typedef CUresult CUDAAPI tcuD3D11GetDevices (unsigned int * deviceCountOut , CUdevice * devices , unsigned int deviceCount , void * d3d11device , CUd3d11DeviceList listType );
494+ typedef CUresult CUDAAPI tcuGraphicsD3D11RegisterResource (CUgraphicsResource * cudaResourceOut , void * d3d11Resource , unsigned int flags );
483495#endif
0 commit comments