FDynamicRHI::RHIAsyncCreateTexture2D

FlushType: Thread safe.

Windows
MacOS
Linux

Override Hierarchy

Syntax

FTexture2DRHIRef RHIAsyncCreateTexture2D
(
    uint32 SizeX,
    uint32 SizeY,
    uint8 Format,
    uint32 NumMips,
    uint32 Flags,
    void ** InitialMipData,
    uint32 NumInitialMips
)

Remarks

Thread-safe function that can be used to create a texture outside of the rendering thread. This function can ONLY be called if GRHISupportsAsyncTextureCreation is true. Cannot create rendertargets with this method.

Returns

a reference to a 2D texture resource

Parameters

Parameter

Description

SizeX

width of the texture to create

SizeY

height of the texture to create

Format

EPixelFormat texture format

NumMips

number of mips to generate or 0 for full mip pyramid

Flags

ETextureCreateFlags creation flags

InitialMipData

pointers to mip data with which to create the texture

NumInitialMips

how many mips are provided in InitialMipData

References

Module

RHI

Header

Runtime/RHI/Public/DynamicRHI.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback