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
  • tests
  • gl_tests
  • GLSLTest.cpp
Find file
BlameHistoryPermalink
  • Shahbaz Youssefi's avatar
    Vulkan: Support atomic counter array of arrays · c9ba782a
    Shahbaz Youssefi authored Aug 05, 2019
    Previously, it was assumed that a function argument is either AC or
    AC[i], and it was converted to AC or AC+i respectively.  The code is
    changed to support any number of dimensions and subscripts, using
    array size information from AC's type.  If AC is an array of array
    (atomic_uint AC[N][M][R]), the following index calculations are done.
    
    AC          -> AC.arrayIndex
    AC[i]       -> AC.arrayIndex + i*M*R
    AC[i][j]    -> AC.arrayIndex + i*M*R + j*R
    AC[i][j][k] -> AC.arrayIndex + i*M*R + j*R + k
    
    A test is added to exercise these various forms of indexing:
    
        AtomicCounterBufferTest31.AtomicCounterArrayOfArray
    
    Bug: angleproject:3566
    Change-Id: I1e181a7363463d1d0ee4916f35006ed7c58e0f7c
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1739488
    Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
    Reviewed-by: 's avatarTim Van Patten <timvp@google.com>
    c9ba782a
GLSLTest.cpp 174 KB
EditWeb IDE
×

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