(settings)
| 574 | |
| 575 | |
| 576 | function upgradeDeprecatedCreateKernelSettings(settings) { |
| 577 | if (!settings) { |
| 578 | return {}; |
| 579 | } |
| 580 | const upgradedSettings = Object.assign({}, settings); |
| 581 | |
| 582 | if (settings.hasOwnProperty('floatOutput')) { |
| 583 | utils.warnDeprecated('setting', 'floatOutput', 'precision'); |
| 584 | upgradedSettings.precision = settings.floatOutput ? 'single' : 'unsigned'; |
| 585 | } |
| 586 | if (settings.hasOwnProperty('outputToTexture')) { |
| 587 | utils.warnDeprecated('setting', 'outputToTexture', 'pipeline'); |
| 588 | upgradedSettings.pipeline = Boolean(settings.outputToTexture); |
| 589 | } |
| 590 | if (settings.hasOwnProperty('outputImmutable')) { |
| 591 | utils.warnDeprecated('setting', 'outputImmutable', 'immutable'); |
| 592 | upgradedSettings.immutable = Boolean(settings.outputImmutable); |
| 593 | } |
| 594 | if (settings.hasOwnProperty('floatTextures')) { |
| 595 | utils.warnDeprecated('setting', 'floatTextures', 'optimizeFloatMemory'); |
| 596 | upgradedSettings.optimizeFloatMemory = Boolean(settings.floatTextures); |
| 597 | } |
| 598 | return upgradedSettings; |
| 599 | } |
| 600 | |
| 601 | module.exports = { |
| 602 | GPU, |
no outgoing calls
no test coverage detected
searching dependent graphs…