Function ocl_core::create_image
[−]
[src]
pub unsafe fn create_image<C, T>(
context: C,
flags: MemFlags,
format: &ImageFormat,
desc: &ImageDescriptor,
data: Option<&[T]>,
device_versions: Option<&[OpenclVersion]>
) -> OclResult<Mem> where
C: ClContextPtr,
T: OclPrm,
Returns a new image (mem) pointer.
[TODO]: If version is < 1.2, automatically use older versions.
[Version Controlled: OpenCL 1.2+] See module docs for more info.