Skip to main content
Version: Next

Type Alias: CameraFrameKernel()

CameraFrameKernel = (frame, render) => void

Defined in: react-native/webgpu/cameraFrameProcessorSession.ts:59

The per-frame drawing worklet. Called on the camera frame runtime for every admitted frame; call render(...) at most once to draw this frame's output (skipping it drops the frame). Inside render you receive a WebGpuFrameRenderContext with the live camera texture and the output texture to draw into.

Parameters​

ParameterType
frameCameraFrameInfo
renderWebGpuFrameRenderFunction

Returns​

void