diff --git a/examples-testing/changes.patch b/examples-testing/changes.patch index 4a543b611..40d18a272 100644 --- a/examples-testing/changes.patch +++ b/examples-testing/changes.patch @@ -13679,7 +13679,7 @@ index ca0ae9e7..2125232e 100644 const windowHalfY = window.innerHeight / 2; diff --git a/examples-testing/examples/webgpu_materials_texture_partialupdate.ts b/examples-testing/examples/webgpu_materials_texture_partialupdate.ts -index 3fb91ed9..67f2f7bf 100644 +index b25b4234..8f3d457b 100644 --- a/examples-testing/examples/webgpu_materials_texture_partialupdate.ts +++ b/examples-testing/examples/webgpu_materials_texture_partialupdate.ts @@ -1,7 +1,12 @@ @@ -13696,7 +13696,12 @@ index 3fb91ed9..67f2f7bf 100644 let last = 0; const position = new THREE.Vector2(); -@@ -79,7 +84,7 @@ async function animate() { +@@ -75,11 +80,11 @@ async function animate() { + + // perform copy from src to dest texture to a random position + +- renderer.copyTextureToTexture(dataTexture, diffuseMap, new THREE.Vector2(), position); ++ renderer.copyTextureToTexture(dataTexture, diffuseMap, null, position); } } diff --git a/three.js b/three.js index 3bc0cc715..a6fba0fc3 160000 --- a/three.js +++ b/three.js @@ -1 +1 @@ -Subproject commit 3bc0cc71548aad53c1b6c3450c7fe657d2f799f5 +Subproject commit a6fba0fc3d5e3146600e3c5fb615003a5227f87a diff --git a/types/three/examples/jsm/renderers/common/Renderer.d.ts b/types/three/examples/jsm/renderers/common/Renderer.d.ts index 311539615..3b3a3f475 100644 --- a/types/three/examples/jsm/renderers/common/Renderer.d.ts +++ b/types/three/examples/jsm/renderers/common/Renderer.d.ts @@ -1,4 +1,5 @@ import { + Box2, BufferGeometry, Camera, Color, @@ -271,7 +272,13 @@ export default class Renderer { copyFramebufferToTexture(framebufferTexture: FramebufferTexture): void; - copyTextureToTexture(position: Vector2, srcTexture: Texture, dstTexture: Texture, level?: number): void; + copyTextureToTexture( + srcTexture: Texture, + dstTexture: Texture, + srcRegion?: Box2 | null, + dstPosition?: Vector2 | null, + level?: number, + ): void; readRenderTargetPixelsAsync( renderTarget: RenderTarget,