opencl_ruby_ffi 0.9 → 0.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -287,14 +287,14 @@ module OpenCL
|
|
287
287
|
return OpenCL.create_image_3D( self, format, width, height, depth, options )
|
288
288
|
end
|
289
289
|
|
290
|
-
# Creates an Event in the Context from a GL sync
|
291
|
-
#
|
292
|
-
# ==== Attributes
|
293
|
-
#
|
294
|
-
# * +sync+ - a :GLsync representing the name of the sync object
|
295
|
-
def create_event_from_GL_sync_KHR( sync )
|
296
|
-
return OpenCL.create_event_from_GL_sync_KHR( self, sync )
|
297
|
-
end
|
290
|
+
# # Creates an Event in the Context from a GL sync
|
291
|
+
# #
|
292
|
+
# # ==== Attributes
|
293
|
+
# #
|
294
|
+
# # * +sync+ - a :GLsync representing the name of the sync object
|
295
|
+
# def create_event_from_GL_sync_KHR( sync )
|
296
|
+
# return OpenCL.create_event_from_GL_sync_KHR( self, sync )
|
297
|
+
# end
|
298
298
|
|
299
299
|
|
300
300
|
# Creates a user Event in the Context
|
@@ -51,18 +51,18 @@ module OpenCL
|
|
51
51
|
return self
|
52
52
|
end
|
53
53
|
|
54
|
-
# Creates an event from a GL sync object
|
55
|
-
#
|
56
|
-
# ==== Attributes
|
57
|
-
#
|
58
|
-
# * +context+ - Context the created Event will be associated to
|
59
|
-
# * +sync+ - a :GLsync representing the name of the sync object
|
60
|
-
def self.create_event_from_GL_sync_KHR( context, sync )
|
61
|
-
error = FFI::MemoryPointer::new(:cl_int)
|
62
|
-
event = OpenCL.clCreateEventFromGLsyncKHR(context, sync, error)
|
63
|
-
OpenCL.error_check(error.read_cl_int)
|
64
|
-
return OpenCL::Event::new(event, false)
|
65
|
-
end
|
54
|
+
# # Creates an event from a GL sync object
|
55
|
+
# #
|
56
|
+
# # ==== Attributes
|
57
|
+
# #
|
58
|
+
# # * +context+ - Context the created Event will be associated to
|
59
|
+
# # * +sync+ - a :GLsync representing the name of the sync object
|
60
|
+
# def self.create_event_from_GL_sync_KHR( context, sync )
|
61
|
+
# error = FFI::MemoryPointer::new(:cl_int)
|
62
|
+
# event = OpenCL.clCreateEventFromGLsyncKHR(context, sync, error)
|
63
|
+
# OpenCL.error_check(error.read_cl_int)
|
64
|
+
# return OpenCL::Event::new(event, false)
|
65
|
+
# end
|
66
66
|
|
67
67
|
# Maps the cl_event object
|
68
68
|
class Event
|
@@ -1930,9 +1930,4 @@ module OpenCL
|
|
1930
1930
|
attach_function :clEnqueueReleaseGLObjects, [CommandQueue,:cl_uint,:pointer,:cl_uint,:pointer,:pointer], :cl_int
|
1931
1931
|
attach_function :clCreateFromGLTexture2D, [Context,:cl_mem_flags,:cl_GLenum,:cl_GLint,:cl_GLuint,:pointer], Mem
|
1932
1932
|
attach_function :clCreateFromGLTexture3D, [Context,:cl_mem_flags,:cl_GLenum,:cl_GLint,:cl_GLuint,:pointer], Mem
|
1933
|
-
attach_function :clGetGLContextInfoKHR, [:pointer,:cl_gl_context_info,:size_t,:pointer,:pointer], :cl_int
|
1934
|
-
attach_function :clReleaseDeviceEXT, [Device], :cl_int
|
1935
|
-
attach_function :clRetainDeviceEXT, [Device], :cl_int
|
1936
|
-
attach_function :clCreateSubDevicesEXT, [Device,:pointer,:cl_uint,:pointer,:pointer], :cl_int
|
1937
|
-
attach_function :clCreateEventFromGLsyncKHR, [Context,GLsync,:pointer], Event
|
1938
1933
|
end
|
data/opencl_ruby_ffi.gemspec
CHANGED