Skip to content

Commit 3d36e0c

Browse files
authored
Add description on write-only textures in wgsl doc.
1 parent b0818ac commit 3d36e0c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/user-guide/a2-03-wgsl-target-specific.md

+8
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ Parameter blocks
117117
Each `ParameterBlock` is assigned its own bind group in WGSL.
118118

119119

120+
Write-only Textures
121+
---------------
122+
123+
Many image formats supported by WebGPU can only be accessed in compute shader as a write-only image.
124+
Use `WTexture2D` type (similar to `RWTexture2D`) to write to an image when possible.
125+
The write-only texture types are also supported when targeting HLSL/GLSL/SPIR-V/Metal and CUDA.
126+
127+
120128
Pointers
121129
--------
122130

0 commit comments

Comments
 (0)