pub struct ImportedTexture {
pub view: TextureView,
pub size: (u32, u32),
}Expand description
What a NativeImporter produced: a view the engine can sample, and its
extent in texels.
view must be a non-array 2D view of a float-sampleable texture with
TEXTURE_BINDING usage, created on the device the importer was handed —
the same requirements as ExternalFrame::bind_texture.
Fields§
§view: TextureViewThe view bound under the registration’s id.
size: (u32, u32)The view’s extent in texels.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ImportedTexture
impl !UnwindSafe for ImportedTexture
impl Freeze for ImportedTexture
impl Send for ImportedTexture
impl Sync for ImportedTexture
impl Unpin for ImportedTexture
impl UnsafeUnpin for ImportedTexture
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