stuarthayhurst / ammonite-engine

A simple OpenGL based graphics engine for experiments
MIT License
3 stars 1 forks source link

Implement a shader baking system #20

Open stuarthayhurst opened 1 month ago

stuarthayhurst commented 1 month ago

After porting to Vulkan, bake the current graphics settings into the shaders, where possible. Keep a table of loaded shaders, and when graphics settings change, search the table first, then the disk cache and finally compile if neither of these match. The graphics settings will need to be included in the cache string.

The blur post-processing shader could really benefit from this after sample directions and sample count settings are added.