mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Improve error message when a shader storage buffer format can't be parsed.
This commit is contained in:
@@ -1232,7 +1232,7 @@ static bool AddFieldsToFormat(std::vector<Buffer::DataDeclaration> &format, int
|
||||
DataFormat dataformat = getDataFormat(type->getBasicType(), type->getVectorSize(), type->getMatrixRows(), type->getMatrixCols(), type->isMatrix());
|
||||
if (dataformat == DATAFORMAT_MAX_ENUM)
|
||||
{
|
||||
err = "Shader validation error:\n";
|
||||
err = "Shader validation error:\nUnhandled data format for type " + (int)type->getBasicType() + std::string(" with name ") + basename;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user