Navigation
API > API/Runtime > API/Runtime/Engine
TextureRenderTargetCube
Cube render target texture resource. This can be used as a target for rendering as well as rendered as a regular cube texture resource.
| Name | UTextureRenderTargetCube |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/TextureRenderTargetCube.h |
| Include Path | #include "Engine/TextureRenderTargetCube.h" |
Syntax
UCLASS (HideCategories=Object, HideCategories=Texture, HideCategories=Compression,
HideCategories=Adjustments, HideCategories=Compositing, MinimalAPI)
class UTextureRenderTargetCube : public UTextureRenderTarget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UStreamableRenderAsset → UTexture → UTextureRenderTarget → UTextureRenderTargetCube
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UTextureRenderTargetCube
(
const FObjectInitializer& ObjectInitializer |
Engine/TextureRenderTargetCube.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bAutoGenerateMips | uint8 | Whether to support Mip maps for this render target texture | Engine/TextureRenderTargetCube.h |
|
| bForceLinearGamma | uint8 | True to force linear gamma space for this render target | Engine/TextureRenderTargetCube.h | |
| bHDR | uint8 | Determines the format of the render target. | Engine/TextureRenderTargetCube.h |
|
| bSupportsUAV | uint8 | Whether this render target can be used as an unordered access view | Engine/TextureRenderTargetCube.h |
|
| ClearColor | FLinearColor | The color the texture is cleared to | Engine/TextureRenderTargetCube.h | |
| MipsSamplerFilter | TEnumAsByte< enum TextureFilter > | Sampler filter type for AutoGenerateMips. Defaults to match texture filter. | Engine/TextureRenderTargetCube.h |
|
| OverrideFormat | TEnumAsByte< enum EPixelFormat > | Specifies the format of the texture data. | Engine/TextureRenderTargetCube.h | |
| SizeX | int32 | The width of the texture. | Engine/TextureRenderTargetCube.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| NumMips | int32 | Engine/TextureRenderTargetCube.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UTextureCube * ConstructTextureCube
(
UObject* InOuter, |
Utility for creating a new UTextureCube from a UTextureRenderTargetCube | Engine/TextureRenderTargetCube.h | |
int32 GetNumMips() |
Engine/TextureRenderTargetCube.h | ||
void Init
(
uint32 InSizeX, |
Initialize the settings needed to create a render target texture and create its resource | Engine/TextureRenderTargetCube.h | |
void InitAutoFormat
(
uint32 InSizeX |
Initializes the render target, the format will be derived from the value of bHDR. | Engine/TextureRenderTargetCube.h | |
void UpdateResourceImmediate
(
bool bClearRenderTarget |
Engine/TextureRenderTargetCube.h |
Overridden from UTextureRenderTarget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanConvertToTexture
(
ETextureSourceFormat& OutTextureSourceFormat, |
Validates that the UTextureRenderTarget can be converted to a UTexture (e.g. supported format, valid size, etc.) | Engine/TextureRenderTargetCube.h | |
virtual float GetDisplayGamma() |
Engine/TextureRenderTargetCube.h | ||
virtual EPixelFormat GetFormat() |
Engine/TextureRenderTargetCube.h | ||
virtual ETextureClass GetRenderTargetTextureClass() |
GetTextureClass() will just return "RenderTarget" ; to get the sub-type (2d/cube), use GetRenderTargetTextureClass. | Engine/TextureRenderTargetCube.h | |
virtual TSubclassOf< UTexture > GetTextureUClass() |
Returns the UTexture class that corresponds to this render target (e.g. UTexture2D for UTextureRenderTarget2D) | Engine/TextureRenderTargetCube.h | |
virtual bool IsSRGB() |
Engine/TextureRenderTargetCube.h |
Overridden from UTexture
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FTextureResource * CreateResource() |
Implemented by subclasses to create a new resource for the texture. | Engine/TextureRenderTargetCube.h | |
virtual EMaterialValueType GetMaterialType() |
Engine/TextureRenderTargetCube.h | ||
virtual uint32 GetSurfaceArraySize() |
Engine/TextureRenderTargetCube.h | ||
virtual float GetSurfaceDepth() |
Engine/TextureRenderTargetCube.h | ||
virtual float GetSurfaceHeight () |
PVS-Studio notices that the implementation of GetSurfaceWidth is identical to this one and warns us. | Engine/TextureRenderTargetCube.h | |
virtual float GetSurfaceWidth() |
Engine/TextureRenderTargetCube.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FString GetDesc() |
Engine/TextureRenderTargetCube.h | ||
virtual void GetResourceSizeEx
(
FResourceSizeEx& CumulativeResourceSize |
Engine/TextureRenderTargetCube.h | ||
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Engine/TextureRenderTargetCube.h | ||
virtual void PostLoad() |
Engine/TextureRenderTargetCube.h |