This is a public facing API, and as such should have a header guard, so that modular shaders can include the file wherever necessary without stepping on each other's toes.
As a practical example, adding AudioLink support to LTCGI usually breaks shaders when both are used in combination on one material, since LTCGI.cginc also includes AudioLink.cginc.
This is a public facing API, and as such should have a header guard, so that modular shaders can include the file wherever necessary without stepping on each other's toes.
As a practical example, adding AudioLink support to LTCGI usually breaks shaders when both are used in combination on one material, since
LTCGI.cginc
also includesAudioLink.cginc
.