Structs§
- GPUTexture
- A texture uploaded to the GPU, ready to bind (e.g. via
BindingInstanceEntry::Texture). Opaque — bind it into a bind group viaBindGroupBuilder::texture_2d, there’s no way to reach the underlyingwgpu::Texture/TextureViewfrom outside this crate. - Texture
- Source data for
GPUTexture, loaded from a file or supplied as raw bytes. Fields are private — the only way to construct one isTextureBuilder:TextureBuilder::from_file(...).build(). - Texture
Builder - Builds a
Texture— load pixel data from a file, supply raw bytes directly, or allocate an empty texture with no initial data. Start fromfrom_file/from_data/empty, chain the setters below, then finish withbuild/build_asset. - Texture
Plugin - Registers the
GPUTextureasset pipeline (Assets<Texture>→ProcessedAssets<GPUTexture>), plus theMipmapGeneratorit depends on forgenerate_mips. Included byWGPUPlugin; add directly only if you’re assembling thewgpumodule’s plugins by hand.