MCPcopy Create free account
hub / github.com/galacean/engine / createRange

Method createRange

packages/shader-lab/src/ShaderLab.ts:34–38  ·  view source on GitHub ↗
(start: ShaderPosition, end: ShaderPosition)

Source from the content-addressed store, hash-verified

32 }
33
34 static createRange(start: ShaderPosition, end: ShaderPosition): ShaderRange {
35 const range = this._shaderRangePool.get();
36 range.set(start, end);
37 return range;
38 }
39
40 _parseShaderSource(sourceCode: string): IShaderSource {
41 ShaderLabUtils.clearAllShaderLabObjectPool();

Callers 7

_scanStringConstMethod · 0.80
setMethod · 0.80
_addContentReplaceMethod · 0.80
_parseDefineMethod · 0.80
scanMacroBodyMethod · 0.80
_scanWordMethod · 0.80

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected