Anecoz / AneRend

Prototyping Vulkan engine
16 stars 1 forks source link

Use bit flags in scene ubo #18

Closed Anecoz closed 11 months ago

Anecoz commented 1 year ago

Currently the scene ubo uses one uint32 per enabled feature, basically as a bool. The current number of these "bools" could easily fit in a single 32 bit int.

A list of bit flags needs to be maintained both on CPU and GPU.