Class KHRExternalMemory


  • public class KHRExternalMemory
    extends java.lang.Object
    Native bindings to the khr_external_memory extension.

    This extension defines a generic mechanism to share buffer and image objects between OpenCL and many other APIs.

    In particular, the cl_khr_external_memory extension defines:

    • Optional properties to import external memory exported by other APIs into OpenCL for a set of devices.
    • Routines to explicitly hand off memory ownership between OpenCL and other APIs.

    Other related extensions define specific external memory types that may be imported into OpenCL.

    Requires CL30.

    • Method Detail

      • nclEnqueueAcquireExternalMemObjectsKHR

        public static int nclEnqueueAcquireExternalMemObjectsKHR​(long command_queue,
                                                                 int num_mem_objects,
                                                                 long mem_objects,
                                                                 int num_events_in_wait_list,
                                                                 long event_wait_list,
                                                                 long event)
        Parameters:
        num_events_in_wait_list - the number of events in event_wait_list
      • clEnqueueAcquireExternalMemObjectsKHR

        public static int clEnqueueAcquireExternalMemObjectsKHR​(long command_queue,
                                                                org.lwjgl.PointerBuffer mem_objects,
                                                                @Nullable
                                                                org.lwjgl.PointerBuffer event_wait_list,
                                                                @Nullable
                                                                org.lwjgl.PointerBuffer event)
        Parameters:
        event_wait_list - a list of events that need to complete before this particular command can be executed. If event_wait_list is NULL, then this particular command does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in event_wait_list and command_queue must be the same.
        event - Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete. event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the event_wait_list array.
      • nclEnqueueReleaseExternalMemObjectsKHR

        public static int nclEnqueueReleaseExternalMemObjectsKHR​(long command_queue,
                                                                 int num_mem_objects,
                                                                 long mem_objects,
                                                                 int num_events_in_wait_list,
                                                                 long event_wait_list,
                                                                 long event)
        Parameters:
        num_events_in_wait_list - the number of events in event_wait_list
      • clEnqueueReleaseExternalMemObjectsKHR

        public static int clEnqueueReleaseExternalMemObjectsKHR​(long command_queue,
                                                                org.lwjgl.PointerBuffer mem_objects,
                                                                @Nullable
                                                                org.lwjgl.PointerBuffer event_wait_list,
                                                                @Nullable
                                                                org.lwjgl.PointerBuffer event)
        Parameters:
        event_wait_list - a list of events that need to complete before this particular command can be executed. If event_wait_list is NULL, then this particular command does not wait on any event to complete. The events specified in event_wait_list act as synchronization points. The context associated with events in event_wait_list and command_queue must be the same.
        event - Returns an event object that identifies this particular command and can be used to query or queue a wait for this particular command to complete. event can be NULL in which case it will not be possible for the application to query the status of this command or queue a wait for this command to complete. If the event_wait_list and the event arguments are not NULL, the event argument should not refer to an element of the event_wait_list array.