chore: Improve enableGpuBuffers docs

This commit is contained in:
Marc Rousavy 2024-02-14 13:52:02 +01:00
parent 14daaaaf9d
commit 61b2f7dd4a
No known key found for this signature in database
GPG Key ID: 8B9C709EA0B16A6D

View File

@ -200,9 +200,9 @@ export interface CameraProps extends ViewProps {
* (See [`USAGE_GPU_SAMPLED_IMAGE`](https://developer.android.com/reference/android/hardware/HardwareBuffer#USAGE_GPU_SAMPLED_IMAGE)) * (See [`USAGE_GPU_SAMPLED_IMAGE`](https://developer.android.com/reference/android/hardware/HardwareBuffer#USAGE_GPU_SAMPLED_IMAGE))
* *
* In general, it is recommended to set this to `true` if possible, as this can increase performance and efficiency of the Video Pipeline. * In general, it is recommended to set this to `true` if possible, as this can increase performance and efficiency of the Video Pipeline.
* This is an experimental feature flag however, so use at your own risk.
* *
* @platform Android * @experimental This is an experimental feature flag, use at your own risk. Some devices (especially Samsungs) may crash when trying to use GPU buffers.
* @platform Android (API 29+)
* @default false * @default false
*/ */
enableGpuBuffers?: boolean enableGpuBuffers?: boolean