* @internal
(shaderPass: ShaderPass)
| 513 | * @internal |
| 514 | */ |
| 515 | _getShaderProgramPool(shaderPass: ShaderPass): ShaderProgramPool { |
| 516 | const index = shaderPass._shaderPassId; |
| 517 | const shaderProgramPools = this._shaderProgramPools; |
| 518 | let pool = shaderProgramPools[index]; |
| 519 | if (!pool) { |
| 520 | const length = index + 1; |
| 521 | if (length > shaderProgramPools.length) { |
| 522 | shaderProgramPools.length = length; |
| 523 | } |
| 524 | shaderProgramPools[index] = pool = new ShaderProgramPool(this); |
| 525 | shaderPass._shaderProgramPools.push(pool); |
| 526 | } |
| 527 | return pool; |
| 528 | } |
| 529 | |
| 530 | /** |
| 531 | * @internal |