I wasn't able to find in the documentation any discussion of the global namespace scope resolution operator ::. I'm running into a slightly confusing case with it. For the shader below, it seems to be okay with the declaration of foo but not bar using the :: operator:
I wasn't able to find in the documentation any discussion of the global namespace scope resolution operator
::
. I'm running into a slightly confusing case with it. For the shader below, it seems to be okay with the declaration offoo
but notbar
using the::
operator:However, if I change the declaration of
bar
to the following, Slang compiles the shader without issue:CMD
Shader