gpu/shaders: avoid first-class arrays

Safari's WebGL1 implementation (rightly) complains that first-class
array types are not supported as function result types. Define and
use a struct type instead.

While we're here, use const variables instead of functions.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-04-28 14:33:27 +02:00
parent 22f964548b
commit 1062d4e79d
4 changed files with 87 additions and 95 deletions
+62 -68
View File
File diff suppressed because one or more lines are too long