Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UStreamableRenderAsset
- UTexture
- UTextureRenderTarget
- UTextureRenderTarget2D
- UCanvasRenderTarget2D
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/TextureRenderTarget2D.h |
Include | #include "Engine/TextureRenderTarget2D.h" |
Syntax
UCLASS (HideCategories=Object, HideCategories=Texture, HideCategories=Compression,
HideCategories=Adjustments, HideCategories=Compositing, MinimalAPI)
class UTextureRenderTarget2D : public UTextureRenderTarget
Remarks
TextureRenderTarget2D
2D render target texture resource. This can be used as a target for rendering as well as rendered as a regular 2D texture resource.
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() ![]() ![]() |
TEnumAsByte< enum TextureAddress > | AddressX | The addressing mode to use for the X axis. |
![]() ![]() ![]() ![]() ![]() |
TEnumAsByte< enum TextureAddress > | AddressY | The addressing mode to use for the Y axis. |
![]() ![]() ![]() ![]() ![]() |
uint8: 1 | bAutoGenerateMips | Whether to support Mip maps for this render target texture |
![]() ![]() |
uint8: 1 | bForceLinearGamma | True to force linear gamma space for this render target |
![]() ![]() ![]() ![]() ![]() |
uint8: 1 | bGPUSharedFlag | Whether to support GPU sharing of the underlying native texture resource. |
![]() |
uint8: 1 | bNoFastClear | If true fast clear will be disabled on the rendertarget. |
![]() ![]() ![]() ![]() ![]() |
uint8: 1 | bSupportsUAV | Whether this render target can be used as an unordered access view |
![]() ![]() ![]() ![]() |
FLinearColor | ClearColor | The color the texture is cleared to |
![]() ![]() ![]() ![]() ![]() |
TEnumAsByte< enum TextureAddress > | MipsAddressU | AutoGenerateMips sampler address mode for U channel. Defaults to clamp. |
![]() ![]() ![]() ![]() ![]() |
TEnumAsByte< enum TextureAddress > | MipsAddressV | AutoGenerateMips sampler address mode for V channel. Defaults to clamp. |
![]() ![]() ![]() ![]() ![]() |
TEnumAsByte< enum TextureFilter > | MipsSamplerFilter | Sampler filter type for AutoGenerateMips. Defaults to match texture filter. |
![]() ![]() |
TEnumAsByte< enum EPixelFormat > | OverrideFormat | Normally the format is derived from RenderTargetFormat, this allows code to set the format explicitly. |
![]() ![]() ![]() ![]() ![]() |
TEnumAsByte< ETextureRenderTargetFormat > | RenderTargetFormat | Format of the texture render target. |
![]() ![]() ![]() ![]() ![]() |
int32 | SizeX | The width of the texture. |
![]() ![]() ![]() ![]() ![]() |
int32 | SizeY | The height of the texture. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UTextureRenderTarget2D
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
UTexture2D * | ConstructTexture2D
(
UObject* InOuter, |
Utility for creating a new UTexture2D from a UTextureRenderTarget2D |
![]() ![]() |
int32 | GetNumMips () |
|
![]() ![]() ![]() |
ETextureRenderTargetSampleCount | ||
![]() ![]() |
ETextureSourceFormat | ||
![]() |
void | InitAutoFormat
(
uint32 InSizeX, |
Initializes the render target, the format will be derived from the value of bHDR. |
![]() |
void | InitCustomFormat
(
uint32 InSizeX, |
Initialize the settings needed to create a render target texture and create its resource |
![]() |
void | ResizeTarget
(
uint32 InSizeX, |
Resizes the render target without recreating the FTextureResource. |
![]() |
PRAGMA_ENABLE_DEPRECATION_WARNINGS void | UpdateResourceImmediate
(
bool bClearRenderTarget |
Updates (resolves) the render target texture immediately. |
![]() |
void | UpdateTexture2D
(
UTexture2D* InTexture2D, |
Utility for updating an existing UTexture2D from a TextureRenderTarget2D |
![]() |
PRAGMA_DISABLE_DEPRECATION_WARNINGS void | UpdateTexture2D
(
UTexture2D* InTexture2D, |
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 | Render target resource should be sampled in linear color space | |
![]() ![]() ![]() |
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 | |
---|---|---|---|
![]() ![]() ![]() |
uint32 | Calculates the size of this texture if it had MipCount miplevels streamed in. | |
![]() ![]() |
FTextureResource * | Implemented by subclasses to create a new resource for the texture. | |
![]() ![]() ![]() |
EMaterialValueType | ||
![]() ![]() ![]() |
uint32 | ||
![]() ![]() ![]() |
float | ||
![]() ![]() ![]() |
float | ||
![]() ![]() ![]() |
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. |
![]() ![]() |
void | Handles reading, writing, and reference collecting using FArchive. |
Typedefs
Name | Description |
---|---|
FTextureChangingDelegate | Utility for updating an existing UTexture2D from a TextureRenderTarget2D |
Deprecated Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
uint8: 1 | bHDR_DEPRECATED | Whether to support storing HDR values, which requires more memory. |