]> git.tdb.fi Git - libs/gl.git/commitdiff
Store name in attributes collected from SPIR-V module
authorMikko Rasa <tdb@tdb.fi>
Fri, 2 Apr 2021 09:54:29 +0000 (12:54 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 2 Apr 2021 11:02:10 +0000 (14:02 +0300)
source/core/program.cpp

index 6fdf747d99d477078ab2421cd325989a455aca82..4b53b8fe2f28e7e812e605654d6d7d64ec695aeb 100644 (file)
@@ -534,6 +534,7 @@ void Program::collect_attributes()
                                if((*j)->storage==SpirVModule::INPUT)
                                {
                                        AttributeInfo &info = attributes[(*j)->name];
                                if((*j)->storage==SpirVModule::INPUT)
                                {
                                        AttributeInfo &info = attributes[(*j)->name];
+                                       info.name = (*j)->name;
                                        info.location = (*j)->location;
                                        info.array_size = (*j)->array_size;
                                        info.type = (*j)->type;
                                        info.location = (*j)->location;
                                        info.array_size = (*j)->array_size;
                                        info.type = (*j)->type;