pub struct Data3DTextureInner {
pub width: u32,
pub height: u32,
pub depth: u32,
pub data: Option<Vec<u8>>,
pub format: TextureFormat,
pub mag_filter: TextureFilter,
pub min_filter: MinFilter,
pub wrap_s: Wrapping,
pub wrap_t: Wrapping,
pub wrap_r: Wrapping,
pub is_storage: bool,
pub version: u32,
/* private fields */
}Expand description
The state behind a Data3DTexture handle.
Fields§
§width: u32image.width.
height: u32image.height.
depth: u32image.depth.
data: Option<Vec<u8>>image.data, tightly packed texel rows, slice after slice — the
Uint8Array of webgpu_volume_perlin for an r8unorm texture. None
for a storage texture, which the GPU fills.
format: TextureFormattexture.format + texture.type, spelled as the GPU format
WebGPUTextureUtils.getFormat() would pick.
mag_filter: TextureFiltertexture.magFilter.
min_filter: MinFiltertexture.minFilter.
wrap_s: Wrappingtexture.wrapS.
wrap_t: Wrappingtexture.wrapT.
wrap_r: Wrappingtexture.wrapR — the third axis, unique to a volume texture.
is_storage: booltexture.isStorageTexture — created with STORAGE_BINDING and bound
as texture_storage_3d by storageTexture() / textureStore().
version: u32texture.version, bumped by needsUpdate = true.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Data3DTextureInner
impl !UnwindSafe for Data3DTextureInner
impl Freeze for Data3DTextureInner
impl Send for Data3DTextureInner
impl Sync for Data3DTextureInner
impl Unpin for Data3DTextureInner
impl UnsafeUnpin for Data3DTextureInner
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