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
  • Test
  • baseResults
  • 460.vert.out
Find file
BlameHistoryPermalink
  • Chow's avatar
    Add constant expression with mod · 44e842cd
    Chow authored Dec 23, 2019
    Purpose:
    glsl spec allows to define array with the length of the result of  constant expression, the arithmetic operation of "mod(float (7.1), float (4.0))" should be generate the array length at the shader compile time,
    
    but glslang didn't support mod operation for the constant expression in previous implementation;
    
    An example is as following:
    
    ###########
    #version 460
    flat out highp int vtx_out_out0;
    void main (void)
    {
         float array[int(mod(float (7.1), float (4.0)))];
         vtx_out_out0 =  array.length();
    }
    ###########
    44e842cd
460.vert.out 1.58 KB
EditWeb IDE
×

Replace 460.vert.out

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.