Skip to main content
Version: Next

Function: useCameraWebGpuDeviceWithOverride()

useCameraWebGpuDeviceWithOverride(override): UseCameraWebGpuDeviceResult

Defined in: react-native-custom-video-source/dist/typescript/webgpu/useCameraWebGpuDevice.d.ts:26

Device resolution for the source hook: the user-provided override (validated) when present, otherwise the shared device. Always called, so hook order stays stable either way.

Parameters​

ParameterType
overrideundefined | GPUDevice

Returns​

UseCameraWebGpuDeviceResult