GET_IMAGE_DIM(3clc)
π GET_IMAGE_DIM π
okay bestie, welcome to get_image_dim(3clc) β straight out of the OpenCL Manual, and she is literally the girl who tells you how big your image is. no guessing, no vibes, just numbers. π
β¨ NAME β¨
get_image_dim β return the image dimensions. π
and here's the whole roster of glow-ups, copied exactly as they are:
int2 get_image_dim(image2d_t image);
int2 get_image_dim(image2d_array_t image);
int4 get_image_dim(image3d_t image);
π¦ DESCRIPTION π¦
so when you call get_image_dim with otherDataTypes(3clc) and otherDataTypes(3clc), she hands you back the 2D image width and height as an int2 type. the width pulls up in the x component (main character slot, obviously) and the height is in the y component. π
and when you call get_image_dim with otherDataTypes(3clc), you get the 3D image width, height, and depth back as an int4 type. the breakdown is: width in the x component, height in the y component, depth in the z component, and the w component is 0. not me being the fourth one and contributing literally nothing π but that's the spec, bestie, we don't question her.
πΈ SPECIFICATION πΈ
OpenCL Specification[1] β
π«Ά SEE ALSO π«Ά
imageFunctions(3clc)β go read her too, she's iconic
π AUTHORS π
The Khronos Group. ate. π
π 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 following conditions:
the condition being that this copyright notice and permission notice shall be included in all copies or substantial portions of the Materials. fr fr, don't strip the notice, that's not the move π
π NOTES π
- OpenCL Specification β page 292, section 6.12.14 - Image Read and Write Functions π
and that's the whole page, no cap. brought to you by The Khronos Group, dated 01/14/2021, filed under GET_IMAGE_DIM(3clc) β go check your image dims, bestie, and slay π
β¨π§
π¦ 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