Syncaidius / MoltenEngine

A spare-time C# .NET 8 game engine project. Cross-platform, multi-threaded.
MIT License
301 stars 20 forks source link

Vulkan - Push Constant Support #213

Open Syncaidius opened 1 year ago

Syncaidius commented 1 year ago

Add support for push constants.

These are a high-speed way of updating constant data without going through a uniform buffer update.

SpirVReflector Will also need updating to detect these for reflection purposes.

This could be implemented via a ConstantPushBufferVK, which skips any kind of buffer initialization, beyond allocating CPU-side memory to store the data that needs to be pushed.