diff --git a/doc/runtime_memory.rst b/doc/runtime_memory.rst index 94d7d1979695f3e6185f839f1f824fb6b6faec5c..75b60253d3d5c267e4d70707a8714710de2eaae0 100644 --- a/doc/runtime_memory.rst +++ b/doc/runtime_memory.rst @@ -98,6 +98,12 @@ Buffer :arg mem: the on device :class:`Buffer` :arg pattern: a buffer object (likely a :class:`numpy.ndarray`, eg. `np.uint32(0)`) + The memory associated with *pattern* can be reused or freed once the function + completes. + :arg size: The size in bytes of the region to be filled. Must be a multiple of the + size of the pattern. + :arg offset: The location in bytes of the region being filled in *mem*. + Must be a multiple of the size of the pattern. Fills a buffer with the provided pattern