Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FDynamicRHI
- FDynamicRHI::RHILockTexture2D()
- FVulkanDynamicRHI::RHILockTexture2D()
- FNullDynamicRHI::RHILockTexture2D()
- FOpenGLDynamicRHI::RHILockTexture2D()
References
| Module | RHI |
| Header | /Engine/Source/Runtime/RHI/Public/DynamicRHI.h |
| Include | #include "DynamicRHI.h" |
void &42; RHILockTexture2D
&40;
FRHITexture2D &42; Texture,
uint32 MipIndex,
EResourceLockMode LockMode,
uint32 & DestStride,
bool bLockWithinMiptail,
uint64 &42; OutLockedByteCount
&41;
Remarks
Locks an RHI texture's mip-map for read/write operations on the CPU pointer to the CPU accessible resource data
Parameters
| Name | Description |
|---|---|
| Texture | the RHI texture resource to lock, must not be 0 |
| MipIndex | index of the mip level to lock |
| LockMode | Whether to lock the texture read-only instead of write-only |
| DestStride | output to retrieve the textures row stride (pitch) |
| bLockWithinMiptail | for platforms that support packed miptails allow locking of individual mip levels within the miptail |