HLSL code management- .fxh location

Does anyone have advice for best practice with reusable fxh files?

For modules/packs using a relative path for the #include directive seems fine. But as soon as want to do something portable or ad-hoc that doesn’t really work. Using an absolute path also does not seem friendly for sharing.

Is there a way to point to a fixed location relative to vvvv folder? Maybe I’m missing something obvious, but I’d like to be able to write something like

  • include %VVVVFOLDER%\packs\fxhLib\myFunction.fxh

(the 1. should be a hash symbol, just forum formatting there)

hey everyone,

did you see: https://vvvv.org/documentation/ex9.hlsl.introduction#functions-and-includes

does that help?

Perfect! Thanks Joreg :)

rtfm…