GET_IMAGE_ARRAY_SIZE(3clc)

πŸ“¦
version 1.0~svn33624 Β· 3 versions
, in ubuntu jammy, ubuntu noble

✨ 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 πŸ‘€


πŸ’œ AUTHORS πŸ’œ

The Khronos Group 🫢 (yes THE Khronos Group, main character energy fr fr)


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 πŸ“

  1. 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