Skip to main content
Version: Next

Function: resolveCameraTexture()

resolveCameraTexture(device, resolver, cameraTexture, cameraWidth, cameraHeight, commandEncoder): void

Defined in: react-native/webgpu/cameraTextureResolver.ts:73

Encodes one pass resolving the live camera texture into resolver.texture, aspect-filled to the resolver's size (the YUV decode for its pixel layout included). Worklet-safe; call it inside your render callback before the passes that sample resolver.texture.

Parameters​

ParameterType
deviceGPUDevice
resolverCameraTextureResolver
cameraTextureGPUExternalTexture
cameraWidthnumber
cameraHeightnumber
commandEncoderGPUCommandEncoder

Returns​

void