Registering library that already exists in shader manager

Im trying to apply Metal Surface Shader to my ModelEntity's CustomMaterial. While everything seems to work as expected and Im getting the desired result, Im seeing following error/warning continuously being spewed in the console:

[AssetTypes] Registering library (memorylib_10793780016) that already exists in shader manager. Library will be overwritten.

Any ideas what Im doing wrong?

Answered by Graphics and Games Engineer in 708673022

Hi there! I don't think you're doing anything wrong, this happens with the framework's default.metallib as well. That being said, how frequently do you see this? Every frame, just when you create a new CustomMaterial, or something else?

Accepted Answer

Hi there! I don't think you're doing anything wrong, this happens with the framework's default.metallib as well. That being said, how frequently do you see this? Every frame, just when you create a new CustomMaterial, or something else?

Registering library that already exists in shader manager
 
 
Q