FSlateTexture2DRHIRef::SetTextureData

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

Choose your operating system:

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