Table of Contents

Method Copy

Namespace
Pinwheel.Vista
Assembly
Pinwheel.Vista.Runtime.dll

Copy(BiomeData, Bounds, BiomeData, Bounds, int, int)

Copies all supported biome outputs from one bounds space into another and writes them into a destination data object.

public static void Copy(BiomeData srcData, Bounds srcBounds, BiomeData destData, Bounds destBounds, int heightMapResolution, int textureResolution)

Parameters

srcData BiomeData

Source biome data to read from.

srcBounds Bounds

World-space bounds represented by srcData.

destData BiomeData

Destination biome data object to overwrite.

destBounds Bounds

World-space bounds that the copied outputs should represent.

heightMapResolution int

Target resolution for height-related outputs such as height, holes, and mesh density.

textureResolution int

Target resolution for texture-like outputs such as albedo, metallic, layer weights, density maps, generic textures, and biome mask.

Remarks

This method starts by disposing any resources already owned by destData. It then recreates destination outputs at the requested resolutions and remaps them from srcBounds into destBounds. Buffers are copied with bounds-aware sample remapping, not by raw byte cloning.