pub struct WgpuTexture {
pub texture: Texture,
pub texture_view: TextureView,
}Expand description
WGPU texture resource
This corresponds to ImGui_ImplWGPU_Texture in the C++ implementation
Fields§
§texture: TextureWGPU texture object
texture_view: TextureViewTexture view for binding
Implementations§
Source§impl WgpuTexture
impl WgpuTexture
Sourcepub fn new(texture: Texture, texture_view: TextureView) -> Self
pub fn new(texture: Texture, texture_view: TextureView) -> Self
Create a new WGPU texture
Sourcepub fn view(&self) -> &TextureView
pub fn view(&self) -> &TextureView
Get the texture view for binding
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WgpuTexture
impl !RefUnwindSafe for WgpuTexture
impl Send for WgpuTexture
impl Sync for WgpuTexture
impl Unpin for WgpuTexture
impl UnsafeUnpin for WgpuTexture
impl !UnwindSafe for WgpuTexture
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more