FDynamicRHI::RHIUpdateFromBufferTexture2D

FlushType: Flush RHI Thread.

Windows
MacOS
Linux

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/DynamicRHI.h

Include

#include "DynamicRHI.h"

Syntax

virtual void RHIUpdateFromBufferTexture2D
(
    FRHITexture2D * Texture,
    uint32 MipIndex,
    const struct FUpdateTextureRegion2D & UpdateRegion,
    uint32 SourcePitch,
    FRHIStructuredBuffer * Buffer,
    uint32 BufferOffset
)

Remarks

Updates a region of a 2D texture from GPU memory provided by the given buffer (may not be implemented on every platform)

Parameters

Parameter

Description

Texture

the RHI texture resource to update

MipIndex

mip level index to be modified

UpdateRegion

The rectangle to copy source image data from

SourcePitch

size in bytes of each row of the source image

Buffer, BufferOffset

source image data, starting at the upper left corner of the source rectangle (in same pixel format as texture)

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