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;

Members

  • origin is the offset in bytes of the region.

  • size is the size in bytes of the region.

Description

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 (c) 2014-2020 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.