Function cl_create_buffer_with_creator

Source
pub unsafe fn cl_create_buffer_with_creator<T: ClNumber, B: BufferCreator<T>>(
    context: cl_context,
    mem_flags: cl_mem_flags,
    buffer_creator: B,
) -> Output<cl_mem>
Expand description

Low-level helper for creating a cl_mem buffer from a context, mem flags, and a buffer creator.

ยงSafety

Use of a invalid cl_context in this function call is undefined behavior.