Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Engine
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UStreamableRenderAsset
- UTexture
- UTextureRenderTarget
- UTextureRenderTarget2DArray
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Engine/TextureRenderTarget2DArray.h |
| Include | #include "Engine/TextureRenderTarget2DArray.h" |
Syntax
UCLASS (HideCategories=Object, HideCategories=Texture, MinimalAPI)
class UTextureRenderTarget2DArray : public UTextureRenderTarget
Remarks
TextureRenderTarget2DArray
2D Array render target texture resource. This can be used as a target for rendering as well as rendered as a regular 2DArray texture resource.
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint8: 1 | bForceLinearGamma | True to force linear gamma space for this render target | |
| uint8: 1 | bHDR | Whether to support storing HDR values, which requires more memory. | |
| FLinearColor | ClearColor | The color the texture is cleared to | |
| TEnumAsByte< enum EPixelFormat > | OverrideFormat | The format of the texture data. | |
| int32 | SizeX | The width of the texture. | |
| int32 | SizeY | The height of the texture. | |
| int32 | Slices | The slices of the texture. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UTextureRenderTarget2DArray
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UTexture2DArray * | ConstructTexture2DArray
(
UObject* InOuter, |
Utility for creating a new UTexture2DArray from a UTextureRenderTarget2DArray | |
| int32 | GetNumMips () |
||
| void | Init
(
uint32 InSizeX, |
Initialize the settings needed to create a render target texture and create its resource | |
| void | InitAutoFormat
(
uint32 InSizeX, |
Initializes the render target, the format will be derived from the value of bHDR. | |
| void | UpdateResourceImmediate
(
bool bClearRenderTarget |
Overridden from UTextureRenderTarget
| Type | Name | Description | |
|---|---|---|---|
| bool | CanConvertToTexture
(
ETextureSourceFormat& OutTextureSourceFormat, |
Validates that the UTextureRenderTarget can be converted to a UTexture (e.g. supported format, valid size, etc.) | |
| float | |||
| EPixelFormat | GetFormat () |
||
| ETextureClass | GetTextureClass() will just return "RenderTarget" ; to get the sub-type (2d/cube), use GetRenderTargetTextureClass. | ||
| TSubclassOf< UTexture > | Returns the UTexture class that corresponds to this render target (e.g. UTexture2D for UTextureRenderTarget2D) | ||
| bool | IsSRGB () |
Overridden from UTexture
| Type | Name | Description | |
|---|---|---|---|
| FTextureResource * | Implemented by subclasses to create a new resource for the texture. | ||
| EMaterialValueType | |||
| uint32 | |||
| float | |||
| float | PVS-Studio notices that the implementation of GetSurfaceWidth is identical to this one and warns us. | ||
| float |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| FString | GetDesc () |
Return a one line description of an object for viewing in the thumbnail view of the generic browser | |
| void | GetResourceSizeEx
(
FResourceSizeEx& CumulativeResourceSize |
Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific). | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. |