(key: string, getBinary: () => GPGPUBinary)
| 1026 | } |
| 1027 | |
| 1028 | private getAndSaveBinary(key: string, getBinary: () => GPGPUBinary): |
| 1029 | GPGPUBinary { |
| 1030 | if (!(key in this.binaryCache)) { |
| 1031 | this.binaryCache[key] = getBinary(); |
| 1032 | } |
| 1033 | return this.binaryCache[key]; |
| 1034 | } |
| 1035 | |
| 1036 | getTextureManager(): TextureManager { |
| 1037 | return this.textureManager; |