FSlateTexture2DRHIRef::SetTextureData

Sets the bulk data for this texture and the format of the rendering resource

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Slate/SlateTextures.h

Include

#include "Slate/SlateTextures.h"

Source

/Engine/Source/Runtime/Engine/Private/Slate/SlateTextures.cpp

Syntax

void SetTextureData
(
    FSlateTextureDataPtr NewTextureData,
    EPixelFormat InPixelFormat,
    ETextureCreateFlags InTexCreateFlags
)

Remarks

Sets the bulk data for this texture and the format of the rendering resource

Does not reinitialize the resource. Can only be used on the render thread

Parameters

Parameter

Description

NewTextureData

The new texture data

InPixelFormat

The format of the texture data

InTexCreateFlags

Flags for creating the rendering resource

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