-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Description
Description
I see in the const wgslTypeLib$1 = { that the texture_storage_2d_array has already been created. The 2d-array for the viewDimension is also already created in the const GPUTextureViewDimension = {.
However, StorageTexture does not yet support this. Currently, compute shaders can only store texture_storage_2d textures and the adapter's limit is 4 for compute shaders.
Therefore, it would be desirable to also be able to use texture_storage_2d_array. Unfortunately, I don't have much time at the moment, otherwise I would implement it myself.
Solution
see description
Alternatives
Since copyTextureToTexture works excellently, even for very large amounts of data, this point is of low priority. The biggest advantage is that you can overcome the 8k limit and use many textures in one, so you don't reach the adapter's limit