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
  • ComputeShaderTest.cpp
Find file
BlameHistoryPermalink
  • Jiawei Shao's avatar
    ES31: Support compute shader shared variables in HLSL · a75aa3b2
    Jiawei Shao authored Jun 21, 2018
    This patch implements 'shared' variables in compute shader on D3D11
    back-ends. GLSL shared variables are translated into 'groupshared'
    ones in HLSL.
    
    Note that although HLSL allows initializing the variables with
    'groupshared' qualifier, currently we do not initialize them because:
    1. It is very slow to for d3d11 drivers to compile the compute shader if
       we add the code to initialize a shared variable with large array size.
    2. It seems unnecessary to do so and in GLSL it is not allowed to
       initialize a shared variable in the declaration. (ESSL 3.1, Chapter
       4.3.8)
    
    BUG=angleproject:2682
    TEST=angle_end2end_tests
    
    Change-Id: Ica8247e1b98059968612a36e369718ef113a598c
    Reviewed-on: https://chromium-review.googlesource.com/1109587Reviewed-by: 's avatarJiajia Qin <jiajia.qin@intel.com>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
    Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
    a75aa3b2
ComputeShaderTest.cpp 50.3 KB
EditWeb IDE
×

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