Open Ace17 opened 2 years ago
Currently glslang creates an output variable of type struct of 0 bytes and a constant 0 of the same type and generates an assignment of the constant to the variable. The error is for failing to put the variable in the interface.
fxc creates a function that just does a ret with no input or output recorded for the interface. That is essentially what I think that glslang should do as well.
The following program is accepted by fxc.exe:
( http://shader-playground.timjones.io/8188336997c14f2d8f2c5ffd8a4ea729 )
Howerver, it is rejected by glslang :