workgroupUniformLoad
On this page

workgroupUniformLoad

Function

Reads one value out of workgroup memory with a barrier on each side, so every invocation of the workgroup gets the same one.

The signature and the sentence under each name are the compiler's own text at commit 26de7be8.

Syntax

declare function workgroupUniformLoad<T>(w: T): T

Parameters

  • w T

Return value

T

Description

Takes a place in workgroup<T> memory, not storage, and returns its type. WebGPU-only, and it carries a barrier's placement rules: a compute entry or a function it calls, in uniform control flow.

Targets

WGSL
workgroupUniformLoad(&a)
GLSL ES 3.00
workgroupUniformLoad has no GLSL ES 3.00 spelling (no compute stage)

Examples

See also

Edit this page Report a problem