MCPcopy Create free account
hub / github.com/microsoft/SandDance / formatGLSLCompilerError

Function formatGLSLCompilerError

docs/app/js/sanddance-app.js:64352–64355  ·  view source on GitHub ↗
(errLog, src, shaderType)

Source from the content-addressed store, hash-verified

64350var _getShaderTypeName = require("./get-shader-type-name");
64351var _getShaderTypeNameDefault = parcelHelpers.interopDefault(_getShaderTypeName);
64352function formatGLSLCompilerError(errLog, src, shaderType) {
64353 var _parseGLSLCompilerErr = parseGLSLCompilerError(errLog, src, shaderType), shaderName = _parseGLSLCompilerErr.shaderName, errors = _parseGLSLCompilerErr.errors, warnings = _parseGLSLCompilerErr.warnings;
64354 return "GLSL compilation error in ".concat(shaderName, "\n\n").concat(errors, "\n").concat(warnings);
64355}
64356exports.default = formatGLSLCompilerError;
64357function parseGLSLCompilerError(errLog, src, shaderType, shaderName) {
64358 var errorStrings = errLog.split(/\r?\n/);

Callers

nothing calls this directly

Calls 1

parseGLSLCompilerErrorFunction · 0.70

Tested by

no test coverage detected