Skip to content

Commit

Permalink
Update description of GPUColorWrite constants in WebGPU (mdn#34520)
Browse files Browse the repository at this point in the history
* Update description of GPUColorWrite constants in WebGPU createRenderPipeline

* Update files/en-us/web/api/gpudevice/createrenderpipeline/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: wbamberg <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 30, 2024
1 parent be45ed1 commit 959975c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions files/en-us/web/api/gpudevice/createrenderpipeline/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,18 +192,18 @@ The `fragment` object contains an array of objects, each of which can contain th
- : One or more {{glossary("bitwise flags")}} defining the write mask to apply to the color target state. Possible flag values are:
- `GPUFlagsConstant.RED`
- `GPUFlagsConstant.GREEN`
- `GPUFlagsConstant.BLUE`
- `GPUFlagsConstant.ALPHA`
- `GPUFlagsConstant.ALL`
- `GPUColorWrite.RED`
- `GPUColorWrite.GREEN`
- `GPUColorWrite.BLUE`
- `GPUColorWrite.ALPHA`
- `GPUColorWrite.ALL`
If omitted, `writeMask` defaults to `GPUFlagsConstant.ALL`.
If omitted, `writeMask` defaults to `GPUColorWrite.ALL`.
Note that multiple flags can be specified by separating values with pipe symbols, for example:
```js
writeMask: GPUFlagsConstant.RED | GPUFlagsConstant.ALPHA;
writeMask: GPUColorWrite.RED | GPUColorWrite.ALPHA;
```
### `multisample` object structure
Expand Down

0 comments on commit 959975c

Please sign in to comment.