webgpu
WebGPU camera toolkit β sample the live camera and render your own content into the video you
publish with useManagedPooledTrack (from the package's main entry point). Requires react-native-webgpu (an optional peer of
this package; only this entry point loads it).
- createCameraShaderBindings β sample the live camera from your own shaders via
sampleCamera(uv), with the platform's YUV decode handled for you. - createCameraPassthroughPipeline / encodeCameraPassthrough β a ready-made cameraβoutput pass to publish the camera with zero WGSL, or to build overlays on.
- createCameraTextureResolver β opt-in plain-texture camera for pipelines that can't
sample
texture_external. - useCameraWebGpuDevice β the shared, camera-import-capable GPUDevice.
Interfacesβ
Type Aliasesβ
Functionsβ
WebGPUβ
- assertWebGpuDeviceSupportsCameraImport
- computeAspectFillCrop
- computeSquareCrop
- createCameraBindGroup
- createCameraPassthroughPipeline
- createCameraShaderBindings
- createCameraTextureResolver
- encodeCameraPassthrough
- getOutputSurfaceFormat
- getRequiredWebGpuCameraFeatures
- packFrameCropParams
- resolveCameraTexture
- useCameraWebGpuDevice
- CameraPassthroughPipeline
- CameraShaderBindings
- CameraTextureResolver
- FrameCrop
- WebGpuFrameRenderContext
- WebGpuFrameRenderFunction
- FrameCropParams
- sampleCamera