summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarm-wk <53617630+ouakheli@users.noreply.github.com>2022-05-06 05:31:39 +0100
committerGitHub <noreply@github.com>2022-05-05 21:31:39 -0700
commite444a714e4115feade43f3f8f7c01469bb09929a (patch)
tree187e8d0f597a53320a87e45b556d7b8e92b2d3b6
parent3568763309367bc7d7088a1d3f82f2d32c76a7f8 (diff)
downloadOpenCL-Headers-e444a714e4115feade43f3f8f7c01469bb09929a.tar.gz
Add cl_ext_image_requirements_info extension definition (#197)
-rw-r--r--CL/cl_ext.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/CL/cl_ext.h b/CL/cl_ext.h
index 5d4bcc2..3df4443 100644
--- a/CL/cl_ext.h
+++ b/CL/cl_ext.h
@@ -2446,6 +2446,50 @@ typedef struct _cl_queue_family_properties_intel {
***************************************************************/
#define cl_intel_sharing_format_query 1
+/***************************************************************
+* cl_ext_image_requirements_info
+***************************************************************/
+
+#ifdef CL_VERSION_3_0
+
+#define cl_ext_image_requirements_info 1
+
+typedef cl_uint cl_image_requirements_info_ext;
+
+#define CL_IMAGE_REQUIREMENTS_ROW_PITCH_ALIGNMENT_EXT 0x1290
+#define CL_IMAGE_REQUIREMENTS_BASE_ADDRESS_ALIGNMENT_EXT 0x1292
+#define CL_IMAGE_REQUIREMENTS_SIZE_EXT 0x12B2
+#define CL_IMAGE_REQUIREMENTS_MAX_WIDTH_EXT 0x12B3
+#define CL_IMAGE_REQUIREMENTS_MAX_HEIGHT_EXT 0x12B4
+#define CL_IMAGE_REQUIREMENTS_MAX_DEPTH_EXT 0x12B5
+#define CL_IMAGE_REQUIREMENTS_MAX_ARRAY_SIZE_EXT 0x12B6
+
+extern CL_API_ENTRY cl_int CL_API_CALL
+clGetImageRequirementsInfoEXT(
+ cl_context context,
+ const cl_mem_properties* properties,
+ cl_mem_flags flags,
+ const cl_image_format* image_format,
+ const cl_image_desc* image_desc,
+ cl_image_requirements_info_ext param_name,
+ size_t param_value_size,
+ void* param_value,
+ size_t* param_value_size_ret) CL_API_SUFFIX__VERSION_3_0;
+
+typedef cl_int (CL_API_CALL *
+clGetImageRequirementsInfoEXT_fn)(
+ cl_context context,
+ const cl_mem_properties* properties,
+ cl_mem_flags flags,
+ const cl_image_format* image_format,
+ const cl_image_desc* image_desc,
+ cl_image_requirements_info_ext param_name,
+ size_t param_value_size,
+ void* param_value,
+ size_t* param_value_size_ret) CL_API_SUFFIX__VERSION_3_0;
+
+#endif
+
#ifdef __cplusplus
}
#endif