Table of Contents

Class BiomeData

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

Container for all generated outputs produced by a biome request or biome-blending pass.

public class BiomeData : IDisposable
Inheritance
BiomeData
Implements
Inherited Members

Remarks

A BiomeData instance owns the textures and buffers assigned to it. The generation pipeline passes this object between graph execution, biome blending, bounds remapping, and tile population. Call Dispose() when the data is no longer needed to release GPU resources.

Constructors

BiomeData()

Initializes an empty biome data container with collectors for every supported output category.

Properties

albedoMap

Gets or sets the generated albedo map.

biomeMaskMap

Gets or sets the biome mask map associated with this data set.

heightMap

Gets or sets the generated height map.

holeMap

Gets or sets the generated hole map.

meshDensityMap

Gets or sets the generated mesh density map.

metallicMap

Gets or sets the generated metallic or smoothness-related map.

Methods

AddDetailDensities(List<DetailTemplate>, List<RenderTexture>)

Adds multiple detail templates and their corresponding density maps.

AddDetailDensity(DetailTemplate, RenderTexture)

Adds one detail template and its corresponding density map.

AddDetailInstance(DetailTemplate, ComputeBuffer)

Adds one detail template and its corresponding instance buffer.

AddDetailInstances(List<DetailTemplate>, List<ComputeBuffer>)

Adds multiple detail templates and their corresponding instance buffers.

AddGenericBuffer(string, ComputeBuffer)

Adds one labeled generic buffer output.

AddGenericTexture(string, RenderTexture)

Adds one labeled generic texture output.

AddObject(ObjectTemplate, ComputeBuffer)

Adds one object template and its corresponding instance buffer.

AddObjects(List<ObjectTemplate>, List<ComputeBuffer>)

Adds multiple object templates and their corresponding instance buffers.

AddTextureLayer(TerrainLayer, RenderTexture)

Adds one terrain layer and its corresponding weight texture.

AddTextureLayers(List<TerrainLayer>, List<RenderTexture>)

Adds multiple terrain layers and their corresponding weight textures.

AddTree(TreeTemplate, ComputeBuffer)

Adds one tree template and its corresponding instance buffer.

AddTrees(List<TreeTemplate>, List<ComputeBuffer>)

Adds multiple tree templates and their corresponding instance buffers.

DetachAlbedoMap()

Detaches the albedo map and transfers ownership to the caller.

DetachDensityMaps(List<DetailTemplate>, List<RenderTexture>)

Detaches all detail-density pairs and transfers texture ownership to the caller.

DetachHeightMap()

Detaches the height map and transfers ownership to the caller.

DetachHoleMap()

Detaches the hole map and transfers ownership to the caller.

DetachLayerWeights(List<TerrainLayer>, List<RenderTexture>)

Detaches all terrain-layer weight pairs and transfers texture ownership to the caller.

DetachMeshDensityMap()

Detaches the mesh-density map and transfers ownership to the caller.

DetachMetallicMap()

Detaches the metallic map and transfers ownership to the caller.

Dispose()

Releases all textures and compute buffers owned by this data set and clears every internal collection.

GetDensityMapCount()

Gets the number of stored detail density template/map pairs.

GetDensityMaps(List<DetailTemplate>, List<RenderTexture>)

Copies the stored detail templates and density maps into caller-provided lists.

GetDensityMapsAppended(List<DetailTemplate>, List<RenderTexture>)

Appends the stored detail templates and density maps into caller-provided lists.

GetDetailInstanceCount()

Gets the number of stored detail instance template/buffer pairs.

GetDetailInstances(List<DetailTemplate>, List<ComputeBuffer>)

Copies the stored detail templates and detail instance buffers into caller-provided lists.

GetDetailInstancesAppended(List<DetailTemplate>, List<ComputeBuffer>)

Appends the stored detail templates and detail instance buffers into caller-provided lists.

GetGenericBufferCount()

Gets the number of stored generic buffer label/buffer pairs.

GetGenericBuffers(List<string>, List<ComputeBuffer>)

Copies the stored generic buffer labels and buffers into caller-provided lists.

GetGenericTextureCount()

Gets the number of stored generic texture label/texture pairs.

GetGenericTextures(List<string>, List<RenderTexture>)

Copies the stored generic texture labels and textures into caller-provided lists.

GetLayerCount()

Gets the number of stored terrain-layer weight pairs.

GetLayerWeights(List<TerrainLayer>, List<RenderTexture>)

Copies the stored terrain layers and weight textures into caller-provided lists.

GetLayerWeightsAppended(List<TerrainLayer>, List<RenderTexture>)

Appends the stored terrain layers and weight textures into caller-provided lists.

GetMaxDensityMapResolution()

Gets the maximum resolution among all stored detail density maps.

GetObjectCount()

Gets the number of stored object template/buffer pairs.

GetObjects(List<ObjectTemplate>, List<ComputeBuffer>)

Copies the stored object templates and object instance buffers into caller-provided lists.

GetTreeCount()

Gets the number of stored tree template/buffer pairs.

GetTrees(List<TreeTemplate>, List<ComputeBuffer>)

Copies the stored tree templates and tree instance buffers into caller-provided lists.

GetTreesAppended(List<TreeTemplate>, List<ComputeBuffer>)

Appends the stored tree templates and tree instance buffers into caller-provided lists.