ShaderLang
ShaderLang copied to clipboard
[Feature] Make matrices first-class types
Currently, only builtin types (bool, f32, i32, u32) and f32/i32 vectors of size from 2 to 4 are handled as constants values, which allows constant propagation, to set them from the app, to use them as const, and more.
Matrices NxM (where N and M range from 2 to 4) of any builtin type should be handled as constants values as well, and constant propagation should be handled for them as well.