pub struct StorageTextureBinding {
pub texture: Texture,
pub view: TextureView,
pub format: TextureFormat,
pub width: u32,
pub height: u32,
}Expand description
A 2-D GPU texture created with STORAGE_BINDING | COPY_SRC usage.
Created by new_storage_texture and consumed by
StorageTextureKernel::dispatch_to_texture. The texture lives entirely
on the GPU; use read_texture_to_vec_f32 to copy data back to the host.
Fields§
§texture: TextureThe underlying wgpu texture.
view: TextureViewDefault view over the entire texture (all mip-levels, all layers).
format: TextureFormatPixel format of this texture.
width: u32Width in pixels.
height: u32Height in pixels.
Auto Trait Implementations§
impl !RefUnwindSafe for StorageTextureBinding
impl !UnwindSafe for StorageTextureBinding
impl Freeze for StorageTextureBinding
impl Send for StorageTextureBinding
impl Sync for StorageTextureBinding
impl Unpin for StorageTextureBinding
impl UnsafeUnpin for StorageTextureBinding
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