GET_IMAGE_DIM(3clc)

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

πŸ’– 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 🫢


πŸ‘‘ AUTHORS πŸ‘‘

The Khronos Group. ate. πŸ’–


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

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