UTexture2DDynamic

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Texture2DDynamic.h

Include

#include "Engine/Texture2DDynamic.h"

Syntax

class UTexture2DDynamic : public UTexture

Variables

Name Description

Public variable

uint8: 1

 

bIsResolveTarget

Whether the texture can be used as a resolve target.

Public variable

TEnumAsByte< en...

 

Format

The format of the texture.

Public variable

int32

 

NumMips

The number of mip-maps in the texture.

Public variable

ESamplerAddress...

 

SamplerAddressMode

The sampler default address mode for this texture.

Public variable

int32

 

SizeX

The width of the texture.

Public variable

int32

 

SizeY

The height of the texture.

Constructors

Name Description

Public function

UTexture2DDynamic

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Static

UTexture2DDy...

 

Create

(
    int32 InSizeX,
    int32 InSizeY,
    const FTexture2DDynamicCreateInfo&...
)

Creates and initializes a new Texture2DDynamic with the requested settings

Public function

void

 

Init

(
    int32 InSizeX,
    int32 InSizeY,
    EPixelFormat InFormat,
    bool InIsResolveTarget
)

Initializes the texture with 1 mip-level and creates the render resource.

Overridden from UTexture

Name Description

Public function Virtual

FTextureReso...

 

CreateResource()

Implemented by subclasses to create a new resource for the texture.

Public function Virtual Const

EMaterialVal...

 

GetMaterialType()

Public function Virtual Const

float

 

GetSurfaceHeight()

Public function Virtual Const

float

 

GetSurfaceWidth()

Deprecated Functions

Name Description

Public function Static

UTexture2DDy...

 

Create

(
    int32 InSizeX,
    int32 InSizeY,
    EPixelFormat InFormat
)

Please use UTexture2DDynamic::Create() with FTexture2DDynamicCreateInfo initialization

Public function Static

UTexture2DDy...

 

Create

(
    int32 InSizeX,
    int32 InSizeY,
    EPixelFormat InFormat,
    bool InIsResolveTarget
)

Please use UTexture2DDynamic::Create() with FTexture2DDynamicCreateInfo initialization

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss