This automatic processing only works for the standalone shader compiler tool, as indicated in the link you provided. If you compile using one of the APIs, you will need to specify an inclusion handler that the compiler will use whenever it encounters the include directive: ID3DInclude
source
share