Closed phr00t closed 5 years ago
A shader resource loader wouldn't be that important if we could just use "recorded" shaders on Windows platforms and include them with Linux and Mac (which also use Vulkan). I'm not sure this is possible, since compiled shaders (aka "effects") only automatically include themselves in the running platform. This might have been done because there wasn't a unifying API used before -- but now there is: Vulkan. I need to test this out, but having other issues
Shaders might actually be used on different platforms! When including the data/db/XX shader outputs in the Mac, I got different output from Mac -- so it must have tried to use them.
Shaders can be easily added to any operating system. No shader resource loader is needed. An audio resource loader would be nice, though...
To avoid in-game hiccups for shaders to build or audio to load, there should be a system that preloads these things at the start of the application.
It would be a simple list of materials & audios, which would be played and rendered. This would load them all at once at an expected time, so it wouldn't need to be done at unpredictable times later.