#[repr(C)]pub struct Texture {
pub width: u32,
pub height: u32,
pub resource: ID3D11ShaderResourceView,
}Expand description
A loaded texture.
Fields§
§width: u32Width of the texture.
height: u32Height of the texture.
resource: ID3D11ShaderResourceViewShader resource view of the texture.
Implementations§
Trait Implementations§
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