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
  • OutputHLSL.cpp
Find file
BlameHistoryPermalink
  • Corentin Wallez's avatar
    Use the AST analyses to narrow the usage of [[loop]] and [[unroll]] · 1239ee94
    Corentin Wallez authored Mar 19, 2015
    These attributes are now used exactly in the loops and ifs
    that require them, limiting the number of failed compilations
    due to excessive unrolling and flattening.
    Also output Lod0 functions only when needed.
    
    Adds unit tests for LOOP, FLATTEN and Lod0 generation.
    
    The patch was tested against the WebGL CTS 1.0.4 for which all the
    failures existed prior to this patch and seem to be unrelated to this
    change. It also works correctly on the following sites that had trouble
    with [[loop]] and [[unroll]]:
     * dev.miaumiau.cat/rayTracer "Skull Demo"
     * The turbulenz engine particle demo
     * Lots of ShaderToy samples (including "Volcanic" and "Metropolis")
     * Google Maps Earth mode
     * Lots of Chrome Experiments
     * Lagoa
     * madebyevan.com/webgl-water
     * SketchFab
     * Unit Tests
    
    BUG=angleproject:937
    BUG=395048
    
    Change-Id: I856de9025f10b79781929ec212dbffc2064a940e
    Reviewed-on: https://chromium-review.googlesource.com/264791Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org>
    1239ee94
OutputHLSL.cpp 111 KB
EditWeb IDE
×

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