Created
January 14, 2017 17:20
-
-
Save arteymix/352b1ed639bf9d356bd07cb2dbb07e01 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* gocl-0.2.vapi generated by vapigen, do not modify. */ | |
[CCode (cprefix = "Gocl", gir_namespace = "Gocl", gir_version = "0.2", lower_case_cprefix = "gocl_")] | |
namespace Gocl { | |
[CCode (cheader_filename = "gocl.h", type_id = "gocl_buffer_get_type ()")] | |
public class Buffer : GLib.Object, GLib.Initable { | |
[CCode (has_construct_function = false)] | |
public Buffer (Gocl.Context context, uint flags, size_t size, uint64 host_ptr); | |
public unowned Gocl.Context get_context (); | |
public unowned Gocl.Event map (Gocl.Queue queue, Gocl.BufferMapFlags map_flags, size_t offset, size_t size, GLib.List<Gocl.Event>? event_wait_list); | |
public GLib.Bytes? map_as_bytes_sync (Gocl.Queue queue, Gocl.BufferMapFlags map_flags, size_t offset, size_t size, GLib.List<Gocl.Event>? event_wait_list); | |
public void* map_sync (Gocl.Queue queue, Gocl.BufferMapFlags map_flags, size_t offset, size_t size, GLib.List<Gocl.Event>? event_wait_list); | |
public unowned Gocl.Event read (Gocl.Queue queue, [CCode (array_length_cname = "size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] target_ptr, int64 offset, GLib.List<Gocl.Event>? event_wait_list); | |
public bool read_all_sync (Gocl.Queue queue, [CCode (array_length_cname = "size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[]? target_ptr, GLib.List<Gocl.Event>? event_wait_list); | |
public bool read_sync (Gocl.Queue queue, [CCode (array_length_cname = "size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] target_ptr, int64 offset, GLib.List<Gocl.Event>? event_wait_list); | |
public bool unmap (Gocl.Queue queue, void* mapped_ptr, GLib.List<Gocl.Event>? event_wait_list); | |
public bool unmap_bytes (Gocl.Queue queue, GLib.Bytes mapped_bytes, GLib.List<Gocl.Event>? event_wait_list); | |
public unowned Gocl.Event write (Gocl.Queue queue, void* data, size_t size, int64 offset, GLib.List<Gocl.Event>? event_wait_list); | |
public bool write_sync (Gocl.Queue queue, void* data, size_t size, int64 offset, GLib.List<Gocl.Event>? event_wait_list); | |
public Gocl.Context context { get; construct; } | |
[NoAccessorMethod] | |
public uint flags { get; construct; } | |
[NoAccessorMethod] | |
public void* host_ptr { get; construct; } | |
[NoAccessorMethod] | |
public uint64 size { get; construct; } | |
} | |
[CCode (cheader_filename = "gocl.h", type_id = "gocl_context_get_type ()")] | |
public class Context : GLib.Object, GLib.Initable { | |
[CCode (has_construct_function = false)] | |
protected Context (); | |
public static Gocl.Context get_default_cpu_sync (); | |
public static Gocl.Context get_default_gpu_sync (); | |
public Gocl.Device get_device_by_index (uint device_index); | |
public uint get_num_devices (); | |
[CCode (cname = "gocl_context_gpu_new_sync", has_construct_function = false)] | |
public Context.gpu_new_sync (void* gl_context, void* gl_display); | |
[CCode (has_construct_function = false)] | |
public Context.sync (Gocl.DeviceType device_type); | |
[NoAccessorMethod] | |
public uint device_type { get; construct; } | |
[NoAccessorMethod] | |
public void* gl_context { get; construct; } | |
[NoAccessorMethod] | |
public void* gl_display { get; construct; } | |
} | |
[CCode (cheader_filename = "gocl.h", type_id = "gocl_device_get_type ()")] | |
public class Device : GLib.Object { | |
[CCode (has_construct_function = false)] | |
protected Device (); | |
public unowned Gocl.Event acquire_gl_objects (GLib.List<Gocl.Buffer>? object_list, GLib.List<Gocl.Event>? event_wait_list); | |
public bool acquire_gl_objects_sync (GLib.List<Gocl.Buffer>? object_list, GLib.List<Gocl.Event>? event_wait_list); | |
public unowned Gocl.Context get_context (); | |
public unowned Gocl.Queue get_default_queue (); | |
public uint get_max_compute_units (); | |
public size_t get_max_work_group_size (); | |
public bool has_extension (string extension_name); | |
public unowned Gocl.Event release_gl_objects (GLib.List<Gocl.Buffer>? object_list, GLib.List<Gocl.Event>? event_wait_list); | |
public bool release_gl_objects_sync (GLib.List<Gocl.Buffer>? object_list, GLib.List<Gocl.Event>? event_wait_list); | |
public Gocl.Context context { get; construct; } | |
[NoAccessorMethod] | |
public void* id { get; construct; } | |
} | |
[CCode (cheader_filename = "gocl.h", type_id = "gocl_event_get_type ()")] | |
public class Event : GLib.Object { | |
[CCode (has_construct_function = false)] | |
protected Event (); | |
public unowned Gocl.Queue get_queue (); | |
public void idle_unref (); | |
public void set_event_wait_list (GLib.List<Gocl.Event>? event_list); | |
public void then ([CCode (scope = "async")] Gocl.EventCallback callback); | |
[NoAccessorMethod] | |
public void* event { get; construct; } | |
public Gocl.Queue queue { get; construct; } | |
} | |
[CCode (cheader_filename = "gocl.h", type_id = "gocl_image_get_type ()")] | |
public class Image : Gocl.Buffer, GLib.Initable { | |
[CCode (has_construct_function = false)] | |
public Image (Gocl.Context context, uint flags, void* host_ptr, Gocl.ImageType type, size_t width, size_t height, size_t depth); | |
[CCode (has_construct_function = false)] | |
public Image.from_gl_texture (Gocl.Context context, uint flags, uint texture); | |
[NoAccessorMethod] | |
public uint64 depth { get; construct; } | |
[NoAccessorMethod] | |
public uint gl_texture { get; construct; } | |
[NoAccessorMethod] | |
public uint64 height { get; construct; } | |
[NoAccessorMethod] | |
public uint type { get; construct; } | |
[NoAccessorMethod] | |
public uint64 width { get; construct; } | |
} | |
[CCode (cheader_filename = "gocl.h", type_id = "gocl_kernel_get_type ()")] | |
public class Kernel : GLib.Object, GLib.Initable { | |
[CCode (has_construct_function = false)] | |
protected Kernel (); | |
public unowned Gocl.Event run_in_device (Gocl.Device device, GLib.List<Gocl.Event>? event_wait_list); | |
public bool run_in_device_sync (Gocl.Device device, GLib.List<Gocl.Event>? event_wait_list); | |
public bool set_argument (uint index, size_t size, void* buffer); | |
public bool set_argument_buffer (uint index, Gocl.Buffer buffer); | |
public bool set_argument_float (uint index, [CCode (array_length_cname = "num_elements", array_length_pos = 1.5, array_length_type = "gsize")] float[] buffer); | |
public bool set_argument_int32 (uint index, [CCode (array_length_cname = "num_elements", array_length_pos = 1.5, array_length_type = "gsize")] uint32[] buffer); | |
public void set_global_work_size (size_t size1, size_t size2, size_t size3); | |
public void set_local_work_size (size_t size1, size_t size2, size_t size3); | |
public void set_work_dimension (uint8 work_dim); | |
[NoAccessorMethod] | |
public string name { owned get; construct; } | |
[NoAccessorMethod] | |
public Gocl.Program program { owned get; construct; } | |
} | |
[CCode (cheader_filename = "gocl.h", type_id = "gocl_program_get_type ()")] | |
public class Program : GLib.Object { | |
[CCode (has_construct_function = false)] | |
public Program (Gocl.Context context, [CCode (array_length_cname = "num_sources", array_length_pos = 2.1, array_length_type = "guint")] string[] sources); | |
public async bool build (string options, GLib.Cancellable? cancellable) throws GLib.Error; | |
public bool build_sync (string options); | |
[CCode (has_construct_function = false)] | |
public Program.from_file_sync (Gocl.Context context, string filename); | |
public string get_build_info (Gocl.Device device, Gocl.ProgramBuildInfo build_info); | |
public Gocl.ProgramBuildStatus get_build_status (Gocl.Device device); | |
public unowned Gocl.Context get_context (); | |
public Gocl.Kernel get_kernel (string kernel_name); | |
public Gocl.Context context { get; construct; } | |
} | |
[CCode (cheader_filename = "gocl.h", type_id = "gocl_queue_get_type ()")] | |
public class Queue : GLib.Object, GLib.Initable { | |
[CCode (has_construct_function = false)] | |
protected Queue (); | |
public unowned Gocl.Device get_device (); | |
public uint get_flags (); | |
public Gocl.Device device { get; construct; } | |
public uint flags { get; construct; } | |
} | |
[CCode (cheader_filename = "gocl.h", cprefix = "GOCL_BUFFER_FLAGS_", has_type_id = false)] | |
[Flags] | |
public enum BufferFlags { | |
READ_WRITE, | |
WRITE_ONLY, | |
READ_ONLY, | |
USE_HOST_PTR, | |
ALLOC_HOST_PTR, | |
COPY_HOST_PTR | |
} | |
[CCode (cheader_filename = "gocl.h", cprefix = "GOCL_BUFFER_MAP_", has_type_id = false)] | |
[Flags] | |
public enum BufferMapFlags { | |
READ, | |
WRITE | |
} | |
[CCode (cheader_filename = "gocl.h", cprefix = "GOCL_DEVICE_TYPE_", has_type_id = false)] | |
[Flags] | |
public enum DeviceType { | |
DEFAULT, | |
CPU, | |
GPU, | |
ACCELERATOR, | |
ALL | |
} | |
[CCode (cheader_filename = "gocl.h", cprefix = "GOCL_IMAGE_TYPE_", has_type_id = false)] | |
public enum ImageType { | |
@1D, | |
@1D_BUFFER, | |
@1D_ARRAY, | |
@2D, | |
@2D_ARRAY, | |
@3D | |
} | |
[CCode (cheader_filename = "gocl.h", cprefix = "GOCL_PROGRAM_BUILD_", has_type_id = false)] | |
public enum ProgramBuildInfo { | |
OPTIONS, | |
LOG | |
} | |
[CCode (cheader_filename = "gocl.h", cprefix = "GOCL_PROGRAM_BUILD_", has_type_id = false)] | |
public enum ProgramBuildStatus { | |
NONE, | |
ERROR, | |
SUCCESS, | |
IN_PROGRESS | |
} | |
[CCode (cheader_filename = "gocl.h", cprefix = "GOCL_QUEUE_FLAGS_", has_type_id = false)] | |
[Flags] | |
public enum QueueFlags { | |
OUT_OF_ORDER, | |
PROFILING | |
} | |
[CCode (cheader_filename = "gocl.h", instance_pos = 2.9)] | |
public delegate void EventCallback (Gocl.Event self, GLib.Error error); | |
[CCode (cheader_filename = "gocl.h", has_target = false)] | |
public delegate void EventResolverFunc (Gocl.Event self, GLib.Error error); | |
[CCode (cheader_filename = "gocl.h", cname = "GOCL_OPENCL_ERROR_DOMAIN_STR")] | |
public const string OPENCL_ERROR_DOMAIN_STR; | |
[CCode (cheader_filename = "gocl.h")] | |
public static GLib.Error error_get_last (); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment