Skip to main content
Version: 0.31.0

Interface: CameraPassthroughPipeline

Defined in: react-native/webgpu/cameraPassthroughPipeline.ts:95

A ready-made full-screen camera→target render pipeline. Build once at setup with createCameraPassthroughPipeline; every field is safe to capture into the frame worklet.

Properties​

cameraShaderBindings​

readonly cameraShaderBindings: CameraShaderBindings

Defined in: react-native/webgpu/cameraPassthroughPipeline.ts:98

The camera shader bindings the pipeline samples through.


cropBindGroup​

readonly cropBindGroup: GPUBindGroup

Defined in: react-native/webgpu/cameraPassthroughPipeline.ts:102

Static bind group with the crop uniform.


cropParamsBuffer​

readonly cropParamsBuffer: GPUBuffer

Defined in: react-native/webgpu/cameraPassthroughPipeline.ts:100

Uniform buffer holding the packed FrameCropParams; written by encodeCameraPassthrough.


pipeline​

readonly pipeline: GPURenderPipeline

Defined in: react-native/webgpu/cameraPassthroughPipeline.ts:96