Skip to main content

Loaded

Struct Loaded 

Source
pub struct Loaded {
Show 24 fields pub ze_driver_get: unsafe extern "C" fn(p_count: *mut u32, ph_drivers: *mut ZeDriverHandle) -> ZeResult, pub ze_device_get: unsafe extern "C" fn(h_driver: ZeDriverHandle, p_count: *mut u32, ph_devices: *mut ZeDeviceHandle) -> ZeResult, pub ze_device_get_properties: unsafe extern "C" fn(h_device: ZeDeviceHandle, p_properties: *mut ZeDeviceProperties) -> ZeResult, pub ze_context_create: ZeContextCreateFn, pub ze_context_destroy: ZeContextDestroyFn, pub ze_command_queue_create: ZeCommandQueueCreateFn, pub ze_command_queue_destroy: ZeCommandQueueDestroyFn, pub ze_command_list_create: ZeCommandListCreateFn, pub ze_command_list_destroy: ZeCommandListDestroyFn, pub ze_mem_alloc_device: ZeMemAllocDeviceFn, pub ze_mem_alloc_shared: ZeMemAllocSharedFn, pub ze_mem_free: ZeMemFreeFn, pub ze_module_create: ZeModuleCreateFn, pub ze_module_destroy: ZeModuleDestroyFn, pub ze_kernel_create: ZeKernelCreateFn, pub ze_kernel_destroy: ZeKernelDestroyFn, pub ze_kernel_set_group_size: ZeKernelSetGroupSizeFn, pub ze_kernel_set_argument_value: ZeKernelSetArgumentValueFn, pub ze_command_list_append_launch_kernel: ZeCommandListAppendLaunchKernelFn, pub ze_command_list_append_memory_copy: ZeCommandListAppendMemoryCopyFn, pub ze_command_list_close: ZeCommandListCloseFn, pub ze_command_list_reset: ZeCommandListResetFn, pub ze_command_queue_execute_command_lists: ZeCommandQueueExecuteCommandListsFn, pub ze_command_queue_synchronize: ZeCommandQueueSynchronizeFn, /* private fields */
}
Expand description

Level Zero entry points resolved from ze_loader, kept alive for the process lifetime.

Fields§

§ze_driver_get: unsafe extern "C" fn(p_count: *mut u32, ph_drivers: *mut ZeDriverHandle) -> ZeResult

zeDriverGet.

§ze_device_get: unsafe extern "C" fn(h_driver: ZeDriverHandle, p_count: *mut u32, ph_devices: *mut ZeDeviceHandle) -> ZeResult

zeDeviceGet.

§ze_device_get_properties: unsafe extern "C" fn(h_device: ZeDeviceHandle, p_properties: *mut ZeDeviceProperties) -> ZeResult

zeDeviceGetProperties.

§ze_context_create: ZeContextCreateFn

zeContextCreate.

§ze_context_destroy: ZeContextDestroyFn

zeContextDestroy.

§ze_command_queue_create: ZeCommandQueueCreateFn

zeCommandQueueCreate.

§ze_command_queue_destroy: ZeCommandQueueDestroyFn

zeCommandQueueDestroy.

§ze_command_list_create: ZeCommandListCreateFn

zeCommandListCreate.

§ze_command_list_destroy: ZeCommandListDestroyFn

zeCommandListDestroy.

§ze_mem_alloc_device: ZeMemAllocDeviceFn

zeMemAllocDevice.

§ze_mem_alloc_shared: ZeMemAllocSharedFn

zeMemAllocShared.

§ze_mem_free: ZeMemFreeFn

zeMemFree.

§ze_module_create: ZeModuleCreateFn

zeModuleCreate.

§ze_module_destroy: ZeModuleDestroyFn

zeModuleDestroy.

§ze_kernel_create: ZeKernelCreateFn

zeKernelCreate.

§ze_kernel_destroy: ZeKernelDestroyFn

zeKernelDestroy.

§ze_kernel_set_group_size: ZeKernelSetGroupSizeFn

zeKernelSetGroupSize.

§ze_kernel_set_argument_value: ZeKernelSetArgumentValueFn

zeKernelSetArgumentValue.

§ze_command_list_append_launch_kernel: ZeCommandListAppendLaunchKernelFn

zeCommandListAppendLaunchKernel.

§ze_command_list_append_memory_copy: ZeCommandListAppendMemoryCopyFn

zeCommandListAppendMemoryCopy.

§ze_command_list_close: ZeCommandListCloseFn

zeCommandListClose.

§ze_command_list_reset: ZeCommandListResetFn

zeCommandListReset.

§ze_command_queue_execute_command_lists: ZeCommandQueueExecuteCommandListsFn

zeCommandQueueExecuteCommandLists.

§ze_command_queue_synchronize: ZeCommandQueueSynchronizeFn

zeCommandQueueSynchronize.

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.