Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Engine
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UStreamableRenderAsset
- UTexture
- UTextureRenderTarget
- UTextureRenderTarget2D
- UCanvasRenderTarget2D
- UTextureRenderTarget2DArray
- UTextureRenderTargetCube
- UTextureRenderTargetVolume
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/TextureRenderTarget.h |
Include | #include "Engine/TextureRenderTarget.h" |
Syntax
UCLASS (Abstract, MinimalAPI)
class UTextureRenderTarget : public UTexture
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
uint32: 1 | bCanCreateUAV | If true, it will be possible to create a FUnorderedAccessViewRHIRef using RHICreateUnorderedAccessView and the internal FTextureRHIRef. |
![]() |
uint32: 1 | bNeedsTwoCopies | If true, there will be two copies in memory - one for the texture and one for the render target. |
![]() |
uint32: 1 | bTargetArraySlicesIndependently | If true, RTVs will be created for each slice (texture array and/or cube). |
![]() ![]() ![]() ![]() |
float | TargetGamma | Will override FTextureRenderTarget2DResource::GetDisplayGamma if > 0. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UTextureRenderTarget
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
bool | CanConvertToTexture
(
ETextureSourceFormat& OutTextureSourceFormat, |
Validates that the UTextureRenderTarget can be converted to a UTexture (e.g. supported format, valid size, etc.) |
![]() ![]() |
bool | CanConvertToTexture
(
FText* OutErrorMessage |
Validates that the UTextureRenderTarget can be converted to a UTexture (e.g. supported format, valid size, etc.) |
![]() |
UTexture * | ConstructTexture
(
UObject* InOuter, |
Utility for creating a new UTexture from a UTextureRenderTarget. |
![]() |
FTextureRenderTargetResource * | Returns a pointer to the (game thread managed) render target resource. | |
![]() ![]() |
float | UTextureRenderTarget default display gamma if none is set returns hard-coded 2.2 | |
![]() ![]() ![]() |
float | ||
![]() ![]() ![]() |
EPixelFormat | GetFormat () |
|
![]() ![]() |
ERawImageFormat::Type | GetReadPixelsFormat
(
EPixelFormat PF, |
Get the variant of ReadPixels call that should be used either BGRA8,RGBA32F,or RGBA16F for FColor,FLinearColor, or Float16 |
![]() |
FTextureRenderTargetResource * | Render thread: Access the render target resource for this texture target object | |
![]() ![]() ![]() |
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 () |
|
![]() |
bool | UpdateTexture
(
UTexture* InTexture, |
|
![]() ![]() |
ETextureSourceFormat | ValidateTextureFormatForConversionToTextureInternal
(
EPixelFormat InFormat, |
Overridden from UTexture
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FTextureResource * | Implemented by subclasses to create a new resource for the texture. | |
![]() ![]() ![]() |
EMaterialValueType | ||
![]() ![]() ![]() |
ETextureClass | Get Texture Class |
Typedefs
Name | Description |
---|---|
FOnTextureChangingDelegate | Utility for updating an existing UTexture from a TextureRenderTarget |