Extension of the WebGPU copyTextureToTexture function for array textures #29364
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
So far you can only use the copyTextureToTexture function to copy from one simple texture to another simple texture. But it is also desirable to be able to copy from a simple texture to an array texture and vice versa. That's why I expanded the function a little bit to make this possible. I tested that straight away too. In my app I had no impact on the existing code, but I can now copy textures into array textures. The 1 in line 1450 means that only one layer should be copied.