FSlateTextureData

Holds texture data for upload to a rendering resource

Choose your operating system:

Windows

macOS

Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Textures/SlateTextureData.h

Include

#include "Textures/SlateTextureData.h"

Syntax

struct FSlateTextureData

Remarks

Holds texture data for upload to a rendering resource

Constructors

Name Description

Public function

FSlateTextureData

(
    const FSlateTextureData& Other
)

Public function

FSlateTextureData

(
    uint32 InWidth,
    uint32 InHeight,
    uint32 InBytesPerPixel,
    const TArray< uint8 >& InBytes
)

Public function

FSlateTextureData

(
    uint32 InWidth,
    uint32 InHeight,
    uint32 InBytesPerPixel,
    TArray< uint8 >&& InBytes
)

Public function

FSlateTextureData

(
    const uint8* InBuffer,
    uint32 InWidth,
    uint32 InHeight,
    uint32 InBytesPerPixel
)

Constructor to create texture data by copying from a pointer instead of an array

Destructors

Name Description

Public function

~FSlateTextureData()

Functions

Name Description

Public function

void

 

Empty()

Public function Const

uint32

 

GetBytesPerPixel()

Public function Const

uint32

 

GetHeight()

Public function Const

const TArray...

 

GetRawBytes()

Public function

uint8 *

 

GetRawBytesPtr()

Accesses the raw bytes of already sized texture data

Public function Const

uint32

 

GetWidth()

Public function

void

 

SetRawData

(
    uint32 InWidth,
    uint32 InHeight,
    uint32 InBytesPerPixel,
    const TArray< uint8 >& InBytes
)

Operators

Name Description

Public function

FSlateTextur...

 

operator=

(
    const FSlateTextureData& Other
)