diff --git a/docs/api/maplibre/render/settings/struct.Features.html b/docs/api/maplibre/render/settings/struct.Features.html index 513542aa..006e3ce1 100644 --- a/docs/api/maplibre/render/settings/struct.Features.html +++ b/docs/api/maplibre/render/settings/struct.Features.html @@ -128,10 +128,14 @@ the consequences.

This is a native only feature.

Allows the user to create uniform arrays of textures in shaders:

-

eg. uniform texture2D textures[10].

+

ex. +var textures: binding_array<texture_2d<f32>, 10> (WGSL)
+uniform texture2D textures[10] (GLSL)

If Features::STORAGE_RESOURCE_BINDING_ARRAY is supported as well as this, the user may also create uniform arrays of storage textures.

-

eg. uniform image2D textures[10].

+

ex. +var textures: array<texture_storage_2d<f32, write>, 10> (WGSL)
+uniform image2D textures[10] (GLSL)

This capability allows them to exist and to be indexed by dynamically uniform values.

Supported platforms:

@@ -142,12 +146,16 @@ values.

This is a native only feature.

Allows the user to create arrays of buffers in shaders:

-

eg. uniform myBuffer { .... } buffer_array[10].

+

ex. +var<uniform> buffer_array: array<MyBuffer, 10> (WGSL)
+uniform myBuffer { ... } buffer_array[10] (GLSL)

This capability allows them to exist and to be indexed by dynamically uniform values.

If Features::STORAGE_RESOURCE_BINDING_ARRAY is supported as well as this, the user may also create arrays of storage buffers.

-

eg. buffer myBuffer { ... } buffer_array[10]

+

ex. +var<storage> buffer_array: array<MyBuffer, 10> (WGSL)
+buffer myBuffer { ... } buffer_array[10] (GLSL)

Supported platforms:

This is a native only feature.

Allows shaders to index sampled texture and storage buffer resource arrays with dynamically non-uniform values:

-

eg. texture_array[vertex_data]

+

ex. texture_array[vertex_data]

In order to use this capability, the corresponding GLSL extension must be enabled like so:

#extension GL_EXT_nonuniform_qualifier : require

and then used either as nonuniformEXT qualifier in variable declaration:

-

eg. layout(location = 0) nonuniformEXT flat in int vertex_data;

+

ex. layout(location = 0) nonuniformEXT flat in int vertex_data;

or as nonuniformEXT constructor:

-

eg. texture_array[nonuniformEXT(vertex_data)]

-

HLSL does not need any extension.

+

ex. texture_array[nonuniformEXT(vertex_data)]

+

WGSL and HLSL do not need any extension.

Supported platforms:

This is a native only feature.

Allows shaders to index uniform buffer and storage texture resource arrays with dynamically non-uniform values:

-

eg. texture_array[vertex_data]

+

ex. texture_array[vertex_data]

In order to use this capability, the corresponding GLSL extension must be enabled like so:

#extension GL_EXT_nonuniform_qualifier : require

and then used either as nonuniformEXT qualifier in variable declaration:

-

eg. layout(location = 0) nonuniformEXT flat in int vertex_data;

+

ex. layout(location = 0) nonuniformEXT flat in int vertex_data;

or as nonuniformEXT constructor:

-

eg. texture_array[nonuniformEXT(vertex_data)]

-

HLSL does not need any extension.

+

ex. texture_array[nonuniformEXT(vertex_data)]

+

WGSL and HLSL do not need any extension.

Supported platforms:

Allows for timestamp queries inside renderpasses. Metal does not allow this diff --git a/docs/api/maplibre/window/trait.HeadedMapWindow.html b/docs/api/maplibre/window/trait.HeadedMapWindow.html index c017d632..6de60bbd 100644 --- a/docs/api/maplibre/window/trait.HeadedMapWindow.html +++ b/docs/api/maplibre/window/trait.HeadedMapWindow.html @@ -5,10 +5,10 @@

pub trait HeadedMapWindow: MapWindow {
-    type RawWindow: HasRawWindowHandle;
+    type RawWindow: HasRawWindowHandle + HasRawDisplayHandle;
 
     fn inner(&self) -> &Self::RawWindow;
 }
Expand description

Window which references a physical RawWindow. This is only implemented by headed windows and not by headless windows.

-

Required Associated Types

Required Methods

Implementors

+

Required Associated Types

Required Methods

Implementors

\ No newline at end of file diff --git a/docs/api/src/maplibre/io/geometry_index.rs.html b/docs/api/src/maplibre/io/geometry_index.rs.html index b5194220..42bd1ec9 100644 --- a/docs/api/src/maplibre/io/geometry_index.rs.html +++ b/docs/api/src/maplibre/io/geometry_index.rs.html @@ -589,7 +589,7 @@ } /// End of feature geometry processing. fn geometry_end(&mut self) -> Result<(), GeozeroError> { - let geometry = self.geo_writer.geometry().cloned().unwrap(); + let geometry = self.geo_writer.take_geometry().unwrap(); match geometry { Geometry::Polygon(polygon) => self.geometries.push( diff --git a/docs/api/src/maplibre/platform/noweb/mod.rs.html b/docs/api/src/maplibre/platform/noweb/mod.rs.html index 725598b8..f240ef5b 100644 --- a/docs/api/src/maplibre/platform/noweb/mod.rs.html +++ b/docs/api/src/maplibre/platform/noweb/mod.rs.html @@ -37,7 +37,7 @@ .enable_time() .on_thread_start(|| { #[cfg(feature = "trace")] - tracy_client::set_thread_name("tokio-runtime-worker"); + tracy_client::set_thread_name!("tokio-runtime-worker"); }) .build() .unwrap() diff --git a/docs/api/src/maplibre/window.rs.html b/docs/api/src/maplibre/window.rs.html index 3697df2f..1234c2bd 100644 --- a/docs/api/src/maplibre/window.rs.html +++ b/docs/api/src/maplibre/window.rs.html @@ -66,7 +66,7 @@ 61
//! Utilities for the window system.
 
-use raw_window_handle::HasRawWindowHandle;
+use raw_window_handle::{HasRawDisplayHandle, HasRawWindowHandle};
 
 use crate::{HttpClient, InteractiveMapSchedule, ScheduleMethod};
 
@@ -78,7 +78,7 @@
 /// Window which references a physical `RawWindow`. This is only implemented by headed windows and
 /// not by headless windows.
 pub trait HeadedMapWindow: MapWindow {
-    type RawWindow: HasRawWindowHandle;
+    type RawWindow: HasRawWindowHandle + HasRawDisplayHandle;
 
     fn inner(&self) -> &Self::RawWindow;
 }