nupp.browser.gpu
Module contents
Functions
| Function | Kind | Description |
|---|---|---|
xorU32 | function | Xors every uint32 in values with mask in one WebGPU invocation per element. |
Functions#
gpu.xorU32function#
function gpu.xorU32(values: {uint32}, mask: uint32): {uint32}Xors every uint32 in values with mask in one WebGPU invocation per element. The result is copied back only after the Worker observes completion.
Arguments
| Name | Type | Description |
|---|---|---|
values | {uint32} | |
mask | uint32 |
Returns
| Type | Description |
|---|---|
{uint32} |
Raises
when WebGPU is unavailable or the request is outside the portable cap