Structs
A cached GPU Texture
with corresponding TextureView
.
This is useful for textures that are created repeatedly (each frame) in the rendering process
to reduce the amount of GPU memory allocations.
An error that occurs when loading a texture from a file.
The GPU-representation of an Image
.
Consists of the Texture
, its TextureView
and the corresponding Sampler
, and the texture’s Size
.
Loads HDR textures as Texture assets
Adds the Image
as an asset and makes sure that they are extracted and prepared for the GPU.
Loader for images that can be read by the image
crate.
Information about the pixel size in bytes and the number of different components.
This resource caches textures that are created repeatedly in the rendering process and are only required for one frame.
Enums
The type of a raw image buffer.
An error that occurs when loading a texture
Constants
Traits
Extends the wgpu TextureFormat
with information about the pixel.
Used to calculate the volume of an item.
Functions
Updates the TextureCache
to only retains recently used textures.