How to make use of texture arrays aka "Onion textures"? #6656
-
I'm new in graphics programming I'm confused about the terminology of a texture array (aka "onion texture") vs an array of textures. I'm making a simple Minecraft clone an I've read that for making greedy meshing and texture tiling easier I should use a texture array ( Does |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Yes, take a look at https://docs.rs/wgpu/latest/wgpu/type.TextureDescriptor.html#structfield.dimension and set the dimension to 2D, but add a depth greater than 1. This can then be used with |
Beta Was this translation helpful? Give feedback.
Yes, take a look at https://docs.rs/wgpu/latest/wgpu/type.TextureDescriptor.html#structfield.dimension and set the dimension to 2D, but add a depth greater than 1. This can then be used with
texture_2d_array<f32>
in the shader