Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cogciprocate/ocl
/ functions
Functions
1,097 in github.com/cogciprocate/ocl
⨍
Functions
1,097
◇
Types & classes
170
↓ 4 callers
Method
write
Specifies that this command will be a write operation. ### Panics The command operation kind must not have already been specified ### More Informat
ocl/src/standard/buffer.rs:270
↓ 3 callers
Method
alloc
Allocates space for and creates a new sub-buffer then returns the buffer id which can be used to `::get` or `::free` it.
ocl/ocl-extras/src/sub_buffer_pool.rs:86
↓ 3 callers
Method
api_status
Returns the error status code for `OclCore` variants.
ocl/src/error.rs:43
↓ 3 callers
Method
arg_buf_named
( &'s mut self, name: S, buffer_opt: Option<&'b M>, )
ocl/src/standard/kernel.rs:1474
↓ 3 callers
Method
arg_img
(&'s mut self, image: &'b M)
ocl/src/standard/kernel.rs:1347
↓ 3 callers
Function
arg_info
Returns argument information for a kernel.
ocl/src/standard/kernel.rs:1711
↓ 3 callers
Method
arg_sampler
Adds a new argument to the kernel specifying the sampler object represented by 'sampler'. Argument is added to the bottom of the argument order.
ocl/src/standard/kernel.rs:1408
↓ 3 callers
Function
arg_type_name
Returns the type name for a kernel argument at the specified index.
ocl/src/standard/kernel.rs:1726
↓ 3 callers
Method
as_opencl_version
Parse the `Version` string and get a numeric result as `OpenclVersion`.
ocl-core/src/types/enums.rs:187
↓ 3 callers
Method
as_ptr
Returns a mutable pointer to the data contained within the internal value, bypassing all locks and protections. ## Panics This future must not have
ocl/src/async/order_lock.rs:499
↓ 3 callers
Method
as_ptr_ptr
(&self)
ocl/src/standard/event.rs:263
↓ 3 callers
Method
as_raw
Returns a pointer.
ocl-core/src/types/abs.rs:429
↓ 3 callers
Method
as_ref
(&self)
ocl/src/standard/buffer.rs:2704
↓ 3 callers
Method
as_slice_mut
(&mut self, len: usize)
ocl-core/src/types/abs.rs:785
↓ 3 callers
Method
clean_up
(&mut self)
ocl-interop/tests/lib.rs:222
↓ 3 callers
Method
context
Returns the `Context` associated with this command queue.
ocl-core/src/types/abs.rs:623
↓ 3 callers
Method
convert
Converts the contained list from a stack allocated to a heap allocated array [or vice-versa]. FIXME: Implement conversion from Vec -> array.
ocl/src/standard/event.rs:769
↓ 3 callers
Method
count
(&self)
ocl/src/standard/event.rs:267
↓ 3 callers
Function
create_build_program
Creates, builds, and returns a new program pointer from `src_strings`. TODO: Break out create and build parts into requisite functions then call from
ocl-core/src/functions.rs:4387
↓ 3 callers
Function
create_sampler
Creates and returns a new sampler object. [SDK Docs](https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateSampler.html)
ocl-core/src/functions.rs:2007
↓ 3 callers
Method
create_sub_buffer
( &mut self, region_idx: usize, flags: Option<MemFlags>, origin: u32,
ocl/ocl-extras/src/sub_buffer_pool.rs:60
↓ 3 callers
Method
device
Returns the `OpenCL` device associated with this queue.
ocl/src/standard/queue.rs:83
↓ 3 callers
Method
devices
Returns the list of devices associated with this context. Panics upon any OpenCL error.
ocl/src/standard/context.rs:144
↓ 3 callers
Function
empty_event_array
Returns an empty, initialized (zeroed) event array.
ocl/src/standard/event.rs:317
↓ 3 callers
Function
enqueue_write_buffer
Enqueues a write from host memory, `data`, to device memory referred to by `buffer`. ## Safety Caller must ensure that `data` lives until the read i
ocl-core/src/functions.rs:3194
↓ 3 callers
Function
enqueue_write_image
Enqueues a command to write to an image or image array object from host memory. ## Safety Caller must ensure that `data` lives until the read is com
ocl-core/src/functions.rs:3567
↓ 3 callers
Function
finish
Waits for a queue to finish. Blocks until all previously queued OpenCL commands in a command-queue are issued to the associated device and have compl
ocl-core/src/functions.rs:3042
↓ 3 callers
Method
flush
Issues all previously queued OpenCL commands to the device.
ocl/src/standard/queue.rs:44
↓ 3 callers
Function
gen_region_origin
(dims: &[usize; 3])
ocl/src/tests/mod.rs:33
↓ 3 callers
Function
gen_region_origin
(dims: &[usize; 3])
ocl-core/src/tests/mod.rs:57
↓ 3 callers
Method
get_mut
(&mut self, buffer_id: usize)
ocl/ocl-extras/src/sub_buffer_pool.rs:143
↓ 3 callers
Method
init
(&mut self)
ocl-interop/tests/lib.rs:45
↓ 3 callers
Method
is_none
(&self)
ocl/src/standard/mod.rs:54
↓ 3 callers
Method
is_valid
(&self)
ocl-core/src/types/abs.rs:1052
↓ 3 callers
Method
num
Returns the number of devices in the pointer list.
ocl-core/src/functions.rs:413
↓ 3 callers
Method
offset
Sets the linear offset for an operation. ## Panics The 'shape' may not have already been set to rectangular by the `::rect` function.
ocl/src/standard/buffer.rs:541
↓ 3 callers
Method
pixel_element_len
Returns the length of each pixel element.
ocl/src/standard/image.rs:1243
↓ 3 callers
Method
poll_command
Polls the command event until it is complete then returns an `OrderGuard` which can be safely accessed immediately.
ocl/src/async/order_lock.rs:638
↓ 3 callers
Method
program
Returns the program associated with this kernel.
ocl-core/src/types/abs.rs:922
↓ 3 callers
Method
queue
Returns a reference to the queue associated with this ProQue.
ocl/src/standard/pro_que.rs:183
↓ 3 callers
Method
render
(&mut self)
ocl-interop/tests/lib.rs:213
↓ 3 callers
Method
run
(&mut self)
ocl/ocl-extras/src/work_pool.rs:129
↓ 3 callers
Method
set_glx_display
Specifies a Display pointer for the GLX context.
ocl-core/src/types/structs.rs:443
↓ 3 callers
Method
set_platform
Specifies a platform.
ocl-core/src/types/structs.rs:417
↓ 3 callers
Method
set_unmap_wait_events
Set an event wait list for the unmap command. Setting a wait list here will disallow any wait list from being set later if/when calling unmap manuall
ocl/src/async/future_mem_map.rs:56
↓ 3 callers
Method
src_file
Adds the contents of a file to the program. TODO: Deprecate #[deprecated(since = "0.19.2", note = "Use `::source_file` instead.")]
ocl/src/standard/program.rs:262
↓ 3 callers
Method
unmap
Returns an unmap command builder. Call `::enq` on it to enqueue the unmap command.
ocl/src/async/mem_map.rs:183
↓ 3 callers
Method
unwrapped
(&self)
ocl-core/src/functions.rs:2267
↓ 3 callers
Method
version
Returns the platform driver version as a string. Returns the OpenCL version supported by the implementation. This version string has the following fo
ocl/src/standard/platform.rs:119
↓ 3 callers
Method
write
(self)
ocl-core/src/lib.rs:877
↓ 2 callers
Method
_as_ptr_ptr
Returns a pointer pointer expected when used as a wait list.
ocl-core/src/types/abs.rs:1175
↓ 2 callers
Method
_count
Returns a count expected when used as a wait list.
ocl-core/src/types/abs.rs:1184
↓ 2 callers
Method
api_status
Returns the error status code for `Status` variants.
ocl-core/src/error.rs:56
↓ 2 callers
Function
arg_name
Returns the type name for a kernel argument at the specified index.
ocl/src/standard/kernel.rs:1735
↓ 2 callers
Method
arg_smp
(&'s mut self, sampler: &'b Sampler)
ocl/src/standard/kernel.rs:1360
↓ 2 callers
Method
as_ptr_ptr
(&self)
ocl-core/src/types/abs.rs:246
↓ 2 callers
Method
buffer
Returns the internal buffer.
ocl/src/async/buffer_sink.rs:217
↓ 2 callers
Method
build
Builds and returns a new `Kernel`
ocl/src/standard/kernel.rs:1618
↓ 2 callers
Function
bytes_to_u32
Copies a byte slice to a new `u32`. ### Stability May depricate in favor of `bytes_to`
ocl-core/src/util.rs:102
↓ 2 callers
Method
copy
Copy contents of one buffer to another.
ocl/examples/async_menagerie.rs:194
↓ 2 callers
Method
copy_host_ptr
(self)
ocl-core/src/lib.rs:811
↓ 2 callers
Method
count
(&self)
ocl-core/src/types/abs.rs:250
↓ 2 callers
Method
create_buffer
Returns a new buffer. The default dimensions and queue from this `ProQue` will be used. The buffer will be filled with zeros upon creation, blocking
ocl/src/standard/pro_que.rs:136
↓ 2 callers
Function
create_from_d3d11_buffer
Return a buffer pointer from a `D3D11` buffer object. [Version Controlled: OpenCL 1.2+] See module docs for more info. ## Safety The caller must en
ocl-core/src/functions.rs:1526
↓ 2 callers
Function
create_from_gl_buffer
( context: C, gl_object: cl_GLuint, flags: MemFlags, )
ocl-core/src/functions.rs:1324
↓ 2 callers
Method
create_unmap_event
Create an event which will be triggered (set complete) after this future resolves into a `SinkMapGuard` **and** after that `SinkMapGuard` is dropped.
ocl/src/async/buffer_map_sink.rs:150
↓ 2 callers
Method
device
Returns the `DeviceId` associated with this command queue.
ocl-core/src/types/abs.rs:614
↓ 2 callers
Method
device_version
Returns the cached device version.
ocl/src/standard/queue.rs:88
↓ 2 callers
Method
device_versions
(&self)
ocl-core/src/types/abs.rs:162
↓ 2 callers
Method
dims
Returns the current `dims` or panics. [UNSTABLE]: Evaluate which 'dims' method to keep. Leaning towards this version at the moment.
ocl/src/standard/pro_que.rs:201
↓ 2 callers
Method
enew_release
Creates an event which will be triggered after this future resolves and** the ensuing `OrderGuard` is dropped or manually released. `enew` must be an
ocl/src/async/order_lock.rs:456
↓ 2 callers
Method
enew_unmap
Specifies an event which will be triggered (set complete) after this future resolves into a `MemMap` **and** after that `MemMap` is dropped or manuall
ocl/src/async/future_mem_map.rs:98
↓ 2 callers
Method
enq_details
( &mut self, )
ocl/src/standard/buffer.rs:2020
↓ 2 callers
Function
enqueue_acquire_d3d11_objects
Acquire D3D11 memory objects (buffers and images) that have been created from D3D11 objects. To create a slice from a single `Mem` reference without
ocl-core/src/functions.rs:1681
↓ 2 callers
Function
enqueue_acquire_gl_objects
( command_queue: &CommandQueue, buffers: &[Mem], wait_list: Option<Ewl>, new_event: Option<En>
ocl-core/src/functions.rs:3451
↓ 2 callers
Method
enqueue_marker
Enqueue a marker event representing the completion of each and every event in this list.
ocl/src/standard/event.rs:509
↓ 2 callers
Function
enqueue_release_d3d11_objects
Release D3D11 memory objects (buffers and images) that have been created from D3D11 objects. To create a slice from a single `Mem` reference without
ocl-core/src/functions.rs:1720
↓ 2 callers
Function
enqueue_release_gl_objects
( command_queue: &CommandQueue, buffers: &[Mem], wait_list: Option<Ewl>, new_event: Option<En>
ocl-core/src/functions.rs:3483
↓ 2 callers
Method
enqueue_unmap
Enqueues an unmap command for this memory object immediately. Prefer `::unmap` for a more stable interface as this function may change at any time.
ocl/src/async/mem_map.rs:191
↓ 2 callers
Function
enqueue_unmap_mem_object
Enqueues a command to unmap a previously mapped region of a memory object. [SDK Docs](https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clEn
ocl-core/src/functions.rs:3940
↓ 2 callers
Function
extract_order_lock
Extracts an `OrderLock` from a guard of either type. This saves us two unnecessary atomic stores (the reference count of lock going up then down when
ocl/src/async/order_lock.rs:40
↓ 2 callers
Method
fill
Specifies that this command will be a fill operation. If `.block(..)` has been set it will be ignored. `pattern` is the vector or scalar value to re
ocl/src/standard/buffer.rs:487
↓ 2 callers
Method
free
Deallocates the buffer identified by `buffer_id` or returns it back in the event of a failure.
ocl/ocl-extras/src/sub_buffer_pool.rs:118
↓ 2 callers
Function
gen_kern_src
(kernel_name: &str, type_str: &str, simple: bool, add: bool)
ocl/examples/device_check.rs:281
↓ 2 callers
Function
get_command_queue_info
Returns information about a command queue
ocl-core/src/functions.rs:1226
↓ 2 callers
Function
get_context_info_unparsed
(context: C, request: ContextInfo)
ocl-core/src/functions.rs:992
↓ 2 callers
Function
get_device_info_raw
Returns raw information about a device, as a vector of bytes.
ocl-core/src/functions.rs:695
↓ 2 callers
Function
get_event_info
Get event info.
ocl-core/src/functions.rs:2825
↓ 2 callers
Function
get_kernel_name
Returns the name of a kernel.
ocl-core/src/functions.rs:4378
↓ 2 callers
Function
get_program_build_info
Get program build info.
ocl-core/src/functions.rs:2541
↓ 2 callers
Function
get_program_info
Get program info.
ocl-core/src/functions.rs:2525
↓ 2 callers
Function
get_program_info_raw
(program: &Program, request: ProgramInfo)
ocl-core/src/functions.rs:2463
↓ 2 callers
Function
get_properties_list
()
ocl-interop/src/lib.rs:23
↓ 2 callers
Method
get_src_strings
Returns the final program source code as a list of strings. ### Order of Inclusion 1. Macro definitions and code strings specified by a `BuildOpt::I
ocl/src/standard/program.rs:461
↓ 2 callers
Method
len_stale
Returns the length of the internal `Vec`. ### Concurrency Considerations The returned length is to be considered immediately stale (out of date) due
ocl/src/async/rw_vec.rs:78
↓ 2 callers
Method
map
Specifies that this command will be a map operation. Enqueuing a map command will map a region of a buffer into the host address space and return a [
ocl/src/standard/buffer.rs:311
↓ 2 callers
Method
matches
Returns true if `type_id` matches the base type of this `ArgType`.
ocl/src/standard/kernel.rs:1911
↓ 2 callers
Method
new_arg_scl
Non-builder-style version of `::arg_scl()`.
ocl/src/standard/kernel.rs:1269
↓ 2 callers
Method
new_arg_vec
Non-builder-style version of `::arg_vec()`.
ocl/src/standard/kernel.rs:1281
↓ 2 callers
Function
poll_events
Polls events for `EventArray` and `EventList`
ocl/src/standard/event.rs:329
← previous
next →
201–300 of 1,097, ranked by callers