This commit is contained in:
halx99 2021-12-28 17:52:41 +08:00
parent 1e9ad9d240
commit ff332f667a
5 changed files with 5 additions and 5 deletions

View File

@ -99,7 +99,7 @@ public:
* Get active vertex attributes.
* @return Active vertex attributes. key is active attribute name, Value is corresponding attribute info.
*/
virtual hlookup::string_map<AttributeBindInfo> getActiveAttributes() const = 0;
virtual const hlookup::string_map<AttributeBindInfo> getActiveAttributes() const = 0;
/**
* Get vertex shader.

View File

@ -94,7 +94,7 @@ public:
* Get active vertex attributes.
* @return Active vertex attributes. key is active attribute name, Value is corresponding attribute info.
*/
hlookup::string_map<AttributeBindInfo> getActiveAttributes() const override;
const hlookup::string_map<AttributeBindInfo> getActiveAttributes() const override;
/**
* Get maximum vertex location.

View File

@ -118,7 +118,7 @@ int ProgramMTL::getMaxFragmentLocation() const
return _fragmentShader->getMaxLocation();
}
hlookup::string_map<AttributeBindInfo> ProgramMTL::getActiveAttributes() const
const hlookup::string_map<AttributeBindInfo> ProgramMTL::getActiveAttributes() const
{
return _vertexShader->getAttributeInfo();
}

View File

@ -210,7 +210,7 @@ bool ProgramGL::getAttributeLocation(std::string_view attributeName, unsigned in
return true;
}
hlookup::string_map<AttributeBindInfo> ProgramGL::getActiveAttributes() const
const hlookup::string_map<AttributeBindInfo> ProgramGL::getActiveAttributes() const
{
hlookup::string_map<AttributeBindInfo> attributes;

View File

@ -128,7 +128,7 @@ public:
* Get active vertex attributes.
* @return Active vertex attributes. key is active attribute name, Value is corresponding attribute info.
*/
virtual hlookup::string_map<AttributeBindInfo> getActiveAttributes() const override;
virtual const hlookup::string_map<AttributeBindInfo> getActiveAttributes() const override;
/**
* Get uniform buffer size in bytes that can hold all the uniforms.