Module Device.Buffer_spec
Buffer allocation options.
A t describes allocation constraints for a device buffer: memory location, caching policy, and optional external backing.
type t = {uncached : bool;(*
*)trueto request uncached memory.cpu_access : bool;(*
*)trueto request CPU-accessible device memory.host : bool;(*
*)trueto allocate in host memory.nolru : bool;(*
*)trueto bypass the LRU allocator cache on free.external_ptr : nativeint option;(*External backing pointer, or
*)Noneto let the allocator choose. Buffers with an external pointer bypass LRU caching on free.
}Buffer allocation options.
val default : tdefault is {uncached = false; cpu_access = false; host = false; nolru = false; external_ptr = None}.