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
  • ProgramLinkedResources.cpp
Find file
BlameHistoryPermalink
  • Jiajia Qin's avatar
    ES31: Fixed the SSBO instance array error · feb2c63b
    Jiajia Qin authored Dec 08, 2017
    In ESSL 3.10 spec, there are below descriptions:
    1. Any uniform or shader storage block declared without a binding qualifier
    is initially assigned to block binding point zero.
    2. If the binding qualifier is used with a uniform block or shader storage
    block instanced as an array, the first element of the array takes the
    specified block binding and each subsequent element takes the next
    consecutive binding point.
    
    So explicitly specifying the binding to zero is different with not declaring
    a binding qualifier for a block instance array.
    
    For example:
    1)    layout(shared, binding = 0) buffer blockName {
              uint data;
          } instanceName[3];
    
    2)    layout(shared) buffer blockName {
              uint data;
          } instanceName[3];
    In 1), the binding point of each element instance is 0, 1, 2.
    In 2), the binding point of each element instance is 0, 0, 0.
    
    BUG=angleproject:1951
    TEST=dEQP-GLES31.functional.ssbo.layout.*
    
    Change-Id: If770d6e1fd8e13d2cdc762bab289772076258e4c
    Reviewed-on: https://chromium-review.googlesource.com/816340Reviewed-by: 's avatarOlli Etuaho <oetuaho@nvidia.com>
    Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
    Commit-Queue: Corentin Wallez <cwallez@chromium.org>
    feb2c63b
ProgramLinkedResources.cpp 39.4 KB
EditWeb IDE
×

Replace ProgramLinkedResources.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.