pub struct TextureContext<'a> { /* private fields */ }
Expand description
Context required to create and update textures.
Implementations§
Source§impl<'a> TextureContext<'a>
impl<'a> TextureContext<'a>
Sourcepub fn from_parts(device: &'a Device, queue: &'a Queue) -> Self
pub fn from_parts(device: &'a Device, queue: &'a Queue) -> Self
Creates a new TextureContext
from its parts.
Trait Implementations§
Source§impl<'a> CreateTexture<TextureContext<'a>> for Texture
impl<'a> CreateTexture<TextureContext<'a>> for Texture
Source§fn create<S: Into<[u32; 2]>>(
_: &mut TextureContext<'a>,
_format: Format,
memory: &[u8],
size: S,
settings: &TextureSettings,
) -> Result<Self, TextureError>
fn create<S: Into<[u32; 2]>>( _: &mut TextureContext<'a>, _format: Format, memory: &[u8], size: S, settings: &TextureSettings, ) -> Result<Self, TextureError>
Create texture from memory.
Source§impl<'a> TextureOp<TextureContext<'a>> for Texture
impl<'a> TextureOp<TextureContext<'a>> for Texture
Source§type Error = TextureError
type Error = TextureError
The error when performing an operation.
Auto Trait Implementations§
impl<'a> Freeze for TextureContext<'a>
impl<'a> !RefUnwindSafe for TextureContext<'a>
impl<'a> Send for TextureContext<'a>
impl<'a> Sync for TextureContext<'a>
impl<'a> Unpin for TextureContext<'a>
impl<'a> !UnwindSafe for TextureContext<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more