Include

To tell Xpanda that you want to include code into your shader, simply write

#pragma include("filename")

where filename is path to the included file (relative to the directory containing the includable files); for subfolders always use "/".

The process of expanding the includes is recursive, that means you can also include files from within the included files. Xpanda also deals with cyclic reference by simply never including the same file into one shader twice. It is also not necessary to delete the included code by hand before running Xpanda again, it's done automatically!

Do you find this page helpful?

Copyright © 2022, Patrik Kraif. Built on April 23, 2022 using GMDoc.