Struct wgpu::Texture [−][src]
pub struct Texture { /* fields omitted */ }
Expand description
Handle to a texture on the GPU.
Created by calling Device::create_texture
Implementations
Returns the inner hal Texture using a callback. The hal texture will be None
if the
backend type argument does not match with this wgpu Texture
Safety
- The raw handle obtained from the hal Texture must not be manually destroyed
Creates a view of this texture.
Make an ImageCopyTexture
representing the whole texture.