Re-exports§
pub use crate::render_resource::DefaultImageSampler;
Structs§
- A cached GPU
Texturewith correspondingTextureView. - A wrapper for a
CachedTexturethat is used as aRenderPassColorAttachment. - A wrapper for a
TextureViewthat is used as a depth-onlyRenderPassDepthStencilAttachment. - A
RenderAppresource that contains the default “fallback image”, which can be used in situations where an image was not explicitly defined. The most common use case isAsBindGroupimplementations (such as materials) that support optional textures. - A
RenderAppresource that contains a “cubemap fallback image”, which can be used in situations where an image was not explicitly defined. The most common use case isAsBindGroupimplementations (such as materials) that support optional textures. - A Cache of fallback textures that uses the sample count and
TextureFormatas a key - A
RenderAppresource that contains a zero-filled “fallback image”, which can be used in place ofFallbackImage, when a fully transparent or black fallback is required instead of fully opaque white. - The GPU-representation of an
Image. Consists of theTexture, itsTextureViewand the correspondingSampler, and the texture’s size. - Adds the
Imageas an asset and makes sure that they are extracted and prepared for the GPU. - A wrapper for a
TextureViewthat is used as aRenderPassColorAttachmentfor a view target’s final output texture. - This resource caches textures that are created repeatedly in the rendering process and are only required for one frame.
Constants§
- A handle to a 1 x 1 transparent white image.
Functions§
- Updates the
TextureCacheto only retains recently used textures.