Module texture

Module texture 

Source

Re-exports§

pub use crate::render_resource::DefaultImageSampler;

Structs§

CachedTexture
A cached GPU Texture with corresponding TextureView.
ColorAttachment
A wrapper for a CachedTexture that is used as a RenderPassColorAttachment.
DepthAttachment
A wrapper for a TextureView that is used as a depth-only RenderPassDepthStencilAttachment.
FallbackImage
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 is AsBindGroup implementations (such as materials) that support optional textures.
FallbackImageCubemap
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 is AsBindGroup implementations (such as materials) that support optional textures.
FallbackImageFormatMsaaCache
A Cache of fallback textures that uses the sample count and TextureFormat as a key
FallbackImageMsaa
FallbackImageZero
A RenderApp resource that contains a zero-filled “fallback image”, which can be used in place of FallbackImage, when a fully transparent or black fallback is required instead of fully opaque white.
GpuImage
The GPU-representation of an Image. Consists of the Texture, its TextureView and the corresponding Sampler, and the texture’s size.
ManualTextureView
A manually managed TextureView for use as a bevy_camera::RenderTarget.
ManualTextureViews
Resource that stores manually managed ManualTextureViews for use as a RenderTarget. This type dereferences to a HashMap<ManualTextureViewHandle, ManualTextureView>. To add a new texture view, pick a new ManualTextureViewHandle and insert it into the map. Then, to render to the view, set a Cameras target to RenderTarget::TextureView(handle).
OutputColorAttachment
A wrapper for a TextureView that is used as a RenderPassColorAttachment for a view target’s final output texture.
TextureCache
This resource caches textures that are created repeatedly in the rendering process and are only required for one frame.
TexturePlugin

Functions§

update_texture_cache_system
Updates the TextureCache to only retains recently used textures.