Skip to content

Commit

Permalink
Add description on write-only textures in wgsl doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
csyonghe authored Nov 20, 2024
1 parent b0818ac commit 3d36e0c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/user-guide/a2-03-wgsl-target-specific.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------

Expand Down

0 comments on commit 3d36e0c

Please sign in to comment.