pub struct ClContextBuilder<'a> {
pub platforms: Option<&'a [ClPlatformID]>,
pub device_type: Option<DeviceType>,
pub devices: Option<&'a [ClDeviceID]>,
}
Fields§
§platforms: Option<&'a [ClPlatformID]>
§device_type: Option<DeviceType>
§devices: Option<&'a [ClDeviceID]>
Implementations§
Source§impl<'a> ClContextBuilder<'a>
impl<'a> ClContextBuilder<'a>
pub fn new() -> ClContextBuilder<'a>
pub fn with_platforms( self, platforms: &'a [ClPlatformID], ) -> ClContextBuilder<'a>
pub fn with_device_type(self, device_type: DeviceType) -> ClContextBuilder<'a>
pub fn with_devices(self, devices: &'a [ClDeviceID]) -> ClContextBuilder<'a>
pub unsafe fn build(self) -> Output<BuiltClContext>
pub unsafe fn build_with_defaults() -> Output<BuiltClContext>
pub unsafe fn build_from_platforms( platforms: &[ClPlatformID], ) -> Output<BuiltClContext>
pub unsafe fn build_from_platforms_with_device_type( platforms: &[ClPlatformID], device_type: DeviceType, ) -> Output<BuiltClContext>
pub unsafe fn build_from_devices( devices: &[ClDeviceID], ) -> Output<BuiltClContext>
pub unsafe fn build_from_device_type( device_type: DeviceType, ) -> Output<BuiltClContext>
Auto Trait Implementations§
impl<'a> Freeze for ClContextBuilder<'a>
impl<'a> RefUnwindSafe for ClContextBuilder<'a>
impl<'a> Send for ClContextBuilder<'a>
impl<'a> Sync for ClContextBuilder<'a>
impl<'a> Unpin for ClContextBuilder<'a>
impl<'a> UnwindSafe for ClContextBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more