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
  • util
  • shader_utils.cpp
Find file
BlameHistoryPermalink
  • Jamie Madill's avatar
    Defer shader compiles when possible. · bd044ed8
    Jamie Madill authored Jun 05, 2017
    When using the program binary memory cache inside ANGLE, this will
    give a potential fast path. If the user doesn't query the shader
    compile status or info log before calling LinkProgram, then we can
    check the program cache before translating the program, and if it
    finds a hit, we don't even need to call the translator.
    
    To preserve the shader settings at compile time, a reference to the
    current shader translator is kept in a binding pointer on the call
    to compile. This mirrors a similar implementation in Chromium's
    command buffer. Also the compile options and source are cached at
    compile to preserve the correct shader state.
    
    BUG=angleproject:1897
    
    Change-Id: I3c046d7ac8c3b5c8cc169c4802ffe47f95537212
    Reviewed-on: https://chromium-review.googlesource.com/517379Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
    Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
    Commit-Queue: Jamie Madill <jmadill@chromium.org>
    bd044ed8
shader_utils.cpp 5.71 KB
EditWeb IDE
×

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