Re-exports§
pub use crate::render_resource::DefaultImageSampler;
Structs§
- Cached
Texture - A cached GPU
Texture
with correspondingTextureView
. - Color
Attachment - A wrapper for a
CachedTexture
that is used as aRenderPassColorAttachment
. - Depth
Attachment - A wrapper for a
TextureView
that is used as a depth-onlyRenderPassDepthStencilAttachment
. - Fallback
Image - A
RenderApp
resource that contains the default “fallback image”, which can be used in situations where an image was not explicitly defined. The most common use case isAsBindGroup
implementations (such as materials) that support optional textures. - Fallback
Image Cubemap - A
RenderApp
resource that contains a “cubemap fallback image”, which can be used in situations where an image was not explicitly defined. The most common use case isAsBindGroup
implementations (such as materials) that support optional textures. - Fallback
Image Format Msaa Cache - A Cache of fallback textures that uses the sample count and
TextureFormat
as a key - Fallback
Image Msaa - Fallback
Image Zero - A
RenderApp
resource 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. - GpuImage
- The GPU-representation of an
Image
. Consists of theTexture
, itsTextureView
and the correspondingSampler
, and the texture’s size. - Image
Plugin - Adds the
Image
as an asset and makes sure that they are extracted and prepared for the GPU. - Output
Color Attachment - A wrapper for a
TextureView
that is used as aRenderPassColorAttachment
for a view target’s final output texture. - Texture
Cache - This resource caches textures that are created repeatedly in the rendering process and are only required for one frame.
Constants§
- TRANSPARENT_
IMAGE_ HANDLE - A handle to a 1 x 1 transparent white image.
Functions§
- update_
texture_ cache_ system - Updates the
TextureCache
to only retains recently used textures.