@babylonjs/core 5.31.2 → 5.32.0
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/Engines/thinEngine.js +2 -2
- package/Engines/thinEngine.js.map +1 -1
- package/Engines/webgpuEngine.js +3 -0
- package/Engines/webgpuEngine.js.map +1 -1
- package/Materials/Textures/MultiviewRenderTarget.d.ts +1 -0
- package/Materials/Textures/MultiviewRenderTarget.js +3 -0
- package/Materials/Textures/MultiviewRenderTarget.js.map +1 -1
- package/Materials/imageProcessingConfiguration.d.ts +16 -4
- package/Materials/imageProcessingConfiguration.js +36 -8
- package/Materials/imageProcessingConfiguration.js.map +1 -1
- package/Maths/math.path.d.ts +2 -2
- package/Maths/math.path.js +4 -4
- package/Maths/math.path.js.map +1 -1
- package/Meshes/mesh.d.ts +4 -4
- package/Meshes/mesh.js +5 -5
- package/Meshes/mesh.js.map +1 -1
- package/Misc/basis.js +3 -2
- package/Misc/basis.js.map +1 -1
- package/Misc/copyTextureToTexture.d.ts +41 -0
- package/Misc/copyTextureToTexture.js +67 -0
- package/Misc/copyTextureToTexture.js.map +1 -0
- package/Misc/index.d.ts +1 -0
- package/Misc/index.js +1 -0
- package/Misc/index.js.map +1 -1
- package/Misc/meshExploder.js +3 -1
- package/Misc/meshExploder.js.map +1 -1
- package/PostProcesses/imageProcessingPostProcess.d.ts +18 -4
- package/PostProcesses/imageProcessingPostProcess.js +30 -8
- package/PostProcesses/imageProcessingPostProcess.js.map +1 -1
- package/Shaders/ShadersInclude/bumpFragmentFunctions.js +1 -1
- package/Shaders/ShadersInclude/bumpFragmentFunctions.js.map +1 -1
- package/Shaders/copyTextureToTexture.fragment.d.ts +6 -0
- package/Shaders/copyTextureToTexture.fragment.js +11 -0
- package/Shaders/copyTextureToTexture.fragment.js.map +1 -0
- package/package.json +1 -1
package/Engines/webgpuEngine.js
CHANGED
|
@@ -1787,6 +1787,9 @@ export class WebGPUEngine extends Engine {
|
|
|
1787
1787
|
if (!((_a = texture._hardwareTexture) === null || _a === void 0 ? void 0 : _a.underlyingResource)) {
|
|
1788
1788
|
gpuTextureWrapper = this._textureHelper.createGPUTextureForInternalTexture(texture);
|
|
1789
1789
|
}
|
|
1790
|
+
if (image instanceof HTMLImageElement) {
|
|
1791
|
+
throw "WebGPU engine: HTMLImageElement not supported in _uploadImageToTexture!";
|
|
1792
|
+
}
|
|
1790
1793
|
const bitmap = image; // in WebGPU we will always get an ImageBitmap, not an HTMLImageElement
|
|
1791
1794
|
const width = Math.ceil(texture.width / (1 << lod));
|
|
1792
1795
|
const height = Math.ceil(texture.height / (1 << lod));
|