@galacean/engine-shader-compiler 2.0.0-alpha.33 → 2.0.0-alpha.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +3 -3
- package/dist/browser.js.map +1 -1
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +1 -1
- package/dist/browser.verbose.js +4 -4
- package/dist/browser.verbose.js.map +1 -1
- package/dist/browser.verbose.min.js +1 -1
- package/dist/browser.verbose.min.js.map +1 -1
- package/dist/main.js +3 -3
- package/dist/main.js.map +1 -1
- package/dist/main.verbose.js +4 -4
- package/dist/main.verbose.js.map +1 -1
- package/dist/module.js +4 -4
- package/dist/module.js.map +1 -1
- package/dist/module.verbose.js +5 -5
- package/dist/module.verbose.js.map +1 -1
- package/package.json +5 -5
package/dist/module.verbose.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Color } from '@galacean/engine-math';
|
|
2
|
-
import { ClearableObjectPool, ReturnableObjectPool, RenderStateElementKey, RenderQueueType, CompareFunction, StencilOperation, BlendOperation, BlendFactor, CullMode, ColorWriteMask, ShaderLanguage } from '@galacean/engine-core';
|
|
2
|
+
import { ClearableObjectPool, Logger, ReturnableObjectPool, RenderStateElementKey, RenderQueueType, CompareFunction, StencilOperation, BlendOperation, BlendFactor, CullMode, ColorWriteMask, ShaderLanguage } from '@galacean/engine-core';
|
|
3
3
|
|
|
4
4
|
function _instanceof(left, right) {
|
|
5
5
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
@@ -2765,7 +2765,7 @@ var SymbolTable = /*#__PURE__*/ function() {
|
|
|
2765
2765
|
for(var i = 0, n = entry.length; i < n; i++){
|
|
2766
2766
|
if (entry[i].isInMacroBranch) continue;
|
|
2767
2767
|
if (entry[i].equal(symbol)) {
|
|
2768
|
-
|
|
2768
|
+
Logger.warn("Replace symbol:", symbol.ident);
|
|
2769
2769
|
entry[i] = symbol;
|
|
2770
2770
|
return;
|
|
2771
2771
|
}
|
|
@@ -3000,7 +3000,7 @@ var SemanticAnalyzer = /*#__PURE__*/ function() {
|
|
|
3000
3000
|
this.errors.push(new GSError(GSErrorName.CompilationError, message, loc, ShaderCompiler._processingPassText));
|
|
3001
3001
|
};
|
|
3002
3002
|
_proto.reportWarning = function reportWarning(loc, message) {
|
|
3003
|
-
|
|
3003
|
+
Logger.warn(new GSError(GSErrorName.CompilationWarn, message, loc, ShaderCompiler._processingPassText).toString());
|
|
3004
3004
|
};
|
|
3005
3005
|
_create_class(SemanticAnalyzer, [
|
|
3006
3006
|
{
|
|
@@ -7095,7 +7095,7 @@ ShaderInstructionEncoder._FUNC_MACRO_RE = /^(\w+)\(([^)]*)\)\s*(.*)/;
|
|
|
7095
7095
|
if (LALR1._isKnownShiftPreferred(terminal, exist, action)) {
|
|
7096
7096
|
if (exist.action === EAction.Shift && action.action === EAction.Reduce) return;
|
|
7097
7097
|
} else {
|
|
7098
|
-
|
|
7098
|
+
Logger.warn("conflict detect: <Terminal " + GrammarUtils.toString(terminal) + "> \n", GrammarUtils.printAction(exist), "\n", GrammarUtils.printAction(action));
|
|
7099
7099
|
}
|
|
7100
7100
|
}
|
|
7101
7101
|
table.set(terminal, action);
|
|
@@ -9582,7 +9582,7 @@ ShaderCompiler._shaderPositionPool = ShaderCompilerUtils.createObjectPool(Shader
|
|
|
9582
9582
|
ShaderCompiler._shaderRangePool = ShaderCompilerUtils.createObjectPool(ShaderRange);
|
|
9583
9583
|
|
|
9584
9584
|
//@ts-ignore
|
|
9585
|
-
var version = "2.0.0-alpha.
|
|
9585
|
+
var version = "2.0.0-alpha.35";
|
|
9586
9586
|
var mode = "Release";
|
|
9587
9587
|
mode = "Verbose";
|
|
9588
9588
|
console.log("Galacean Engine Shader Compiler Version: " + version + " | Mode: " + mode);
|