Browse Source

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

Sasha Szpakowski 7 months ago
parent
commit
3a6a36e21c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/Shader.cpp

+ 1 - 1
src/modules/graphics/Shader.cpp

@@ -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;
 		}