PDA

View Full Version : how to use idirect3dxinclude ?



trifox
18-08-2003, 10:00 PM
hi,

i am currently have the problem of compiling much shader code, so i wanted to use some kind of include mechanism to speed up compiling time ... first i thought, file include could make it, but it even slows it more down, then i found the idirect3dxinclude interface from the effect functions,
but did not found any documentation about how to create such interface nor how to use it .. :(

Clootie
20-08-2003, 05:30 PM
From doc:

The ID3DXInclude interface is implemented by an application to provide callbacks for #include directives, which are in an effect created by the D3DXCreateEffectxxx functions. So it's implemented by YOU!

Also this interface will not help with your problem - speeding up shader compilation - as it's purpose is to allow #include statements in shaders compiled from system memory data (not from file).