summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-11-20 15:22:38 -0800
committerGitHub <noreply@github.com>2024-11-20 15:22:38 -0800
commit3d36e0ca08c6d8ea21bc825ccfae4754e18744be (patch)
treeb4c4e38c6543f75757b18b08eacfb18a6d743ba7 /docs
parentb0818ac607ae4f3f04ff59f09b083a0f3fe8e350 (diff)
Add description on write-only textures in wgsl doc.
Diffstat (limited to 'docs')
-rw-r--r--docs/user-guide/a2-03-wgsl-target-specific.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/user-guide/a2-03-wgsl-target-specific.md b/docs/user-guide/a2-03-wgsl-target-specific.md
index 206da365b..7d1ec87f6 100644
--- a/docs/user-guide/a2-03-wgsl-target-specific.md
+++ b/docs/user-guide/a2-03-wgsl-target-specific.md
@@ -117,6 +117,14 @@ Parameter blocks
Each `ParameterBlock` is assigned its own bind group in WGSL.
+Write-only Textures
+---------------
+
+Many image formats supported by WebGPU can only be accessed in compute shader as a write-only image.
+Use `WTexture2D` type (similar to `RWTexture2D`) to write to an image when possible.
+The write-only texture types are also supported when targeting HLSL/GLSL/SPIR-V/Metal and CUDA.
+
+
Pointers
--------