Navigation
API > API/Plugins > API/Plugins/SharedMemoryMedia > API/Plugins/SharedMemoryMedia/USharedMemoryMediaCapture
- UMediaCapture::OnCustomCapture_RenderingThread()
- USharedMemoryMediaCapture::OnCustomCapture_RenderingThread()
References
| Module | SharedMemoryMedia |
| Header | /Engine/Plugins/Runtime/nDisplay/Source/SharedMemoryMedia/Public/SharedMemoryMediaCapture.h |
| Include | #include "SharedMemoryMediaCapture.h" |
| Source | /Engine/Plugins/Runtime/nDisplay/Source/SharedMemoryMedia/Private/SharedMemoryMediaCapture.cpp |
virtual void OnCustomCapture_RenderingThread
(
FRDGBuilder & GraphBuilder,
const FCaptureBaseData & InBaseData,
TSharedPtr < FMediaCaptureUserData , ESPMode::ThreadSafe > InUserData,
FRDGTextureRef InSourceTexture,
FRDGTextureRef OutputTexture,
const FRHICopyTextureInfo & CopyInfo,
FVector2D CropU,
FVector2D CropV
)
Remarks
Callback when the source texture is ready to be copied on the GPU. You need to copy yourself. You may use the callback to add passes to the graph builder. Graph execution and output texture readback will be handled after this call. No need to do it in the override. The callback in called from a critical point be fast. The texture is valid for the duration of the callback. Only called when the conversion operation is custom and the output resource type is Texture.