Follow

I love (spir-v) specialization constants! So much better than mashing strings or macroing defines. Just write your ubershader and let the driver fold, prune and unfold producing a fastest smallest program without sweating a brow at optimization.

Although I see a familiar problem where there’s a spectrum between fully static and fully dynamic parameters 🤨

Show thread

I.e. a layer of meta-specialization is desirable that produces a uniform struct with some parameters and puts everything else in specialization constants.

Add push constants and embedded constants for high dynamic range of constantness 😅

Show thread
Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.