Orrery Terrain · OrreryTerrain module · function
BrushBake::
FromTexture
Bake a texture.
Declaration
EOrreryTerrainBrushBake FromTexture(UTexture2D* Texture, const FBakeSpec& Spec,
std::shared_ptr<const OrreryTerrain::Native::FBrushMask>& OutMask);- Header
#include "OrreryTerrainBrushAsset.h"- Module
PublicDependencyModuleNames.Add("OrreryTerrain");in your module’s Build.cs.- Stability
- Stable: changes within a major version only add.
- Thread
- Game thread.
Description
In the editor it reads the texture's untouched source (mip 0), never the platform data; elsewhere, and in the editor for a texture without source, it reads the CPU copy (GetCPUCopy), and never reads the GPU back.
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
Texture | UTexture2 | — | — |
Spec | const FBake | — | — |
OutMask | std:: | — | — |
Returns
Ok, NoSource (null texture), NoCpuCopy, BadImage, BadSize or Refused.
Note.
Game thread.