File: MESA_sampler_objects.spec

package info (click to toggle)
mesa 24.3.4-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 279,568 kB
  • sloc: ansic: 2,122,763; xml: 1,010,303; cpp: 513,137; python: 70,351; asm: 38,315; lisp: 20,211; yacc: 12,036; lex: 3,372; sh: 841; makefile: 256
file content (105 lines) | stat: -rw-r--r-- 3,358 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
Name

    MESA_sampler_objects

Name Strings

    GL_MESA_sampler_objects

Contact

    Adam Jackson <ajax@redhat.com>

Contributors

    Emma Anholt
    The contributors to ARB_sampler_objects and OpenGL ES 3

Status

    Shipping

Version

    Last Modified Date:         14 Sep 2021
    Author Revision:            3

Number

    TBD

Dependencies

    OpenGL ES 2.0 is required.

    This extension interacts with:
      - EXT_shadow_samplers
      - EXT_texture_filter_anisotropic
      - EXT_texture_sRGB_decode
      - OES_texture_border_clamp

Overview

    This extension makes the sampler object subset of OpenGL ES 3.0 available
    in OpenGL ES 2.0 contexts. As the intent is to allow access to the API
    without necessarily requiring additional renderer functionality, some
    sampler state that would be mandatory in GLES 3 is dependent on the
    presence of additional extensions. Under GLES 3.0 or above this extension's
    name string may be exposed for compatibility, but it is otherwise without
    effect.

    Refer to the OpenGL ES 3.0 specification for API details not covered here.

New Procedures and Functions

    void glGenSamplers (GLsizei count, GLuint *samplers);
    void glDeleteSamplers (GLsizei count, const GLuint *samplers);
    GLboolean glIsSampler (GLuint sampler);
    void glBindSampler (GLuint unit, GLuint sampler);
    void glSamplerParameteri (GLuint sampler, GLenum pname, GLint param);
    void glSamplerParameteriv (GLuint sampler, GLenum pname, const GLint *param);
    void glSamplerParameterf (GLuint sampler, GLenum pname, GLfloat param);
    void glSamplerParameterfv (GLuint sampler, GLenum pname, const GLfloat *param);
    void glGetSamplerParameteriv (GLuint sampler, GLenum pname, GLint *params);
    void glGetSamplerParameterfv (GLuint sampler, GLenum pname, GLfloat *params);

    Note that these names are exactly as in ES3, with no MESA suffix.

New Tokens

            SAMPLER_BINDING                                 0x8919

Interactions

    If EXT_shadow_samplers is not supported then TEXTURE_COMPARE_MODE and
    TEXTURE_COMPARE_FUNC will generate INVALID_ENUM.

    If EXT_texture_filter_anisotropic is not supported then
    TEXTURE_MAX_ANISOTROPY_EXT will generate INVALID_ENUM.

    If EXT_texture_sRGB_decode is not supported then TEXTURE_SRGB_DECODE_EXT
    will generate INVALID_ENUM.

    If OES_texture_border_clamp is not supported then TEXTURE_BORDER_COLOR
    will generate INVALID_ENUM.

Issues

    1) Why bother?

    Sampler objects, at least in Mesa, are generically supported without any
    driver-dependent requirements, so enabling this is essentially free. This
    simplifies application support for otherwise GLES2 hardware, and for
    drivers in development that haven't yet achieved GLES3.

Revision History

    Rev.    Date      Author    Changes
    ----  --------    --------  ---------------------------------------------
      1   2019/10/22  ajax      Initial revision
      2   2019/11/14  ajax      Add extension interactions:
                                  - EXT_shadow_samplers
                                  - EXT_texture_filter_anisotropic
                                  - EXT_texture_sRGB_decode
                                  - OES_texture_border_clamp
      3   2021/09/14  ajax      Expand the justification and ES3 interaction