• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Name
2
3    ANGLE_metal_texture_client_buffer
4
5Name Strings
6
7    EGL_ANGLE_metal_texture_client_buffer
8
9Contributors
10
11    Le Hoang Quyen
12
13Contacts
14
15    Jamie Madill, Google (jmadill 'at' google 'dot' com)
16    Le Hoang Quyen (lehoangq 'at' gmail.com)
17
18Status
19
20    Draft
21
22Version
23    Version 1, Jul 19, 2020
24
25Number
26
27    EGL Extension #??
28
29Dependencies
30
31    This extension is written against the wording of the EGL 1.4
32    Specification.
33
34Overview
35
36    This extension allows creating EGL images from external metal texture objects.
37
38New Types
39
40    None
41
42New Procedures and Functions
43
44    None
45
46New Tokens
47
48    Accepted in the <target> parameter of eglCreateImageKHR:
49
50        EGL_METAL_TEXTURE_ANGLE               0x34A7
51
52Additions to Chapter 2 of the EGL 1.2 Specification (EGL Operation)
53
54    Add to section 2.5.1 "EGLImage Specification" (as defined by the
55    EGL_KHR_image_base specification), in the description of
56    eglCreateImageKHR:
57
58   "Values accepted for <target> are listed in Table aaa, below.
59
60      +----------------------------+-----------------------------------------+
61      |  <target>                  |  Notes                                  |
62      +----------------------------+-----------------------------------------+
63      |  EGL_METAL_TEXTURE_ANGLE   |  Used for Metal texture objects         |
64      +----------------------------+-----------------------------------------+
65       Table aaa.  Legal values for eglCreateImageKHR <target> parameter
66
67    ...
68
69    If <target> is EGL_METAL_TEXTURE_ANGLE, <dpy> must be a valid display, <ctx>
70    must be EGL_NO_CONTEXT, <buffer> must be a pointer to a valid MTLTexture
71    object (cast into the type EGLClientBuffer), and attributes are ignored.
72    The width and height of the pbuffer are determined by the width and height
73    of <buffer>."
74
75    If the EGL_ANGLE_device_metal extension is present, the provided Metal texture
76    object must have been created by the same Metal device queried from the
77    display. If these requirements are not met, an EGL_BAD_PARAMETER error is
78    generated."
79
80Revision History
81
82    Version 1, 2020/19/07 - First draft
83