VulkanBorrowedTextureDescriptor class final

A ring of your Vulkan images, for MapHandle.attachVulkanBorrowedTexture().

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 textureRingMaxDepth 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.

Constructors

VulkanBorrowedTextureDescriptor({required LogicalSize logicalSize, required int physicalWidth, required int physicalHeight, required VulkanContextDescriptor context, required List<VulkanBorrowedTexture> textures, required int format, required int finalLayout, VulkanImageOwner owner = const VulkanImageOwner.fromRawValue(0)})

Properties

context → VulkanContextDescriptor
final
finalLayout → int
The VkImageLayout that each frame leaves its image in.
final
format → int
The images' VkFormat.
final
hashCode → int
The hash code for this object.
no setterinherited
logicalSize → LogicalSize
final
owner → VulkanImageOwner
final
physicalHeight → int
final
physicalWidth → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textures → List<VulkanBorrowedTexture>
final

Methods

copyWith({LogicalSize? logicalSize, int? physicalWidth, int? physicalHeight, VulkanContextDescriptor? context, List<VulkanBorrowedTexture>? textures, int? format, int? finalLayout, VulkanImageOwner? owner}) → VulkanBorrowedTextureDescriptor
A copy of this value with the given members replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited