Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Textures > API/Runtime/SlateCore/Textures/FSlateUpdatableTexture
- FSlateUpdatableTexture::UpdateTextureThreadSafeWithKeyedTextureHandle()
- FSlateTexture2DRHIRef::UpdateTextureThreadSafeWithKeyedTextureHandle()
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Textures/SlateUpdatableTexture.h |
| Include | #include "Textures/SlateUpdatableTexture.h" |
void UpdateTextureThreadSafeWithKeyedTextureHandle
&40;
void &42; TextureHandle,
int KeyLockVal,
int KeyUnlockVal,
const FIntRect & Dirty
&41;
Remarks
Update the texture from a shared texture handle. The handle type/usage is render system dependent, D3D uses the D3D11 OpenSharedResource call On macOS we use an IOSurface.
Parameters
| Name | Description |
|---|---|
| TextureHandle | A pointer to the opque texture handle provided by the OS. |
| Dirty | An optional hint of the area to update. An empty rectangle means that the entire texture should be updated. |