diff options
| author | Yong He <yonghe@outlook.com> | 2024-11-20 15:22:38 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-20 15:22:38 -0800 |
| commit | 3d36e0ca08c6d8ea21bc825ccfae4754e18744be (patch) | |
| tree | b4c4e38c6543f75757b18b08eacfb18a6d743ba7 | |
| parent | b0818ac607ae4f3f04ff59f09b083a0f3fe8e350 (diff) | |
Add description on write-only textures in wgsl doc.
| -rw-r--r-- | docs/user-guide/a2-03-wgsl-target-specific.md | 8 |
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 -------- |
