Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FDynamicRHI
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FTextureRHIRef RHIAsyncCreateTexture2D
(
uint32 SizeX, |
Thread-safe function that can be used to create a texture outside of the rendering thread. | DynamicRHI.h | |
FTextureRHIRef RHIAsyncCreateTexture2D
(
uint32 SizeX, |
DynamicRHI.h |
RHIAsyncCreateTexture2D(uint32, uint32, uint8, uint32, ETextureCreateFlags, ERHIAccess, void **, uint32, FGraphEventRef &)
Description
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.
| Name | RHIAsyncCreateTexture2D |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/DynamicRHI.h |
| Include Path | #include "DynamicRHI.h" |
FTextureRHIRef RHIAsyncCreateTexture2D
(
uint32 SizeX,
uint32 SizeY,
uint8 Format,
uint32 NumMips,
ETextureCreateFlags Flags,
ERHIAccess InResourceState,
void ** InitialMipData,
uint32 NumInitialMips,
FGraphEventRef & OutCompletionEvent
)
a reference to a 2D texture resource FlushType: Thread safe
Parameters
| Name | Remarks |
|---|---|
| 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 |
| OutCompletionEvent | An event signaled on operation completion. Can return null. Operation can still be pending after function returns (e.g. initial data upload in-flight) |
RHIAsyncCreateTexture2D(uint32, uint32, uint8, uint32, ETextureCreateFlags, ERHIAccess, void *, uint32, const TCHAR , FGraphEventRef &)
| Name | RHIAsyncCreateTexture2D |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/DynamicRHI.h |
| Include Path | #include "DynamicRHI.h" |
FTextureRHIRef RHIAsyncCreateTexture2D
(
uint32 SizeX,
uint32 SizeY,
uint8 Format,
uint32 NumMips,
ETextureCreateFlags Flags,
ERHIAccess InResourceState,
void ** InitialMipData,
uint32 NumInitialMips,
const TCHAR * DebugName,
FGraphEventRef & OutCompletionEvent
)