Navigation
API > API/Runtime > API/Runtime/Landscape
Inheritance Hierarchy
- UObject
- ULandscapeScratchRenderTarget
References
| Module | Landscape |
| Header | /Engine/Source/Runtime/Landscape/Public/LandscapeEditResourcesSubsystem.h |
| Include | #include "LandscapeEditResourcesSubsystem.h" |
Syntax
UCLASS (Transient)
class ULandscapeScratchRenderTarget : public UObject
Remarks
ULandscapeScratchRenderTarget holds a UTextureRenderTarget2D. It can be used in the landscape tools as transient memory by requesting/releasing an instance via ULandscapeEditResourcesSubsystem It contains information about the current state (ERHIAccess) of the resource in order to automate/minimize state transitions. In order to minimize memory consumption, the internal render target can be larger than what was requested. It's therefore important to take that into account when setting up draw calls on this render target and use GetEffectiveResolution() instead of the RT's resolution
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Clear () |
Perform a clear of the scratch texture | |
| void | CopyFrom
(
const FCopyFromTextureParams& InCopyParams |
Copies the content of the texture in parameter to the scratch texture (assuming the input texture is in CopySrc state already). | |
| void | CopyFrom
(
const FCopyFromScratchRenderTargetParams& InCopyParams |
Copies the content of the scratch texture in parameter to the scratch texture. | |
| FLinearColor | |||
| const UE::Landscape::FScratchRenderTargetParams & | |||
| ERHIAccess | |||
| const FString & | GetDebugName () |
||
| int32 | |||
| FIntPoint | |||
| ETextureRenderTargetFormat | GetFormat () |
||
| int32 | GetNumSlices () |
||
| UTextureRenderTarget * | |||
| UTextureRenderTarget2D * | |||
| UTextureRenderTarget2DArray * | |||
| FIntPoint | |||
| bool | IsCompatibleWith
(
const UE::Landscape::FScratchRenderTargetParams& InParams |
||
| bool | IsInUse () |
||
| bool | |||
| void | TransitionTo
(
ERHIAccess InStateAfter |
Perform a transition of the scratch texture's RHIAccess | |
| UTextureRenderTarget2D * | |||
| UTextureRenderTarget2DArray * |