GL Interop

GL Interop#

HIP Runtime API Reference: GL Interop
Collaboration diagram for GL Interop:

Typedefs

typedef unsigned int GLuint
 

Functions

hipError_t hipGLGetDevices (unsigned int *pHipDeviceCount, int *pHipDevices, unsigned int hipDeviceCount, hipGLDeviceList deviceList)
 
hipError_t hipGraphicsGLRegisterBuffer (hipGraphicsResource **resource, GLuint buffer, unsigned int flags)
 
hipError_t hipGraphicsMapResources (int count, hipGraphicsResource_t *resources, hipStream_t stream __dparm(0))
 
hipError_t hipGraphicsResourceGetMappedPointer (void **devPtr, size_t *size, hipGraphicsResource_t resource)
 
hipError_t hipGraphicsUnmapResources (int count, hipGraphicsResource_t *resources, hipStream_t stream __dparm(0))
 
hipError_t hipGraphicsUnregisterResource (hipGraphicsResource_t resource)
 

Detailed Description



This section describes Stream Memory Wait and Write functions of HIP runtime API.

Typedef Documentation

◆ GLuint

typedef unsigned int GLuint

Function Documentation

◆ hipGLGetDevices()

hipError_t hipGLGetDevices ( unsigned int *  pHipDeviceCount,
int *  pHipDevices,
unsigned int  hipDeviceCount,
hipGLDeviceList  deviceList 
)

◆ hipGraphicsGLRegisterBuffer()

hipError_t hipGraphicsGLRegisterBuffer ( hipGraphicsResource **  resource,
GLuint  buffer,
unsigned int  flags 
)

◆ hipGraphicsMapResources()

hipError_t hipGraphicsMapResources ( int  count,
hipGraphicsResource_t resources,
hipStream_t stream   __dparm
)

◆ hipGraphicsResourceGetMappedPointer()

hipError_t hipGraphicsResourceGetMappedPointer ( void **  devPtr,
size_t *  size,
hipGraphicsResource_t  resource 
)

◆ hipGraphicsUnmapResources()

hipError_t hipGraphicsUnmapResources ( int  count,
hipGraphicsResource_t resources,
hipStream_t stream   __dparm
)

◆ hipGraphicsUnregisterResource()

hipError_t hipGraphicsUnregisterResource ( hipGraphicsResource_t  resource)