Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • libANGLE
  • State.cpp
Find file
BlameHistoryPermalink
  • Jiawei-Shao's avatar
    ES31: Refactor VertexArray for Vertex Attrib Binding · 2597fb64
    Jiawei-Shao authored Dec 09, 2016
    OpenGL ES3.1 feature Vertex Attrib Binding requires vertex arrays should
    be split into two arrays:
    1. an array of vertex buffer binding points, each of which specifies:
      - a bound buffer object,
      - a starting offset for vertex attribute data in that buffer object,
      - a stride used by all attributes using that binding point,
      - a frequency divisor used by all attributes using that binding point.
    2. an array of generic vertex attribute format information records, each
    of which specifies:
      - a reference to one of the new buffer binding points above,
      - a component count and format, and a normalization flag for the
        attribute data,
      - the offset of the attribute data relative to the base offset of each
        vertex found at the associated binding point.
    
    Current ANGLE implementation simply uses a struct to represent a vertex
    attribute object, which does not meet the requirements above.
    
    This patch aims to be the the basis of the implementation of all ES3.1
    Vertex Attrib Binding APIs by refactoring the struct VertexAttribute and
    the class VertexArray to fit the new data layout and ensuring all current
    functionality is retained.
    
    BUG=angleproject:1593
    
    TEST=angle_unittests, angle_end2end_tests, gpu_unittests
    
    Change-Id: Ieb41f1bf503f815fd0476d2ea045dcb863465254
    Reviewed-on: https://chromium-review.googlesource.com/418880Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
    Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Commit-Queue: Jamie Madill <jmadill@chromium.org>
    2597fb64
State.cpp 60.7 KB
EditWeb IDE
×

Replace State.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.