forked from OSchip/llvm-project
[OpenCL] opencl-c.h: Add const to get_image_num_samples
Align with the `-fdeclare-opencl-builtins` option and other get_image_* builtins which have the const attribute. Differential Revision: https://reviews.llvm.org/D122728
This commit is contained in:
parent
2ba865903d
commit
f3ee0afc67
|
@ -16118,21 +16118,21 @@ size_t __ovld __cnfn get_image_array_size(read_write image2d_array_msaa_depth_t)
|
|||
* Return the number of samples associated with image
|
||||
*/
|
||||
#if defined(cl_khr_gl_msaa_sharing)
|
||||
int __ovld get_image_num_samples(read_only image2d_msaa_t);
|
||||
int __ovld get_image_num_samples(read_only image2d_msaa_depth_t);
|
||||
int __ovld get_image_num_samples(read_only image2d_array_msaa_t);
|
||||
int __ovld get_image_num_samples(read_only image2d_array_msaa_depth_t);
|
||||
int __ovld __cnfn get_image_num_samples(read_only image2d_msaa_t);
|
||||
int __ovld __cnfn get_image_num_samples(read_only image2d_msaa_depth_t);
|
||||
int __ovld __cnfn get_image_num_samples(read_only image2d_array_msaa_t);
|
||||
int __ovld __cnfn get_image_num_samples(read_only image2d_array_msaa_depth_t);
|
||||
|
||||
int __ovld get_image_num_samples(write_only image2d_msaa_t);
|
||||
int __ovld get_image_num_samples(write_only image2d_msaa_depth_t);
|
||||
int __ovld get_image_num_samples(write_only image2d_array_msaa_t);
|
||||
int __ovld get_image_num_samples(write_only image2d_array_msaa_depth_t);
|
||||
int __ovld __cnfn get_image_num_samples(write_only image2d_msaa_t);
|
||||
int __ovld __cnfn get_image_num_samples(write_only image2d_msaa_depth_t);
|
||||
int __ovld __cnfn get_image_num_samples(write_only image2d_array_msaa_t);
|
||||
int __ovld __cnfn get_image_num_samples(write_only image2d_array_msaa_depth_t);
|
||||
|
||||
#if defined(__opencl_c_read_write_images)
|
||||
int __ovld get_image_num_samples(read_write image2d_msaa_t);
|
||||
int __ovld get_image_num_samples(read_write image2d_msaa_depth_t);
|
||||
int __ovld get_image_num_samples(read_write image2d_array_msaa_t);
|
||||
int __ovld get_image_num_samples(read_write image2d_array_msaa_depth_t);
|
||||
int __ovld __cnfn get_image_num_samples(read_write image2d_msaa_t);
|
||||
int __ovld __cnfn get_image_num_samples(read_write image2d_msaa_depth_t);
|
||||
int __ovld __cnfn get_image_num_samples(read_write image2d_array_msaa_t);
|
||||
int __ovld __cnfn get_image_num_samples(read_write image2d_array_msaa_depth_t);
|
||||
#endif //defined(__opencl_c_read_write_images)
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue