Class

MaplibreNativeFfiMetalBorrowedTextureDescriptor

Description [src]

final class MaplibreNativeFfi.MetalBorrowedTextureDescriptor : GObject.Object
{
  /* No available fields */
}

A ring of your Metal textures, for maplibre_native_ffi_map_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 MAPLIBRE_NATIVE_FFI_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.

Ancestors

Constructors

maplibre_native_ffi_metal_borrowed_texture_descriptor_new

Creates a MaplibreNativeFfiMetalBorrowedTextureDescriptor whose members are zero or empty.

Instance methods

maplibre_native_ffi_metal_borrowed_texture_descriptor_get_command_queue

Gets MaplibreNativeFfiMetalBorrowedTextureDescriptor:command-queue.

maplibre_native_ffi_metal_borrowed_texture_descriptor_get_logical_size

Gets MaplibreNativeFfiMetalBorrowedTextureDescriptor:logical-size.

maplibre_native_ffi_metal_borrowed_texture_descriptor_get_physical_height

Gets MaplibreNativeFfiMetalBorrowedTextureDescriptor:physical-height.

maplibre_native_ffi_metal_borrowed_texture_descriptor_get_physical_width

Gets MaplibreNativeFfiMetalBorrowedTextureDescriptor:physical-width.

maplibre_native_ffi_metal_borrowed_texture_descriptor_get_textures

Gets the value that maplibre_native_ffi_metal_borrowed_texture_descriptor_set_textures sets.

maplibre_native_ffi_metal_borrowed_texture_descriptor_set_command_queue

Sets MaplibreNativeFfiMetalBorrowedTextureDescriptor:command-queue.

maplibre_native_ffi_metal_borrowed_texture_descriptor_set_logical_size

Sets MaplibreNativeFfiMetalBorrowedTextureDescriptor:logical-size.

maplibre_native_ffi_metal_borrowed_texture_descriptor_set_physical_height

Sets MaplibreNativeFfiMetalBorrowedTextureDescriptor:physical-height.

maplibre_native_ffi_metal_borrowed_texture_descriptor_set_physical_width

Sets MaplibreNativeFfiMetalBorrowedTextureDescriptor:physical-width.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

MaplibreNativeFfi.MetalBorrowedTextureDescriptor:command-queue

Your MTLCommandQueue on the textures’ device, or null for a queue of the session’s own. With your queue, frames can use MAPLIBRE_NATIVE_FFI_GPU_SYNC_QUEUE_ORDER.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct MaplibreNativeFfiMetalBorrowedTextureDescriptorClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.