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
  • BuiltInFunctionEmulatorHLSL.cpp
Find file
BlameHistoryPermalink
  • Olli Etuaho's avatar
    Identify functions by unique id in BuiltInFunctionEmulator · 5fec7ab2
    Olli Etuaho authored Apr 04, 2018
    Now that unique ids of all builtins are compile-time constants, we can
    use them to look up functions in BuiltInFunctionEmulator. This is
    simpler than using a custom struct with the name and parameters for
    identifying functions.
    
    This requires that we store a reference to a TFunction in those
    TIntermUnary nodes that were created based on a function.
    
    This decreases shader_translator binary size by about 6 KB on Windows.
    
    BUG=angleproject:2267
    BUG=chromium:823856
    TEST=angle_unittests
    
    Change-Id: Idd5a00c772c6f26dd36fdbbfbe161d22ab27c2fe
    Reviewed-on: https://chromium-review.googlesource.com/995372Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
    5fec7ab2
BuiltInFunctionEmulatorHLSL.cpp 7.01 KB
EditWeb IDE
×

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