Struct imgui_wgpu::Texture [−][src]
pub struct Texture { /* fields omitted */ }
Expand description
A container for a bindable texture.
Implementations
pub fn from_raw_parts(
texture: Texture,
view: TextureView,
bind_group: BindGroup,
size: Extent3d
) -> Self
pub fn from_raw_parts(
texture: Texture,
view: TextureView,
bind_group: BindGroup,
size: Extent3d
) -> Self
Create a Texture
from its raw parts.
Create a new GPU texture width the specified config
.
Write data
to the texture.
data
: 32-bit RGBA bitmap data.width
: The width of the source bitmap (data
) in pixels.height
: The height of the source bitmap (data
) in pixels.
The wgpu::TextureView
of the underlying texture.