C Specification

The cl_buffer_region structure specifies a region of a buffer object:

typedef struct cl_buffer_region {
    size_t    origin;
    size_t    size;
} cl_buffer_region;


  • origin is the offset in bytes of the region.

  • size is the size in bytes of the region.


Constraints on the values of origin and size are specified for the clCreateSubBuffer function to which this structure is passed.

See Also

Document Notes

For more information, see the OpenCL Specification

This page is extracted from the OpenCL Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2023 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0