Code: Select all
GPU = driver->getGPUProgrammingServices();
io::path vshader = "data/vshader.txt";
io::path pshader = "data/pshader.txt";
s32 newMat = GPU->addHighLevelShaderMaterialFromFiles
(
vshader, "vmain", video::EVST_VS_2_0,
pshader, "pmain", video::EPST_PS_2_0
);
Ambiguous call of a overloaded function. Since the only parameter differences are IReadFile / io::path I don't see why it doesn't compile anymore. vshader obiously is a path type.
EDIT:
Works like that:
Code: Select all
s32 newMat = GPU->addHighLevelShaderMaterialFromFiles
(
vshader, "vmain", video::EVST_VS_2_0,
pshader, "pmain", video::EPST_PS_2_0, 0
);