OpenCL-Headers icon indicating copy to clipboard operation
OpenCL-Headers copied to clipboard

should the headers include an extension version?

Open bashbaug opened this issue 4 years ago • 0 comments

Since we have started to include the extension version in the extension specs, should we include the extension version in the headers also? This will help applications to know what is the maximum version of the extension their headers support, vs. checking for the presence or absence of features that may be available only in newer versions of the extension individually.

This is done by some Khronos specs already. For example, the headers for a Vulkan extension include a line similar to:

#define VK_KHR_SURFACE_SPEC_VERSION       25

If we decide to do this, ideally we would include the version in the XML file and generate it in the headers (#113, #161).

bashbaug avatar Oct 02 '21 00:10 bashbaug