nupp.browser.gpu

Module contents

Functions

FunctionKindDescription
xorU32functionXors 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

NameTypeDescription
values{uint32}
maskuint32

Returns

TypeDescription
{uint32}

Raises

  • when WebGPU is unavailable or the request is outside the portable cap