Skip to main content

Module texture_array

Module texture_array 

Source

Structs§

GPUTextureArray
A 2D texture array uploaded to the GPU, ready to bind (e.g. via BindingInstanceEntry::TextureArray). Opaque — bind it via BindGroupBuilder::texture_array.
TextureArray
Source data for GPUTextureArray. Fields are private — the only way to construct one is TextureArrayBuilder: TextureArrayBuilder::from_files(...).build().
TextureArrayBuilder
Builds a TextureArray — load one layer per file, supply raw bytes per layer directly, or allocate an empty array with no initial data. Start from from_files/from_data/empty, chain the setters below, then finish with build/build_asset.
TextureArrayPlugin
Registers the GPUTextureArray asset pipeline (Assets<TextureArray>), plus the MipmapGenerator it depends on for generate_mips. Included by WGPUPlugin; add directly only if you’re assembling the wgpu module’s plugins by hand.