GET_IMAGE_ARRAY_SIZE(3clc)
β¨ GET_IMAGE_ARRAY_SIZE β¨
ok so we're doing get_image_array_size today bestie, from the OpenCL manual (that's the 3clc girlies π) π
πΈ NAME πΈ
get_image_array_size β returns the number of images in an image array. that's it. that's the whole job. and she does it flawlessly π
size_t get_image_array_size(image2d_array_t image);
size_t get_image_array_size(image1d_array_t image);
like yes, two signatures, she contains multitudes π¦
π«Ά DESCRIPTION π«Ά
ok so picture this: you've got a whole array of images and you're like "bestie⦠how many of y'all are in there??" and that's literally what she does.
get_image_array_size used with otherDataTypes(3clc) returns the number of images in a 2D image array. iconic. no cap β¨
get_image_array_size used with otherDataTypes(3clc) returns the number of images in a 1D image array. same energy, different dimensionality, we love range π
π SPECIFICATION π
OpenCL Specification[1] β the source of truth, the blueprint, the blueprint <3 π
π SEE ALSO π
imageFunctions(3clc)β go read her sisters, iykyk π
π AUTHORS π
The Khronos Group π«Ά (yes THE Khronos Group, main character energy fr fr)
βοΈ COPYRIGHT βοΈ
Copyright Β© 2007-2011 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and/or associated documentation files (the "Materials"), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to the condition that this copyright notice and permission notice shall be included in all copies or substantial portions of the Materials.
okay so real talk: that permission notice? she is NOT optional. if you copy or substantially use the Materials, the copyright notice and the permission notice have to ride along in all copies or substantial portions. periodt. π
π NOTES π
- OpenCL Specification β page 292, section 6.12.14 β Image Read and Write Functions π
and that's the whole page bestie, go forth and count your images πβ¨
signing off: brought to you by The Khronos Group, dated 01/14/2021, and yes this was GET_IMAGE_ARRAY_SIZE(3clc) the whole time ππ¦π
π¦ where this page comes from
- ubuntu jammy: opencl-1.2-man-doc 1.0~svn33624-5 Β· other
- ubuntu noble: opencl-1.2-man-doc 1.0~svn33624-5 Β· other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms