Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
address comments
  • Loading branch information
kainino0x committed Apr 15, 2021
commit 40d7b4e53611373b88cc4b875c19b7b082e422e1
11 changes: 6 additions & 5 deletions explainer/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -819,16 +819,17 @@ Issue: Update both names to whatever we settle on.

### GPUExternalTexture ### {#image-input-external-texture}

A `GPUExternalTexture` is a read-only texture object which can be used in similar ways to normal
`GPUTexture` objects.
A `GPUExternalTexture` is a sampleable texture object which can be used in similar ways to normal
sampleable `GPUTexture` objects.
In particular, it can be bound as a texture resource to a shader and used directly from the GPU:
when it is bound, additional metadata is attached that allows WebGPU to "automagically"
transform the data from its underlying representation (e.g. YUV) to RGB sampled data.

`GPUExternalTexture`s represent a particular immutable image, so the underlying data must not
change after import. To achieve this:
A `GPUExternalTexture` represents a particular imported image, so the underlying data must not
change after import, either from internal (WebGPU) or external (Web platform) access.

Issue: Describe how this works for video element, VideoFrame, canvas element, and OffscreenCanvas.
Issue:
Describe how this is achieved for video element, VideoFrame, canvas element, and OffscreenCanvas.


## Canvas Output ## {#canvas-output}
Expand Down