glslang-zig/glslang
Chow 44e842cd9c Add constant expression with mod
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();
}
###########
2019-12-23 11:29:52 +08:00
..
GenericCodeGen Non-functional: White space after "//", mostly for copyrights. 2017-01-06 12:34:14 -07:00
Include Fix #2020: PR #1977 broke HLSL member consistency, this finishes it... 2019-12-09 23:48:50 -07:00
MachineIndependent Add constant expression with mod 2019-12-23 11:29:52 +08:00
OSDependent Respect CMAKE_INSTALL_LIBDIR in installed CMake files 2019-11-18 11:11:55 -08:00
Public Remove unnecessary semi-colons and add warning about them 2019-10-11 11:25:04 -04:00
CMakeLists.txt Respect CMAKE_INSTALL_LIBDIR in installed CMake files 2019-11-18 11:11:55 -08:00
updateGrammar Separate GLSLANG_WEB (min-size build) and Emscripten options 2019-09-17 23:18:03 -07:00