pub struct MetalBorrowedTextureDescriptor {
pub logical_size: LogicalSize,
pub physical_width: u32,
pub physical_height: u32,
pub textures: Vec<MetalBorrowedTexture>,
pub command_queue: *mut c_void,
}Expand description
A ring of your Metal textures, for
MapHandle::attach_metal_borrowed_texture().
logical_size sets the map’s size. physical_width and physical_height
give the textures’ size in pixels, which is usually logical_size times the
map’s scale factor. The textures must all have that size, one device, one
pixel format, one sample, and MTLTextureUsageRenderTarget. The ring holds up
to TEXTURE_RING_MAX_DEPTH distinct textures.
The session uses the textures until a replacement or release of the target completes, a detach or release of the session completes, or an abandon of it returns.
See mln_metal_borrowed_texture_descriptor in the
C API reference.
Fields§
§logical_size: LogicalSize§physical_width: u32§physical_height: u32§textures: Vec<MetalBorrowedTexture>§command_queue: *mut c_voidYour MTLCommandQueue on the textures’ device, or null for a queue of the
session’s own. With your queue, frames can use
GpuSyncKind::QueueOrder.
Implementations§
Source§impl MetalBorrowedTextureDescriptor
impl MetalBorrowedTextureDescriptor
pub fn new( logical_size: LogicalSize, physical_width: u32, physical_height: u32, textures: Vec<MetalBorrowedTexture>, ) -> Self
Trait Implementations§
Source§impl Clone for MetalBorrowedTextureDescriptor
impl Clone for MetalBorrowedTextureDescriptor
Source§fn clone(&self) -> MetalBorrowedTextureDescriptor
fn clone(&self) -> MetalBorrowedTextureDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl StructuralPartialEq for MetalBorrowedTextureDescriptor
Auto Trait Implementations§
impl !Send for MetalBorrowedTextureDescriptor
impl !Sync for MetalBorrowedTextureDescriptor
impl Freeze for MetalBorrowedTextureDescriptor
impl RefUnwindSafe for MetalBorrowedTextureDescriptor
impl Unpin for MetalBorrowedTextureDescriptor
impl UnsafeUnpin for MetalBorrowedTextureDescriptor
impl UnwindSafe for MetalBorrowedTextureDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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> ⓘ
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