!flag is set to a variable inside the loop, which is fine, but then it uses that variable outside of the scope it was created in, which causes an error
glslang: OceanFFT.slang(70): error : '_S14' : undeclared identifier glslang: OceanFFT.slang(70): error : '' : compilation terminated
Line 150 and 183 in the generated glsl file
Error happens when compiling to spirv directly from slangc, in both optimization level 0 and 3
OceanFFT_slang.txt
!flag is set to a variable inside the loop, which is fine, but then it uses that variable outside of the scope it was created in, which causes an error
glslang: OceanFFT.slang(70): error : '_S14' : undeclared identifier
glslang: OceanFFT.slang(70): error : '' : compilation terminated
Line 150 and 183 in the generated glsl file Error happens when compiling to spirv directly from slangc, in both optimization level 0 and 3 OceanFFT_slang.txtOceanFFT_slang_glsl.txt