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
  • preprocessor
  • Macro.h
Find file
BlameHistoryPermalink
  • Olli Etuaho's avatar
    Set __VERSION__ macro when the #version directive is parsed · 6cb4c7f0
    Olli Etuaho authored Aug 13, 2015
    __VERSION__ macro needs to be set to 300 when #version 300 es is on the
    first line of the shader, since section 3.4 of ESSL 3.00.4 spec mentions
    that the value of __VERSION__ should match the shading language being
    parsed. The value from parsing the version directive replaces the default
    value 100.
    
    BUG=angleproject:524
    TEST=dEQP-GLES3.functional.shaders.preprocessor.predefined_macros.*
         (4 tests start passing, 2 still fail)
         dEQP-GLES3.functional.shaders.preprocessor.conditionals.*
         (2 tests start passing)
         dEQP-GLES2.functional.shaders.preprocessor.predefined_macros.*
         (no regression)
    
    Change-Id: I15bfdeb73d1e343d131ded56b1fd52ca5ef32408
    Reviewed-on: https://chromium-review.googlesource.com/293440Reviewed-by: 's avatarZhenyao Mo <zmo@chromium.org>
    Tested-by: 's avatarOlli Etuaho <oetuaho@nvidia.com>
    6cb4c7f0
Macro.h 994 Bytes
EditWeb IDE
×

Replace Macro.h

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.