Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrain module · function

BrushBake::

FromSplatPixels

Bake raw 8-bit RGBA pixels from game code, as FromSplatRgba16 does.

Declaration

EOrreryTerrainBrushBake FromSplatPixels(const uint8* Bytes, int64 Count, int32 Width, int32 Height, uint32 Used, const FBakeSpec& Spec,
                                                               std::shared_ptr<const OrreryTerrain::Native::FBrushMask> (&OutMasks)[kSplatChannels]);
Header
#include "OrreryTerrainBrushAsset.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrain"); in your module’s Build.cs.
Stability
Stable: changes within a major version only add.
Thread
Any thread.

Parameters

NameTypeDefaultMeaning
Bytesconst uint8*—

Width x Height x 4 bytes, R G B A per pixel, row-major.

Countint64—

Bytes in the array; must be exactly Width x Height x 4.

Widthint32—

Pixels a row.

Heightint32—

Rows.

Useduint32—

Bit c set: channel c becomes a mask (bit 0 red to bit 3 alpha).

Specconst FBakeSpec&—

The bake settings, as FromSplatRgba16.

OutMasksstd::shared_ptr<const OrreryTerrain::Native::FBrushMask>(&)—

Per channel, its mask on Ok when used, else null.

Returns

Ok, BadPixels, BadSize or Refused.

Note.

Any thread.