Improve error message when a shader storage buffer format can't be parsed.

This commit is contained in:
Sasha Szpakowski
2024-12-23 16:46:42 -04:00
parent 3aac7da370
commit 3a6a36e21c
+1 -1
View File
@@ -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;
}