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
  • jchen10's avatar
    Add SH_INIT_SHARED_VARIABLES flag · cd47a379
    jchen10 authored Nov 11, 2018
    This option is used to initialize shared variables to zero at the
    beginning of shader execution to avoid compute shaders being able to
    read undefined values that could be coming from another webpage or
    application.
    It's implemented by declaring variables with initial value for HLSL.
    For GLSL, it's not allowed to use declaraction initializer for shared
    variables, so we need to explicitly assign them to zero at the
    beginning of main(). This implementation is only for HLSL.
    
    Bug: chromium:898030
    
    Change-Id: Ic5906500bf4a35cd9a071923f82f32c5e2991be3
    Reviewed-on: https://chromium-review.googlesource.com/c/1330310
    Commit-Queue: Jie A Chen <jie.a.chen@intel.com>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    cd47a379
ComputeShaderTest.cpp 80.5 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.