pub struct VulkanBorrowedTextureDescriptor {
pub logical_size: LogicalSize,
pub physical_width: u32,
pub physical_height: u32,
pub context: VulkanContextDescriptor,
pub textures: Vec<VulkanBorrowedTexture>,
pub format: u32,
pub final_layout: u32,
pub owner: VulkanImageOwner,
}Expand description
A ring of your Vulkan images, for
MapHandle::attach_vulkan_borrowed_texture().
logical_size sets the map’s size. physical_width and physical_height
give the images’ size in pixels, which is usually logical_size times the
map’s scale factor. Each image must have that size, format, and
VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT, and belong to the context’s device. The
ring holds up to TEXTURE_RING_MAX_DEPTH distinct images.
The session uses the images 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_vulkan_borrowed_texture_descriptor in the
C API reference.
Fields§
§logical_size: LogicalSize§physical_width: u32§physical_height: u32§context: VulkanContextDescriptor§textures: Vec<VulkanBorrowedTexture>§format: u32The images’ VkFormat.
final_layout: u32The VkImageLayout that each frame leaves its image in.
owner: VulkanImageOwnerImplementations§
Source§impl VulkanBorrowedTextureDescriptor
impl VulkanBorrowedTextureDescriptor
pub fn new( logical_size: LogicalSize, physical_width: u32, physical_height: u32, context: VulkanContextDescriptor, textures: Vec<VulkanBorrowedTexture>, format: u32, final_layout: u32, ) -> Self
Trait Implementations§
Source§impl Clone for VulkanBorrowedTextureDescriptor
impl Clone for VulkanBorrowedTextureDescriptor
Source§fn clone(&self) -> VulkanBorrowedTextureDescriptor
fn clone(&self) -> VulkanBorrowedTextureDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl StructuralPartialEq for VulkanBorrowedTextureDescriptor
Auto Trait Implementations§
impl !Send for VulkanBorrowedTextureDescriptor
impl !Sync for VulkanBorrowedTextureDescriptor
impl Freeze for VulkanBorrowedTextureDescriptor
impl RefUnwindSafe for VulkanBorrowedTextureDescriptor
impl Unpin for VulkanBorrowedTextureDescriptor
impl UnsafeUnpin for VulkanBorrowedTextureDescriptor
impl UnwindSafe for VulkanBorrowedTextureDescriptor
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> 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> ⓘ
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