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
  • TranslatorHLSL.cpp
Find file
BlameHistoryPermalink
  • Olli Etuaho's avatar
    Make HLSL shaders use only one main function · 06235df9
    Olli Etuaho authored Jul 20, 2018
    Instead of having separate main() and gl_main() functions in HLSL
    shaders, add initializing outputs and inputs directly to the main
    function that's in the AST.
    
    This works around some HLSL bugs and should not introduce name
    conflicts inside main() since all the user-defined variables are
    prefixed.
    
    BUG=angleproject:2325
    TEST=angle_end2end_tests
    
    Change-Id: I5b000c96aac8f321cefe50b6a893008498eac0d5
    Reviewed-on: https://chromium-review.googlesource.com/1146647Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
    Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
    Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
    06235df9
TranslatorHLSL.cpp 6.95 KB
EditWeb IDE
×

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