Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
G
glslang
  • 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
  • glslang
  • Repository

Switch branch/tag
  • glslang
  • gtests
  • AST.FromFile.cpp
Find file
BlameHistoryPermalink
  • Neil Henning's avatar
    Add conversion folding when the source is a constant. · 81a63f1d
    Neil Henning authored Nov 26, 2018
    This change adds unary conversion folding when the source is a constant.
    This fixes an ISV issue whereby:
    
    ```
    const float16_t f = float16_t(42.0);
    ```
    
    Wouldn't compile because the conversion operator would always produce an
    EvqTemporary when it could have produced an EvqConst.
    
    I've also added a test case that proves out that all basic-type to
    basic-type conversions work.
    81a63f1d
AST.FromFile.cpp 7.02 KB
EditWeb IDE
×

Replace AST.FromFile.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.