simontaylor81 / Syrup

Shader Rapid Prototyping
MIT License
0 stars 0 forks source link

Parallel shader compilation #14

Closed simontaylor81 closed 8 years ago

simontaylor81 commented 8 years ago

Shader compilation is slow and single threaded. Multiple shaders could easily be done on multiple cores. The problem is that the D3D shader compiler is not thread-safe (last time I checked, at least), so this needs to be done by offloading to a worker process.

Depends on #13.

simontaylor81 commented 8 years ago

Done in d93d576cf1c592686dded5e4803c0506ac61ed2a. Apparently D3DCompile is now thread safe, so a worker process was not required.