pub struct TextureMemory { /* private fields */ }Expand description
Texture memory object providing GPU-style texture sampling
Supports 1D, 2D, and 3D textures with configurable addressing
and filtering modes. Data is stored as f32 values internally.
Implementations§
Source§impl TextureMemory
impl TextureMemory
Sourcepub fn new(data: Vec<f32>, descriptor: TextureDescriptor) -> Result<Self>
pub fn new(data: Vec<f32>, descriptor: TextureDescriptor) -> Result<Self>
Create a new texture from data and descriptor
Sourcepub fn zeroed(descriptor: TextureDescriptor) -> Self
pub fn zeroed(descriptor: TextureDescriptor) -> Self
Create a zeroed texture
Sourcepub fn descriptor(&self) -> &TextureDescriptor
pub fn descriptor(&self) -> &TextureDescriptor
Get texture descriptor
Auto Trait Implementations§
impl Freeze for TextureMemory
impl RefUnwindSafe for TextureMemory
impl Send for TextureMemory
impl Sync for TextureMemory
impl Unpin for TextureMemory
impl UnsafeUnpin for TextureMemory
impl UnwindSafe for TextureMemory
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