On 03/05/2025 04:39, Russell Greene wrote:
Is this documented anywhere? Should I maybe have a fixed sized stack buffer and fallback to an allocation if it's just a rule of thumb that it'll be less than some known small number. I just somehow doubt this is in the vulkan spec or any sort of guaranteed....
vkGetPhysicalDeviceToolPropertiesEXT(dev, nb, array)If pToolProperties is NULL, then the number of tools currently active on physicalDevice is returned in pToolCount. Otherwise, pToolCount must point to a variable set by the application to the number of elements in the pToolProperties array, and on return the variable is overwritten with the number of structures actually written to pToolProperties. If pToolCount is less than the number of currently active tools, at most pToolCount structures will be written.
It's in the spec. Different function, but all functions which write to an array follow the same signature.
OpenPGP_0xA2FEA5F03F034464.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".