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
  • compiler
  • translator
  • ShaderStorageBlockFunctionHLSL.h
Find file
BlameHistoryPermalink
  • Qin Jiajia's avatar
    ES31: Add atomic memory functions for SSBO · 4622905b
    Qin Jiajia authored Dec 10, 2018
    Due to SSBO is translated to RWByteAddressBuffer in HLSL, the corresponding
    atomic memory functions atomic* will be translated to
    RWByteAddressBuffer.Interlocked*. The translation is like below:
    
    atomicAdd(instanceName.data[0], 5u);
    // becomes
    uint _ssbo_atomicAdd_uint(RWByteAddressBuffer buffer, uint loc, uint value)
    {
        uint original_value;
        buffer.InterlockedAdd(loc, value, original_value);
        return original_value;
    }
    
    _ssbo_atomicAdd_uint(_instanceName, 0 + 16 * 0, 5);
    
    Bug: angleproject:1951
    
    Change-Id: If2af8bedb67a4135b443d2512d43c6058a78888d
    Reviewed-on: https://chromium-review.googlesource.com/c/1370676Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
    Commit-Queue: Jiajia Qin <jiajia.qin@intel.com>
    4622905b
ShaderStorageBlockFunctionHLSL.h 2.99 KB
EditWeb IDE
×

Replace ShaderStorageBlockFunctionHLSL.h

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.