Feature request: Metal API to determine total GPU memory.

Originator:raphael
Number:rdar://25311988 Date Originated:23-Mar-2016 11:48 AM
Status:Open Resolved:
Product:OS X SDK Product Version:10.11.4
Classification:Feature (New) Reproducible:Not Applicable
 
In Metal, there is currently no API to determine total GPU memory for an MTLDevice, we have to revert to OpenGL API for that. This is cumbersome, and can be problematic if we cannot assert that the Metal renderer corresponds to the GL renderer being inspected.

Tuning algorithms & size of textures depending on VRAM amount is *very useful* as you can imagine, especially considering the larger variability of GPUs on Mac.

Please consider adding specific API to retrieve total (and possibly available, if that makes sense) VRAM amount.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!