Struct imgui_wgpu::Texture [−][src]
pub struct Texture { /* fields omitted */ }
A container for a bindable texture.
Implementations
impl Texture
[src]
impl Texture
[src]pub fn from_raw_parts(
texture: Texture,
view: TextureView,
bind_group: BindGroup,
size: Extent3d
) -> Self
[src]
pub fn from_raw_parts(
texture: Texture,
view: TextureView,
bind_group: BindGroup,
size: Extent3d
) -> Self
[src]Create a Texture
from its raw parts.
pub fn new(
device: &Device,
renderer: &Renderer,
config: TextureConfig<'_>
) -> Self
[src]
pub fn new(
device: &Device,
renderer: &Renderer,
config: TextureConfig<'_>
) -> Self
[src]Create a new GPU texture width the specified config
.
pub fn write(&self, queue: &Queue, data: &[u8], width: u32, height: u32)
[src]
pub fn write(&self, queue: &Queue, data: &[u8], width: u32, height: u32)
[src]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.
pub fn view(&self) -> &TextureView
[src]
pub fn view(&self) -> &TextureView
[src]The wgpu::TextureView
of the underlying texture.
Auto Trait Implementations
impl !RefUnwindSafe for Texture
impl Send for Texture
impl Sync for Texture
impl Unpin for Texture
impl !UnwindSafe for Texture
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more