Path: blob/main_old/extensions/EGL_ANGLE_device_metal.txt
1693 views
Name12ANGLE_device_metal34Name Strings56EGL_ANGLE_device_metal78Contributors910Le Hoang Quyen1112Contact1314Jamie Madill, Google (jmadill 'at' google 'dot' com)15Le Hoang Quyen (lehoangq 'at' gmail.com)1617Status1819Draft2021Version2223Version 1, Jul 19, 20202425Number2627EGL Extension #XXX2829Extension Type3031EGL device extension3233Dependencies3435This extension is written against the language of EGL 1.5 as36modified by EGL_EXT_device_query.3738EGL_EXT_device_query is required.3940Overview4142ANGLE has the ability to run GPU commands on a metal device.43This extension defines a mapping from an EGL device to a metal44device, after it's queried from an EGL display.4546IP Status4748No known claims.4950New Types5152None.5354New Procedures and Functions5556None.5758New Tokens5960Accepted as a queried <attribute> in eglQueryDeviceAttribEXT:6162EGL_METAL_DEVICE_ANGLE 0x34A66364Add a new section 2.1.3 (Metal Devices) after 2.1.2 (Devices)6566Somewhat analogous to an EGL device, a Metal device establishes a67namespace for Metal operations. In the Metal APIs, such devices are68represented by pointers. For more details, see the Metal69documentation.7071Changes to section 3.2 (Devices)7273Replace the paragraph immediately following the prototype for74eglQueryDeviceAttribEXT:7576<attribute> may be EGL_METAL_DEVICE_ANGLE.77On success, EGL_TRUE is returned, and a valid MTLDevice pointer78corresponding to the EGL device is returned in <value>. This handle79is compatible with Metal API functions. If the EGL device is not currently80associated with a Metal device and <attribute> is EGL_METAL_DEVICE_ANGLE,81EGL_BAD_ATTRIBUTE is returned, and <value> is left unchanged.8283Issues8485None8687Revision History8889Version 1, Jul 19, 2020 (Le Hoang Quyen)90- Initial Draft919293