Skip to main content
Version: Next

Type Alias: WebGpuFrameRenderFunction()

WebGpuFrameRenderFunction = (encode) => void

Defined in: src/webgpu/frameRenderContext.ts:61

The render function handed to the source hook's onFrame worklet. Call it at most once per frame with your encode function; skipping it drops the frame (nothing is published for it).

Parameters​

ParameterType
encode(context) => void

Returns​

void