Skip to content

Commit 4e295a9

Browse files
committed
💚
1 parent 55c86e5 commit 4e295a9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ device.queue.copyExternalImageToTexture(
226226

227227
React Native WebGPU exposes Dawn's `SharedTextureMemory` so you can import a native pixel surface (an `IOSurface`-backed `CVPixelBuffer` on iOS, an `AHardwareBuffer` on Android) as a sampleable `GPUTexture` without copying pixels through the CPU. This is the path you want for camera frames, video frames, or anything coming out of a hardware producer.
228228

229-
We exposes a single umbrella feature name, `"rnwebgpu/shared-texture-memory"`. Request it at device creation.
229+
We expose a single umbrella feature name, `"rnwebgpu/shared-texture-memory"`. Request it at device creation.
230230

231231
```tsx
232232
import type { VideoFrame } from "react-native-wgpu";

apps/example/src/SharedTextureMemory/SharedTextureMemory.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const SharedTextureMemory = () => {
113113
const player = RNWebGPU.createVideoPlayer(VIDEO_URL);
114114
player.play();
115115
source = {
116-
copyLatestFrame: () => source.copyLatestFrame(),
116+
copyLatestFrame: () => player.copyLatestFrame(),
117117
release: () => player.release(),
118118
};
119119
} else {

packages/webgpu/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ device.queue.copyExternalImageToTexture(
226226

227227
React Native WebGPU exposes Dawn's `SharedTextureMemory` so you can import a native pixel surface (an `IOSurface`-backed `CVPixelBuffer` on iOS, an `AHardwareBuffer` on Android) as a sampleable `GPUTexture` without copying pixels through the CPU. This is the path you want for camera frames, video frames, or anything coming out of a hardware producer.
228228

229-
We exposes a single umbrella feature name, `"rnwebgpu/shared-texture-memory"`. Request it at device creation.
229+
We expose a single umbrella feature name, `"rnwebgpu/shared-texture-memory"`. Request it at device creation.
230230

231231
```tsx
232232
import type { VideoFrame } from "react-native-wgpu";

0 commit comments

Comments
 (0)