Skip to main content

Module water_surface

Module water_surface 

Source
Expand description

Caller-buffered shoreline attributes for native open water meshes.

Structs§

ShoreReceipt
ShoreSpatialScratch
ShoreTopology

Enums§

ShoreError

Constants§

ALLOCATION_CLASS
SPATIAL_BUILD_ALLOCATION_CLASS
The optional spatial builder delegates to the native bounded cold BVH lifecycle; nearest-edge traversal itself stays allocation-free.

Functions§

shore_distance_accelerated_into
Accelerated shore-distance field into out.
shore_distance_into
Allocation-free reference calculation; accelerated loading shares its topology.
shore_topology_into
Distance in mesh X/Z units to the nearest topological boundary edge. edges is reusable scratch, one u64 per triangle index plus input vertex. Sorted undirected edge keys compact boundary edges in place; no heap is allocated. Separate surfaces keep separate boundaries. Streamed tile seams need shared topology before this authoring pass, not a shader guess about their outline.
spatial_working_bytes
Includes caller arrays and the native BVH builder’s bounded centroid scratch.