Hash :
9b0911a0
        
        Author :
  
        
        Date :
2021-04-02T12:46:37
        
      
Add GL_ANGLE_get_serialized_context_string. This will provide a front-door entry point where we can get a serialized string representing the context state. Previously we would have to call ANGLE internal directly. This will enable a refactor of the replays to work more like standalone plugin libraries. Bug: angleproject:5811 Change-Id: I5a97d7aa3cd70c49199264c2eb7ca953943ac3c3 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2803391 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Cody Northrop <cnorthrop@google.com> Reviewed-by: Tim Van Patten <timvp@google.com>
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
Name
    ANGLE_get_serialized_context_string
Name Strings
    GL_ANGLE_get_serialized_context_string
Contributors
    Jamie Madill, Google
Contact
    Jamie Madill, Google (jmadill 'at' google.com)
Status
    Implemented in ANGLE.
Version
    Last Modified Date: April 2, 2021
    Revision: #1
Number
    TBD
Dependencies
    OpenGL ES 2.0 is required.
Overview
    Adds a query for a serialized string representation of a context.
    Useful for testing to easily compare two states.
New Tokens
    Accepted by the <name> parameter of glGetString:
        SERIALIZED_CONTEXT_STRING_ANGLE   0x96B0
Additions to Chapter 6 of the OpenGL ES 2.0 Specification (Querying GL State)
    Update Section 6.1.5 "String Queries" to accept the new enum specified
    above. The SERIALIZED_CONTEXT_STRING_ANGLE string is an implementation-
    dependent representation of the current context state. Two contexts
    with the same internal state are guaranteed to have the same value. Note
    that the reverse is not true - two contexts with different states are
    may also have the same serialized string.
New State
    None.
Issues
    1) Should two contexts with different states return different strings?
    RESOLVED: We don't provide a guarantee that every state is serialized
      into the string. This loose wording lets the extension provide
      some additional extra validation without being overly strict and
      making the implementation difficult. It also allow a no-op
      implementation to satisfy the extension requirements.
Revision History
    2021/04/02  jmadill  Initial revision.