]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/program.cpp
Sort shader program input attributes by name
[libs/gl.git] / source / core / program.cpp
index f8c35ec573ed9b1437ecb63879cca00b00b9d7ff..a82ac1d227279be4edd1175428af8e6c0dfe6ffd 100644 (file)
@@ -193,6 +193,8 @@ void Program::collect_attributes(const SpirVModule &mod)
                                        info.type = v->type;
                                }
                }
+
+       sort_member(reflect_data.attributes, &ReflectData::AttributeInfo::name);
 }
 
 void Program::collect_builtins(const SpirVModule &mod)