Function ocl_core::get_context_platform
[−]
[src]
pub fn get_context_platform<C>(context: C) -> OclResult<Option<PlatformId>> where
C: ClContextPtr,
Returns the platform for a context.
Errors upon the usual OpenCL errors.
Returns None
if the context properties do not specify a platform.