pub struct Texture {
pub texture: Option<Texture>,
pub bind_group: BindGroup,
pub options: Option<TextureOptions>,
}
Fields§
§texture: Option<Texture>
The texture may be None if the TextureId
is just a handle to a user-provided bind-group.
bind_group: BindGroup
Bindgroup for the texture + sampler.
options: Option<TextureOptions>
Options describing the sampler used in the bind group. This may be None if the TextureId
is just a handle to a user-provided bind-group.
Auto Trait Implementations§
impl Freeze for Texture
impl !RefUnwindSafe for Texture
impl Send for Texture
impl Sync for Texture
impl Unpin for Texture
impl !UnwindSafe for Texture
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