Skip to content
Closed
Changes from all commits
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
6 changes: 3 additions & 3 deletions scripting/api-reference/image/image.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ view() -> GPUTextureView
Returns a GPUTextureView for sampling this image in WGSL shaders.
The view wraps the underlying GPU texture directly — no copy or decode.
Requires a GPU context (only available when the file uses GPU canvases).
A view taken from an `ImageAsset` currently samples as all zeros, with
no error; draw the asset into a `context:canvas()` and sample that
canvas's image instead.
An `ImageAsset`'s view samples its pixels once the image has decoded;
on the web that is after `init`, so take the view once `width` is
above 0.